]> git.pld-linux.org Git - packages/libtommath.git/commitdiff
- new URL, updated to 1.0.1 auto/th/libtommath-1.0.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 13 Apr 2018 16:43:18 +0000 (18:43 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Fri, 13 Apr 2018 16:43:18 +0000 (18:43 +0200)
- added pc patch (fix libdir)

libtommath-pc.patch [new file with mode: 0644]
libtommath.spec

diff --git a/libtommath-pc.patch b/libtommath-pc.patch
new file mode 100644 (file)
index 0000000..daf49b0
--- /dev/null
@@ -0,0 +1,11 @@
+--- libtommath-1.0.1/makefile.shared.orig      2017-08-29 22:27:36.000000000 +0200
++++ libtommath-1.0.1/makefile.shared   2018-04-13 18:32:50.038012830 +0200
+@@ -64,7 +64,7 @@
+       install -d $(DESTDIR)$(INCPATH)
+       $(LT) --mode=install install -m 644 $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME)
+       install -m 644 $(HEADERS_PUB) $(DESTDIR)$(INCPATH)
+-      sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^Version:.*,Version: $(VERSION_PC),' libtommath.pc.in > libtommath.pc
++      sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^libdir=.*,libdir=$(LIBPATH),' -e 's,^Version:.*,Version: $(VERSION_PC),' libtommath.pc.in > libtommath.pc
+       install -d $(DESTDIR)$(LIBPATH)/pkgconfig
+       install -m 644 libtommath.pc $(DESTDIR)$(LIBPATH)/pkgconfig/
index 632b138aea46d20df18968dfdba0f89c1eb6ab3f..93df53f6058e8fac0dca67f9c3cf0238616d8c70 100644 (file)
@@ -1,14 +1,15 @@
 Summary:       LibTomMath - routines for integer based number theoretic applications
 Summary(pl.UTF-8):     LibTomMath - procedury do zastosowaƄ teorii liczb z zakresu liczb caƂkowitych
 Name:          libtommath
-Version:       1.0
+Version:       1.0.1
 Release:       1
 License:       Public Domain or WTFPL v2
 Group:         Libraries
 #Source0Download: https://github.com/libtom/libtommath/releases
 Source0:       https://github.com/libtom/libtommath/releases/download/v%{version}/ltm-%{version}.tar.xz
-# Source0-md5: a95dc984d8409a6f355efb0831009a66
-URL:           http://www.libtom.org/LibTomMath/
+# Source0-md5: 72f4dd9dcde8338e5e3507f7bbea7582
+Patch0:                %{name}-pc.patch
+URL:           http://www.libtom.net/LibTomMath/
 BuildRequires: libtool >= 2:1.5
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -55,6 +56,7 @@ Statyczna biblioteka LibTomMath.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 # IGNORE_SPEED avoids overriding rpmcflags
@@ -69,6 +71,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %{__make} -f makefile.shared install \
        DESTDIR=$RPM_BUILD_ROOT \
+       PREFIX=%{_prefix} \
        LIBPATH=%{_libdir}
 
 %clean
@@ -85,10 +88,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
-%doc bn.pdf tommath.pdf
+%doc doc/{bn.pdf,poster.pdf,tommath.pdf}
 %attr(755,root,root) %{_libdir}/libtommath.so
 %{_libdir}/libtommath.la
 %{_includedir}/tommath*.h
+%{_pkgconfigdir}/libtommath.pc
 
 %files static
 %defattr(644,root,root,755)
This page took 0.093153 seconds and 4 git commands to generate.