From 4a06c79444fedcf6c174ab2dea7afc41b303253f Mon Sep 17 00:00:00 2001 From: Rahul Sundaram Date: Oct 28 2009 19:04:58 +0000 Subject: add pc file --- diff --git a/.cvsignore b/.cvsignore index d58e179..da52d37 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1,2 @@ cryptopp560.zip +cryptopp.pc diff --git a/cryptopp.spec b/cryptopp.spec index 4342a70..ab9f26b 100644 --- a/cryptopp.spec +++ b/cryptopp.spec @@ -1,6 +1,6 @@ Name: cryptopp Version: 5.6.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Public domain C++ class library of cryptographic schemes License: Public Domain Group: System Environment/Libraries @@ -8,6 +8,7 @@ URL: http://www.cryptopp.com/ Source0: http://www.cryptopp.com/cryptopp560.zip # Used to purge the source from patented code, see http://www.cryptopp.com/License.txt Source10: cryptopp-remove-patented-code.sh +Source2: cryptopp.pc Patch0: cryptopp-5.6.0-autotools.patch Patch1: cryptopp-5.6.0-gcc4.3.patch # Don't try to build the patented code @@ -34,7 +35,7 @@ removed from this package. Summary: Header files and development documentation for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} - +Requires: pkgconfig %description devel Crypto++ Library is a free C++ class library of cryptographic schemes. @@ -60,6 +61,9 @@ Crypto++ Library is a free C++ class library of cryptographic schemes. This package contains programs for manipulating %{name} routines. %prep + +cp %{SOURCE2} . + %setup -q -c %patch2 -p1 -b .nomars rm -f GNUmakefile @@ -81,10 +85,11 @@ doxygen %install rm -rf $RPM_BUILD_ROOT + +install -D -m644 %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/pkgconfig/cryptopp.pc make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p -c " find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' - %check ./cryptest v 2>&1 | tee cryptest.log grep -qs '^FAILED' cryptest.log && exit 1 || : @@ -107,6 +112,7 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/cryptopp %defattr(-,root,root,0755) %{_libdir}/*.so +%{_datadir}/pkgconfig/cryptopp.pc %files doc %defattr(0644,root,root,0755) @@ -118,6 +124,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Wed Oct 28 2009 Rahul Sundaram 5.6.0-4 +- Add pkgconfig file. Fixes rhbz#512761 + * Fri Jul 24 2009 Fedora Release Engineering - 5.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild diff --git a/sources b/sources index b40ff6e..3f0f9cf 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -84c4217a27f05303cdb1dc2af7182dba cryptopp560.zip +c103ab60bf2b58fc9253cee94cf4ba11 cryptopp560.zip +2827f76ed490b65d233a3d89c87d3c65 cryptopp.pc