+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
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
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,
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:
-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 \
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; }
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
-DOCROOTDIR= $(prefix)/doc/$(PACKAGE)-$(VERSION)
+DOCROOTDIR= $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
# Fake out automake to make the money subdirectory...
afakedir = $(DOCROOTDIR)/money
docdir = $(DOCROOTDIR)
money\
money/aclocal.m4\
money/check_money.c\
- money/configure.in\
+ MONEY/configure.in\
money/INSTALL\
money/money.c\
money/README\
--- /dev/null
+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.