diff --git a/libcryptopp.spec b/libcryptopp.spec index 7d73572..9b2a336 100644 --- a/libcryptopp.spec +++ b/libcryptopp.spec @@ -1,7 +1,7 @@ %define realversion %(echo %version | tr -d .) Name: libcryptopp Version: 5.6.2 -Release: 3mamba +Release: 4mamba Summary: Free C++ class library of cryptographic schemes Group: System/Libraries Vendor: openmamba @@ -75,6 +75,23 @@ find . -type f -exec dos2unix {} \; [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall LIBDIR=%{_lib} +install -d -m0755 %{buildroot}%{_libdir}/pkgconfig +cat > %{buildroot}%{_libdir}/pkgconfig/cryptopp.pc << _EOF +prefix=%{_prefix} +exec_prefix=%{_libexecdir} +libdir=%{_libdir} + +Name: Crypto++ +Description: A free C++ class library of cryptographic schemes +Version: 5.6.2 +URL: http://www.cryptopp.com +Requires: +Conflicts: +Libs: -lcryptopp +Libs.private: +Cflags: +_EOF + %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -105,12 +122,16 @@ fi %{_libdir}/libcrypto++.a %{_libdir}/libcrypto++.la %{_libdir}/libcrypto++.so +%{_libdir}/pkgconfig/cryptopp.pc #%files tools #%defattr(-,root,root,0755) #%{_bindir}/cryptest %changelog +* Sat Apr 30 2016 Silvan Calarco 5.6.2-4mamba +- add pkg-config file + * Fri Jan 29 2016 Silvan Calarco 5.6.2-3mamba - rebuilt with gcc 5.3.0