rpms/check/devel check-0.9.2-fPIC.patch, NONE, 1.1 check-0.9.2-shared.patch, NONE, 1.1 check.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Tom Callaway (spot) fedora-extras-commits at redhat.com
Mon Sep 12 14:23:09 UTC 2005


Author: spot

Update of /cvs/extras/rpms/check/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26639/devel

Modified Files:
	.cvsignore sources 
Added Files:
	check-0.9.2-fPIC.patch check-0.9.2-shared.patch check.spec 
Log Message:
auto-import check-0.9.3-1 on branch devel from check-0.9.3-1.src.rpm

check-0.9.2-fPIC.patch:

--- NEW FILE check-0.9.2-fPIC.patch ---
--- 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

check-0.9.2-shared.patch:

--- NEW FILE check-0.9.2-shared.patch ---
--- check-0.9.2/src/Makefile.in.BAD	2005-08-14 15:53:24.000000000 -0500
+++ check-0.9.2/src/Makefile.in	2005-08-14 15:52:45.000000000 -0500
@@ -74,7 +74,10 @@
 VERSION = @VERSION@
 have_docbook2html = @have_docbook2html@
 
-lib_LIBRARIES = libcheck.a
+lib_LIBRARIES_static = libcheck.a
+lib_LIBRARIES_shared = libcheck.so.0.0.0
+
+lib_LIBRARIES = $(lib_LIBRARIES_static) $(lib_LIBRARIES_shared)
 
 include_HEADERS = check.h
 
@@ -144,7 +147,7 @@
 	  else :; fi; \
 	done
 	@$(POST_INSTALL)
-	@list='$(lib_LIBRARIES)'; for p in $$list; do \
+	@list='$(lib_LIBRARIES_static)'; for p in $$list; do \
 	  if test -f $$p; then \
 	    echo " $(RANLIB) $(DESTDIR)$(libdir)/$$p"; \
 	    $(RANLIB) $(DESTDIR)$(libdir)/$$p; \
@@ -181,6 +184,10 @@
 	$(AR) cru libcheck.a $(libcheck_a_OBJECTS) $(libcheck_a_LIBADD)
 	$(RANLIB) libcheck.a
 
+libcheck.so.0.0.0: $(libcheck_a_OBJECTS) $(libcheck_a_DEPENDENCIES)
+	-rm -f libcheck.so.0.0.0
+	$(COMPILE) -shared -Wl,-soname,libcheck.so.0 -o $@ $?
+
 install-includeHEADERS: $(include_HEADERS)
 	@$(NORMAL_INSTALL)
 	$(mkinstalldirs) $(DESTDIR)$(includedir)


--- NEW FILE check.spec ---
Name:		check
Version:	0.9.3
Release:	1%{?dist}
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-shared.patch
Patch1:		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
Requires:	%{name} = %{version}-%{release}

%description devel
%{summary}.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
cd $RPM_BUILD_ROOT/%{_libdir}
chmod +x libcheck.so.0.0.0
ln -s libcheck.so.0.0.0 libcheck.so.0
ln -s libcheck.so.0.0.0 libcheck.so

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_libdir}/libcheck.so.*
%{_datadir}/doc/%{name}-%{version}
%{_datadir}/aclocal/check.m4

%files devel
%defattr(-,root,root,-)
%{_includedir}/check.h
%{_libdir}/libcheck.a
%{_libdir}/libcheck.so

%changelog
* Sun Aug 14 2005 Tom "spot" Callaway <tcallawa at redhat.com> 0.9.2-1
- initial package for Fedora Extras


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/check/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	12 Sep 2005 14:22:38 -0000	1.1
+++ .cvsignore	12 Sep 2005 14:23:07 -0000	1.2
@@ -0,0 +1 @@
+check-0.9.3.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/check/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	12 Sep 2005 14:22:38 -0000	1.1
+++ sources	12 Sep 2005 14:23:07 -0000	1.2
@@ -0,0 +1 @@
+6e5870f7c9c5414572158d8005e91d68  check-0.9.3.tar.gz




More information about the fedora-extras-commits mailing list