[packages/cryptopp] install pkg-config file
glen
glen at pld-linux.org
Wed Jan 20 17:06:47 CET 2016
commit dd9c76eed33cf574a4a51409de607fa26a67f653
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Jan 20 18:03:56 2016 +0200
install pkg-config file
cryptopp.pc | 13 +++++++++++++
cryptopp.spec | 11 ++++++++++-
2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/cryptopp.spec b/cryptopp.spec
index feb171b..53b1b34 100644
--- a/cryptopp.spec
+++ b/cryptopp.spec
@@ -12,11 +12,12 @@ Summary: Cryptopp Library - a free C++ class library of cryptographic schemes
Summary(pl.UTF-8): Cryptopp - biblioteka klas C++ dostarczająca narzędzia do kryptografii
Name: cryptopp
Version: 5.6.1
-Release: 3
+Release: 4
License: BSD-like
Group: Libraries
Source0: http://downloads.sourceforge.net/cryptopp/%{name}%{orig_ver}.zip
# Source0-md5: 96cbeba0907562b077e26bcffb483828
+Source1: %{name}.pc
Patch0: %{name}-autotools.patch
Patch1: cxx.patch
URL: http://www.cryptopp.com/
@@ -88,6 +89,13 @@ rm -rf $RPM_BUILD_ROOT
INSTALL="install -p -c " \
DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
+sed -e "
+ s|@PREFIX@|%{_prefix}|g
+ s|@LIBDIR@|%{_libdir}|g
+ s|@VERSION@|%{version}|g
+" %{SOURCE1} > $RPM_BUILD_ROOT%{_pkgconfigdir}/cryptopp.pc
+
%{__rm} $RPM_BUILD_ROOT%{_bindir}/cryptest
%clean
@@ -107,6 +115,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_libdir}/libcryptopp.so
%{_libdir}/libcryptopp.la
%{_includedir}/cryptopp
+%{_pkgconfigdir}/cryptopp.pc
%files static
%defattr(644,root,root,755)
diff --git a/cryptopp.pc b/cryptopp.pc
new file mode 100644
index 0000000..1e6a73a
--- /dev/null
+++ b/cryptopp.pc
@@ -0,0 +1,13 @@
+prefix=@PREFIX@
+exec_prefix=@PREFIX@
+libdir=@LIBDIR@
+
+Name: Crypto++
+Description: A free C++ class library of cryptographic schemes
+Version: @VERSION@
+URL: http://www.cryptopp.com
+Requires:
+Conflicts:
+Libs: -lcryptopp
+Libs.private:
+Cflags:
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cryptopp.git/commitdiff/1efe63ff3b64a4916c046bbf9769085017603dce
More information about the pld-cvs-commit
mailing list