[packages/libicns] - pl, cleanup, bconditional -static - release 3
qboosh
qboosh at pld-linux.org
Sat Jul 26 10:30:18 CEST 2014
commit 18796f508f8fefe6a2d0bdf1f9db1bafbf72d7aa
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jul 26 10:35:39 2014 +0200
- pl, cleanup, bconditional -static
- release 3
libicns.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++------------
1 file changed, 44 insertions(+), 12 deletions(-)
---
diff --git a/libicns.spec b/libicns.spec
index 30c0300..ceeae61 100644
--- a/libicns.spec
+++ b/libicns.spec
@@ -1,14 +1,19 @@
+#
+# Conditional build:
+%bcond_without static_libs # static library
+#
Summary: Library for manipulating Macintosh icns files
+Summary(pl.UTF-8): Biblioteka do operowania na plikach icns z Macintosha
Name: libicns
Version: 0.8.1
-Release: 2
+Release: 3
Group: Libraries
# libicns, icns2png and icontainer2icns are under LGPLv2+
# png2icns is under GPLv2+
-License: LGPL v2+ and GPL v2+
-URL: http://icns.sourceforge.net/
+License: LGPL v2+ (library and most tools), GPL v2+ (png2icns)
Source0: http://downloads.sourceforge.net/icns/%{name}-%{version}.tar.gz
# Source0-md5: 7a9b74b84ce08c5b11bdee3cad296dd3
+URL: http://icns.sourceforge.net/
BuildRequires: jasper-devel
BuildRequires: libpng-devel
BuildRequires: pkgconfig
@@ -18,21 +23,42 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
libicns is a library providing functionality for easily reading and
writing Macintosh icns files.
+%description -l pl.UTF-8
+libicns to biblioteka umożliwiająca łatwy odczyt i zapis plików icns z
+Macintosha.
+
%package devel
-Summary: Development files for %{name}
+Summary: Development files for libicns library
+Summary(pl.UTF-8): Pliki programistyczne biblioteki libicns
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
-The %{name}-devel package contains libraries and header files for
-developing applications that use %{name}.
+This package contains the header files for developing applications
+that use libicns.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
+wykorzystujących libicns.
+
+%package static
+Summary: Static libicns library
+Summary(pl.UTF-8): Statyczna biblioteka libicns
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libicns library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libicns.
%prep
%setup -q
%build
%configure \
- --disable-static
+ %{!?with_static_libs:--disable-static}
%{__make}
@@ -51,19 +77,25 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS NEWS README TODO
+%doc AUTHORS ChangeLog NEWS README TODO
%attr(755,root,root) %{_bindir}/icns2png
%attr(755,root,root) %{_bindir}/icontainer2icns
%attr(755,root,root) %{_bindir}/png2icns
%attr(755,root,root) %{_libdir}/libicns.so.*.*.*
-%ghost %{_libdir}/libicns.so.1
+%attr(755,root,root) %ghost %{_libdir}/libicns.so.1
%{_mandir}/man1/icns2png.1*
%{_mandir}/man1/icontainer2icns.1*
%{_mandir}/man1/png2icns.1*
%files devel
%defattr(644,root,root,755)
-%doc src/apidocs.*
+%doc src/apidocs.html
+%attr(755,root,root) %{_libdir}/libicns.so
%{_includedir}/icns.h
-%{_libdir}/libicns.so
-%{_pkgconfigdir}/%{name}.pc
+%{_pkgconfigdir}/libicns.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libicns.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libicns.git/commitdiff/18796f508f8fefe6a2d0bdf1f9db1bafbf72d7aa
More information about the pld-cvs-commit
mailing list