diff --git a/.cvsignore b/.cvsignore index e69de29..d9a6083 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +check-0.9.3.tar.gz diff --git a/check-0.9.2-fPIC.patch b/check-0.9.2-fPIC.patch new file mode 100644 index 0000000..6ae1d1e --- /dev/null +++ b/check-0.9.2-fPIC.patch @@ -0,0 +1,11 @@ +--- check-0.9.2/configure.BAD 2005-08-14 16:01:27.000000000 -0500 ++++ check-0.9.2/configure 2005-08-14 16:01:41.000000000 -0500 +@@ -1181,7 +1181,7 @@ + fi + + if test -n "$GCC"; then +- CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings" ++ CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -fPIC" + fi + # Extract the first word of "docbook2html", so it can be a program name with args. + set dummy docbook2html; ac_word=$2 diff --git a/check.spec b/check.spec new file mode 100644 index 0000000..ead2780 --- /dev/null +++ b/check.spec @@ -0,0 +1,67 @@ +Name: check +Version: 0.9.3 +Release: 4.fc5 +Summary: A unit test framework for C +Source0: http://download.sourceforge.net/check/%{name}-%{version}.tar.gz +Group: Development/Tools +License: LGPL +URL: http://check.sourceforge.net/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: docbook-utils +Patch0: check-0.9.2-fPIC.patch + +%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. + +%package devel +Summary: Libraries and headers for developing programs with check +Group: Development/Libraries +Provides: %{name} = %{version}-%{release} + +%description devel +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 -q +%patch0 -p1 + +%build +# We *WANT the .a file, it is the only thing in this package +%configure +make + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files devel +%defattr(-,root,root,-) +%{_includedir}/check.h +%{_libdir}/libcheck.a +%{_datadir}/doc/%{name}-%{version} +%{_datadir}/aclocal/check.m4 + +%changelog +* Mon Dec 19 2005 Warren Togami 0.9.2-4 +- import into FC5 for gstreamer-0.10 + +* Fri Dec 2 2005 Tom "spot" Callaway 0.9.2-3 +- enabled -fPIC to resolve bz 174313 + +* Sat Sep 17 2005 Tom "spot" Callaway 0.9.2-2 +- get rid of the so file (not needed) +- only make devel package + +* Sun Aug 14 2005 Tom "spot" Callaway 0.9.2-1 +- initial package for Fedora Extras diff --git a/sources b/sources index e69de29..73c30f4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6e5870f7c9c5414572158d8005e91d68 check-0.9.3.tar.gz