[packages/libspiro] - new Source URL, updated to 0.5.20150702 (epoch 1) - .pc file has been introduced, drop .la
qboosh
qboosh at pld-linux.org
Wed Jun 20 20:05:48 CEST 2018
commit 2edbef4230a477d08859695a68c9356b19030e85
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Jun 20 20:07:12 2018 +0200
- new Source URL, updated to 0.5.20150702 (epoch 1)
- .pc file has been introduced, drop .la
libspiro.spec | 22 +++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)
---
diff --git a/libspiro.spec b/libspiro.spec
index 8baeded..45cba3f 100644
--- a/libspiro.spec
+++ b/libspiro.spec
@@ -1,14 +1,15 @@
Summary: Library to draw Raph Levien's spiro splines
Summary(pl.UTF-8): Biblioteka do rysowania splajnów spiro Rapha Leviena
Name: libspiro
-Version: 20071029
-Release: 3
+Version: 0.5.20150702
+Release: 1
+Epoch: 1
License: GPL v2+
Group: Libraries
-Source0: http://downloads.sourceforge.net/libspiro/%{name}_src-%{version}.tar.bz2
-# Source0-md5: ab6aaa50bbd8fa55e78f8b8b0112f6cd
+#Source0Download: https://github.com/fontforge/libspiro/releases
+Source0: https://github.com/fontforge/libspiro/releases/download/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 5194e13583e031e8950fb39d5a414235
URL: http://libspiro.sourceforge.net/
-BuildRequires: automake
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%undefine __cxx
@@ -23,7 +24,7 @@ Biblioteka do rysowania splajnów spiro Rapha Leviena.
Summary: Header files for libspiro library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libspiro
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name} = %{epoch}:%{version}-%{release}
%description devel
Header files for libspiro library.
@@ -35,7 +36,7 @@ Pliki nagłówkowe biblioteki libspiro.
Summary: Static libspiro library
Summary(pl.UTF-8): Statyczna biblioteka libspiro
Group: Development/Libraries
-Requires: %{name}-devel = %{version}-%{release}
+Requires: %{name}-devel = %{epoch}:%{version}-%{release}
%description static
Static libspiro library.
@@ -47,8 +48,8 @@ Statyczna biblioteka libspiro.
%setup -q
%build
-cp -f /usr/share/automake/config.* .
%configure \
+ --disable-silent-rules \
--enable-static
%{__make}
@@ -59,6 +60,9 @@ rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libspiro.la
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -74,9 +78,9 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libspiro.so
-%{_libdir}/libspiro.la
%{_includedir}/bezctx*.h
%{_includedir}/spiro*.h
+%{_pkgconfigdir}/libspiro.pc
%files static
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libspiro.git/commitdiff/2edbef4230a477d08859695a68c9356b19030e85
More information about the pld-cvs-commit
mailing list