]> granicus.if.org Git - check/commitdiff
Added RPM spec file and added additional documentation files
authoramalec <amalec@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sun, 3 Jun 2001 23:50:40 +0000 (23:50 +0000)
committeramalec <amalec@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sun, 3 Jun 2001 23:50:40 +0000 (23:50 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@23 64e312b2-a51f-0410-8e61-82d0ca0eb02a

check/Makefile.am
check/Makefile.in
check/configure
check/configure.in
check/doc/Makefile.am
check/rpm/check.spec [new file with mode: 0644]

index b62b92502c3a71c8b8f126abeb35eb2d40b7580f..2b054162118e3284f23c0d923360bcb8355b9067 100644 (file)
@@ -1,3 +1,10 @@
+DOCROOTDIR= $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
+docdir = $(DOCROOTDIR)
+
+doc_DATA = ChangeLog ChangeLogOld NEWS README COPYING
+
 SUBDIRS=src tests doc
 
+EXTRA_DIST= ChangeLogOld
+
 CLEANFILES=*.*~
\ No newline at end of file
index b8c5b4c9e9f91abefaf106d97ca0a64f9883037c..646fdea8d8e8c10d89299f2dc153eac248f7dc02 100644 (file)
@@ -67,13 +67,22 @@ VERSION = @VERSION@
 have_lyx = @have_lyx@
 have_sgmltools = @have_sgmltools@
 
+DOCROOTDIR = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
+docdir = $(DOCROOTDIR)
+
+doc_DATA = ChangeLog ChangeLogOld NEWS README COPYING
+
 SUBDIRS = src tests doc
 
+EXTRA_DIST = ChangeLogOld
+
 CLEANFILES = *.*~
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_HEADER = config.h
 CONFIG_CLEAN_FILES = 
+DATA =  $(doc_DATA)
+
 DIST_COMMON =  README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
 Makefile.am Makefile.in NEWS acinclude.m4 aclocal.m4 config.h.in \
 configure configure.in install-sh missing mkinstalldirs
@@ -128,6 +137,25 @@ distclean-hdr:
 
 maintainer-clean-hdr:
 
+install-docDATA: $(doc_DATA)
+       @$(NORMAL_INSTALL)
+       $(mkinstalldirs) $(DESTDIR)$(docdir)
+       @list='$(doc_DATA)'; for p in $$list; do \
+         if test -f $(srcdir)/$$p; then \
+           echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(docdir)/$$p"; \
+           $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(docdir)/$$p; \
+         else if test -f $$p; then \
+           echo " $(INSTALL_DATA) $$p $(DESTDIR)$(docdir)/$$p"; \
+           $(INSTALL_DATA) $$p $(DESTDIR)$(docdir)/$$p; \
+         fi; fi; \
+       done
+
+uninstall-docDATA:
+       @$(NORMAL_UNINSTALL)
+       list='$(doc_DATA)'; for p in $$list; do \
+         rm -f $(DESTDIR)$(docdir)/$$p; \
+       done
+
 # This directory's subdirectories are mostly independent; you can cd
 # into them and run `make' without going through this Makefile.
 # To change the values of `make' variables: instead of editing Makefiles,
@@ -294,20 +322,21 @@ all-recursive-am: config.h
 install-exec-am:
 install-exec: install-exec-recursive
 
-install-data-am:
+install-data-am: install-docDATA
 install-data: install-data-recursive
 
 install-am: all-am
        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
 install: install-recursive
-uninstall-am:
+uninstall-am: uninstall-docDATA
 uninstall: uninstall-recursive
-all-am: Makefile config.h
+all-am: Makefile $(DATA) config.h
 all-redirect: all-recursive-am
 install-strip:
        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
 installdirs: installdirs-recursive
 installdirs-am:
+       $(mkinstalldirs)  $(DESTDIR)$(docdir)
 
 
 mostlyclean-generic:
@@ -342,7 +371,8 @@ maintainer-clean: maintainer-clean-recursive
        -rm -f config.status
 
 .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
-install-data-recursive uninstall-data-recursive install-exec-recursive \
+uninstall-docDATA install-docDATA install-data-recursive \
+uninstall-data-recursive install-exec-recursive \
 uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
 all-recursive check-recursive installcheck-recursive info-recursive \
 dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
index 24494004869a8a2fbb53c48daeb8174028c48f17..14bc32a38d6450d0fd5628fd63bea415d7f16ae2 100755 (executable)
@@ -691,7 +691,7 @@ fi
 
 PACKAGE=check
 
-VERSION=0.5.1
+VERSION=0.5.2
 
 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
index 39a96238b8c3d3caad8da26161f30c0f512c22f5..55e771f1e58fd18d824e4a2242540ec6006a28a8 100644 (file)
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 AC_INIT(src/check.c)
-AM_INIT_AUTOMAKE(check,0.5.1)
+AM_INIT_AUTOMAKE(check,0.5.2)
 
 dnl Checks for programs.
 AC_PROG_AWK
index e037725d403f0ff15e6dfd587050dcc4ce34d97e..3205f5c9f74537dd7b674fb2f41916dbebd52290 100644 (file)
@@ -1,4 +1,4 @@
-DOCROOTDIR= $(prefix)/doc/$(PACKAGE)-$(VERSION)
+DOCROOTDIR= $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
 # Fake out automake to make the money subdirectory...
 afakedir = $(DOCROOTDIR)/money
 docdir = $(DOCROOTDIR)
@@ -24,7 +24,7 @@ example_docs =\
        money\
        money/aclocal.m4\
        money/check_money.c\
-       money/configure.in\
+       MONEY/configure.in\
        money/INSTALL\
        money/money.c\
        money/README\
diff --git a/check/rpm/check.spec b/check/rpm/check.spec
new file mode 100644 (file)
index 0000000..fc9ed05
--- /dev/null
@@ -0,0 +1,73 @@
+Summary: A unit test framework for C
+Name: check
+Version: 0.5.2
+Release: 1
+Epoch: 1
+Source: http://prdownloads.sourceforge.net/check/check-0.5.2.tar.gz
+Group: Development/Tools
+Copyright: GPL
+URL: http://check.sourceforge.net
+Prefix: %{_prefix}
+BuildPrereq: lyx sgml-tools
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+
+%description
+Check is a unit test framework for C. It features a simple interface for defining unit tests, putting little in the way of the developer. Tests are run in a separate address space, so Check can catch both assertion failures and code errors that cause segmentation faults or other signals. The output from unit tests can be used within source code editors and IDEs.
+
+%prep
+%setup
+
+%build
+
+./configure --prefix %{_prefix} 
+
+make
+
+%install
+rm -rf ${RPM_BUILD_ROOT}
+mkdir -p ${RPM_BUILD_ROOT}%{_prefix}
+make prefix=$RPM_BUILD_ROOT%{_prefix} install
+
+%clean
+rm -rf ${RPM_BUILD_ROOT}
+
+%files
+%defattr(-,root,root)
+%{_prefix}/include/check.h
+%{_prefix}/lib/libcheck.a
+%doc
+%dir %{_prefix}/share/doc/%{name}-%{version}
+%{_prefix}/share/doc/%{name}-%{version}/ChangeLog
+%{_prefix}/share/doc/%{name}-%{version}/ChangeLogOld
+%{_prefix}/share/doc/%{name}-%{version}/NEWS
+%{_prefix}/share/doc/%{name}-%{version}/README
+%{_prefix}/share/doc/%{name}-%{version}/COPYING
+%{_prefix}/share/doc/%{name}-%{version}/example-1.html
+%{_prefix}/share/doc/%{name}-%{version}/example-2.html
+%{_prefix}/share/doc/%{name}-%{version}/example-3.html
+%{_prefix}/share/doc/%{name}-%{version}/example-4.html
+%{_prefix}/share/doc/%{name}-%{version}/example-5.html
+%{_prefix}/share/doc/%{name}-%{version}/example.html
+%{_prefix}/share/doc/%{name}-%{version}/example.lyx
+%{_prefix}/share/doc/%{name}-%{version}/example.sgml 
+%dir %{_prefix}/share/doc/%{name}-%{version}/money
+%{_prefix}/share/doc/%{name}-%{version}/money/money.h
+%{_prefix}/share/doc/%{name}-%{version}/money/money.c
+%{_prefix}/share/doc/%{name}-%{version}/money/check_money.c
+%{_prefix}/share/doc/%{name}-%{version}/money/aclocal.m4
+%{_prefix}/share/doc/%{name}-%{version}/money/configure.in
+%{_prefix}/share/doc/%{name}-%{version}/money/Makefile.am
+%{_prefix}/share/doc/%{name}-%{version}/money/Makefile.in
+%{_prefix}/share/doc/%{name}-%{version}/money/configure
+%{_prefix}/share/doc/%{name}-%{version}/money/README
+%{_prefix}/share/doc/%{name}-%{version}/money/AUTHORS
+%{_prefix}/share/doc/%{name}-%{version}/money/COPYING
+%{_prefix}/share/doc/%{name}-%{version}/money/INSTALL
+%{_prefix}/share/doc/%{name}-%{version}/money/ChangeLog
+%{_prefix}/share/doc/%{name}-%{version}/money/NEWS
+%{_prefix}/share/doc/%{name}-%{version}/money/stamp-h.in
+%{_prefix}/share/doc/%{name}-%{version}/money/config.h.in
+
+%changelog
+* Sat Jun 2 2001 Arien Malec <arien_malec@yahoo.com>
+- First packaging.