[packages/tomsfastmath] - release 2, package pkgconfig file

adamg adamg at pld-linux.org
Mon Dec 10 08:32:55 CET 2018


commit 47d96c98186e401db0aea1d5fa847f400eb6b0cb
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Mon Dec 10 08:32:48 2018 +0100

    - release 2, package pkgconfig file

 tomsfastmath.pc   | 4 ++++
 tomsfastmath.spec | 7 ++++++-
 2 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/tomsfastmath.spec b/tomsfastmath.spec
index a9ff3b1..225e0e7 100644
--- a/tomsfastmath.spec
+++ b/tomsfastmath.spec
@@ -2,12 +2,13 @@ Summary:	TomsFastMath - large integer arithmetic library
 Summary(pl.UTF-8):	TomsFastMath - duża biblioteka arytmetyki na dużych liczbach całkowitych
 Name:		tomsfastmath
 Version:	0.13.1
-Release:	1
+Release:	2
 License:	Public Domain or WTFPL v2
 Group:		Libraries
 #Source0Download: https://github.com/libtom/tomsfastmath/releases
 Source0:	https://github.com/libtom/tomsfastmath/releases/download/v%{version}/tfm-%{version}.tar.xz
 # Source0-md5:	123569cd5362e228ae5670543a4d006d
+Source1:	%{name}.pc
 URL:		http://www.libtom.net/TomsFastMath/
 BuildRequires:	libtool >= 2:1.5
 BuildRequires:	tar >= 1:1.22
@@ -68,6 +69,9 @@ rm -rf $RPM_BUILD_ROOT
 	INSTALL_GROUP="$(id -g)" \
 	INSTALL_USER="$(id -u)"
 
+install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
+sed -e "s, at VERSION@,%{version},g" %{SOURCE1} > $RPM_BUILD_ROOT%{_pkgconfigdir}/tomsfastmath.pc
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -86,6 +90,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/libtfm.so
 %{_libdir}/libtfm.la
 %{_includedir}/tfm.h
+%{_pkgconfigdir}/tomsfastmath.pc
 
 %files static
 %defattr(644,root,root,755)
diff --git a/tomsfastmath.pc b/tomsfastmath.pc
new file mode 100644
index 0000000..2570a48
--- /dev/null
+++ b/tomsfastmath.pc
@@ -0,0 +1,4 @@
+Name: TomFastMath
+Description: Fast multiple-precision integer library
+Version: @VERSION@
+Libs: -ltfm
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tomsfastmath.git/commitdiff/47d96c98186e401db0aea1d5fa847f400eb6b0cb



More information about the pld-cvs-commit mailing list