[packages/qrencode] - pl, cleanup, added -static

qboosh qboosh at pld-linux.org
Sat Jul 28 08:14:33 CEST 2012


commit 3c6d6bfd58299ef27c659f55e6a274967122657d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jul 28 08:14:36 2012 +0200

    - pl, cleanup, added -static

 qrencode.spec | 75 +++++++++++++++++++++++++++++++++++++++++++++++++----------
 1 file changed, 63 insertions(+), 12 deletions(-)
---
diff --git a/qrencode.spec b/qrencode.spec
index b1b20b5..dce3aed 100644
--- a/qrencode.spec
+++ b/qrencode.spec
@@ -1,26 +1,38 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static libraries
+#
 Summary:	QR Code encoder into PNG image
+Summary(pl.UTF-8):	Koder kodu QR do obrazów PNG
 Name:		qrencode
 Version:	3.3.1
 Release:	1
-License:	LGPL v2+
+License:	LGPL v2.1+
 Group:		Applications/File
-URL:		http://megaui.net/fukuchi/works/qrencode/index.en.html
 Source0:	http://megaui.net/fukuchi/works/qrencode/%{name}-%{version}.tar.bz2
 # Source0-md5:	14920ba9d0515bddcaebfbd728229c5d
-BuildRequires:	SDL-devel
-BuildRequires:	autoconf
+URL:		http://megaui.net/fukuchi/works/qrencode/index.en.html
+BuildRequires:	SDL-devel >= 1.2.0
+BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
 BuildRequires:	doxygen
 BuildRequires:	libpng-devel
 BuildRequires:	libtool
+BuildRequires:	pkgconfig
+Requires:	%{name}-libs = %{version}-%{release}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Qrencode is a utility software using libqrencode to encode string data
 in a QR Code and save as a PNG image.
 
+%description -l pl.UTF-8
+Qrencode to program wykorzystujący libqrencode do kodowania danych
+tekstowych w postaci kodu QR i zapisywania do obrazu PNG.
+
 %package libs
 Summary:	A C library for encoding data in a QR Code symbol
+Summary(pl.UTF-8):	Biblioteka C do kodowania danych w postaci symboli kodu QR
 Group:		Libraries
 
 %description libs
@@ -32,8 +44,18 @@ mobile phone with CCD. The capacity of QR Code is up to 7000 digits or
 Libqrencode supports QR Code model 2, described in JIS (Japanese
 Industrial Standards) X0510:2004 or ISO/IEC 18004.
 
+%description libs -l pl.UTF-8
+Libqrencode to biblioteka C do kodowania danych w postaci symboli kodu
+QR. Są to dwuwymiarowe symbole, które można skanować podręcznymi
+terminalami, takimi jak telefony komórkowe z czujnikiem CCD. Pojemność
+kodu QR wynosi do 7000 cyfr lub 4000 znaków.
+
+Libqrencode obsługuje kod QR w modelu 2, opisany w japońskim
+standardzie JIS X0510:2004 oraz w ISO/IEC 18004.
+
 %package devel
 Summary:	The development files for the qrencode library
+Summary(pl.UTF-8):	Pliki programistyczne biblioteki qrencode
 Group:		Development/Libraries
 Requires:	%{name}-libs = %{version}-%{release}
 
@@ -48,6 +70,29 @@ Industrial Standards) X0510:2004 or ISO/IEC 18004.
 
 This package contains the development files for the qrencode library.
 
+%description devel -l pl.UTF-8
+Libqrencode to biblioteka C do kodowania danych w postaci symboli kodu
+QR. Są to dwuwymiarowe symbole, które można skanować podręcznymi
+terminalami, takimi jak telefony komórkowe z czujnikiem CCD. Pojemność
+kodu QR wynosi do 7000 cyfr lub 4000 znaków.
+
+Libqrencode obsługuje kod QR w modelu 2, opisany w japońskim
+standardzie JIS X0510:2004 oraz w ISO/IEC 18004.
+
+Ten pakiet zawiera pliki programistyczne biblioteki qrencode.
+
+%package static
+Summary:	Static qrencode library
+Summary(pl.UTF-8):	Statyczna biblioteka qrencode
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static qrencode library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka qrencode.
+
 %prep
 %setup -q
 
@@ -55,10 +100,11 @@ This package contains the development files for the qrencode library.
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
+%{__autoheader}
 %{__automake}
 %configure \
-	--with-tests \
-	--enable-shared
+	%{?with_static_libs:--enable-static} \
+	--with-tests
 
 %{__make}
 
@@ -71,14 +117,14 @@ rm -rf $RPM_BUILD_ROOT
 # manual
 doxygen
 
-# clean
-rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post libs -p /sbin/ldconfig
-%postun libs -p /sbin/ldconfig
+%post	libs -p /sbin/ldconfig
+%postun	libs -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
@@ -87,12 +133,17 @@ rm -rf $RPM_BUILD_ROOT
 
 %files libs
 %defattr(644,root,root,755)
-%doc COPYING ChangeLog NEWS README TODO html
-%attr(755,root,root) %ghost %{_libdir}/libqrencode.so.3
+%doc ChangeLog NEWS README TODO
 %attr(755,root,root) %{_libdir}/libqrencode.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libqrencode.so.3
 
 %files devel
 %defattr(644,root,root,755)
+%doc html/*.{css,html,js,png}
 %attr(755,root,root) %{_libdir}/libqrencode.so
 %{_includedir}/qrencode.h
 %{_pkgconfigdir}/libqrencode.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libqrencode.a


More information about the pld-cvs-commit mailing list