diff --git a/libbytesize.spec b/libbytesize.spec index 12119a9..db13491 100644 --- a/libbytesize.spec +++ b/libbytesize.spec @@ -1,12 +1,13 @@ Name: libbytesize Version: 0.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A library for working with sizes in bytes License: LGPLv2+ URL: https://github.com/rhinstaller/libbytesize Source0: https://github.com/rhinstaller/libbytesize/archive/%{name}-%{version}.tar.gz Patch0: not_delete_twice.patch +Patch1: not_require_gmp_mpfr_compile.patch %define realname bytesize @@ -54,6 +55,7 @@ the library from Python 3 easier and more convenient. %prep %setup -q -n %{name}-%{version} %patch0 -p1 +%patch1 -p1 %build %configure @@ -88,6 +90,9 @@ find %{buildroot} -type f -name "*.la" | xargs %{__rm} %{python3_sitearch}/bytesize/__pycache__/* %changelog +* Thu Apr 14 2016 Vratislav Podzimek - 0.4-3 +- Only require -lgmp and -lmpfr for static linking (vpodzime) + * Fri Mar 11 2016 Vratislav Podzimek - 0.4-2 - Do not try to delete the C struct twice (vpodzime) diff --git a/not_require_gmp_mpfr_compile.patch b/not_require_gmp_mpfr_compile.patch new file mode 100644 index 0000000..4f04efe --- /dev/null +++ b/not_require_gmp_mpfr_compile.patch @@ -0,0 +1,20 @@ +commit abb70fe37f63889e6354e2b745d07c7a37186e25 +Author: Vratislav Podzimek +Date: Wed Apr 13 21:19:34 2016 +0200 + + Only require -lgmp and -lmpfr for static linking + + These are not needed if somebody dynamically links to our library. + +diff --git a/src/bytesize.pc.in b/src/bytesize.pc.in +index 3d35790..80681a9 100644 +--- a/src/bytesize.pc.in ++++ b/src/bytesize.pc.in +@@ -9,4 +9,5 @@ URL: https://github.com/rhinstaller/libbytesize + Version: 0.1.0 + Requires: glib-2.0 + Cflags: -I${includedir}/bytesize +-Libs: -lbytesize -lgmp -lmpfr ++Libs: -lbytesize ++Libs.private: -lgmp -lmpfr +\ No newline at end of file