From: amalec Date: Sun, 3 Jun 2001 23:50:40 +0000 (+0000) Subject: Added RPM spec file and added additional documentation files X-Git-Tag: 0.10.0~1118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7edc20a05336a3f8d0602dbb78f9dab0744eacef;p=check Added RPM spec file and added additional documentation files git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@23 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/check/Makefile.am b/check/Makefile.am index b62b925..2b05416 100644 --- a/check/Makefile.am +++ b/check/Makefile.am @@ -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 diff --git a/check/Makefile.in b/check/Makefile.in index b8c5b4c..646fdea 100644 --- a/check/Makefile.in +++ b/check/Makefile.in @@ -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 \ diff --git a/check/configure b/check/configure index 2449400..14bc32a 100755 --- a/check/configure +++ b/check/configure @@ -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; } diff --git a/check/configure.in b/check/configure.in index 39a9623..55e771f 100644 --- a/check/configure.in +++ b/check/configure.in @@ -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 diff --git a/check/doc/Makefile.am b/check/doc/Makefile.am index e037725..3205f5c 100644 --- a/check/doc/Makefile.am +++ b/check/doc/Makefile.am @@ -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 index 0000000..fc9ed05 --- /dev/null +++ b/check/rpm/check.spec @@ -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 +- First packaging.