[packages/libnova] - updated to 0.15.0 (note: new soname) - added opt patch

qboosh qboosh at pld-linux.org
Sun Mar 20 17:19:32 CET 2016


commit 0c394a816eb827a26cbe5d16754337271e09d2a0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Mar 20 17:23:43 2016 +0100

    - updated to 0.15.0 (note: new soname)
    - added opt patch

 libnova-opt.patch | 11 +++++++++++
 libnova.spec      | 24 ++++++++++++++++--------
 2 files changed, 27 insertions(+), 8 deletions(-)
---
diff --git a/libnova.spec b/libnova.spec
index 2a1cb70..5e40461 100644
--- a/libnova.spec
+++ b/libnova.spec
@@ -1,13 +1,17 @@
 Summary:	General purpose astronomy & astrodynamics library
 Summary(pl.UTF-8):	Biblioteka astronomiczna i astrodynamiczna ogólnego przeznaczenia
 Name:		libnova
-Version:	0.14.0
-Release:	2
+Version:	0.15.0
+Release:	1
 License:	LGPL v2+
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/libnova/%{name}-%{version}.tar.gz
-# Source0-md5:	e81a00efedfa3043cd6018383e8a0438
+# Source0-md5:	756fdb55745cb78511f83a62c25f3be4
+Patch0:		%{name}-opt.patch
 URL:		http://libnova.sourceforge.net/
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	libtool
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -45,12 +49,16 @@ Statyczna biblioteka libnova.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure
-%{__make} \
-       CFLAGS="%{rpmcflags}" \
-       LDFLAGS="%{rpmldflags}"
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -67,8 +75,8 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS
 %attr(755,root,root) %{_bindir}/libnovaconfig
-%attr(755,root,root) %{_libdir}/libnova-0.14.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libnova-0.14.so.0
+%attr(755,root,root) %{_libdir}/libnova-0.15.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libnova-0.15.so.0
 
 %files devel
 %defattr(644,root,root,755)
diff --git a/libnova-opt.patch b/libnova-opt.patch
new file mode 100644
index 0000000..5699f30
--- /dev/null
+++ b/libnova-opt.patch
@@ -0,0 +1,11 @@
+--- libnova-0.15.0/configure.in.orig	2012-07-11 10:23:42.000000000 +0200
++++ libnova-0.15.0/configure.in	2016-03-20 16:49:32.482399751 +0100
+@@ -63,7 +63,7 @@
+ AC_CHECK_FUNCS([asinl])
+ AC_CHECK_FUNCS([atan2l])
+ 
+-CFLAGS=-Wall
++CFLAGS="$CFLAGS -Wall"
+ 
+ # Checks for header files.
+ AC_HEADER_STDC
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libnova.git/commitdiff/0c394a816eb827a26cbe5d16754337271e09d2a0



More information about the pld-cvs-commit mailing list