New version
- Only require -lgmp and -lmpfr for static linking (vpodzime)
This commit is contained in:
parent
359e3d5e5e
commit
a8ed70f44a
@ -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 <vpodzime@redhat.com> - 0.4-3
|
||||
- Only require -lgmp and -lmpfr for static linking (vpodzime)
|
||||
|
||||
* Fri Mar 11 2016 Vratislav Podzimek <vpodzime@redhat.com> - 0.4-2
|
||||
- Do not try to delete the C struct twice (vpodzime)
|
||||
|
||||
|
||||
20
not_require_gmp_mpfr_compile.patch
Normal file
20
not_require_gmp_mpfr_compile.patch
Normal file
@ -0,0 +1,20 @@
|
||||
commit abb70fe37f63889e6354e2b745d07c7a37186e25
|
||||
Author: Vratislav Podzimek <vpodzime@redhat.com>
|
||||
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
|
||||
Loading…
Reference in New Issue
Block a user