[packages/libmetalink] - pl, finished spec

qboosh qboosh at pld-linux.org
Tue Oct 15 17:59:49 CEST 2013


commit e92cedad7db6f1f0459293a8fdf3ff8d10ee032b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Oct 15 17:59:04 2013 +0200

    - pl, finished spec

 libmetalink.spec | 53 ++++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 42 insertions(+), 11 deletions(-)
---
diff --git a/libmetalink.spec b/libmetalink.spec
index 7ea9c2a..f0324a4 100644
--- a/libmetalink.spec
+++ b/libmetalink.spec
@@ -1,9 +1,10 @@
 #
 # Conditional build:
-%bcond_with	tests		# build with tests
-%bcond_without	static_libs	# don't build static libraries
+%bcond_with	tests		# perform "make check"
+%bcond_without	static_libs	# don't build static library
 
 Summary:	Metalink library written in C
+Summary(pl.UTF-8):	Biblioteka obsługi plików Metalink napisana w C
 Name:		libmetalink
 Version:	0.1.2
 Release:	1
@@ -12,28 +13,52 @@ Group:		Libraries
 Source0:	http://launchpad.net/libmetalink/trunk/packagingfix/+download/%{name}-%{version}.tar.bz2
 # Source0-md5:	e60ea56d910ebfe4c303808db497e92a
 URL:		https://launchpad.net/libmetalink
-%{?with_tests:BuildRequires:	CUnit-devel}
-BuildRequires:	expat-devel
+%{?with_tests:BuildRequires:	CUnit-devel >= 2.1}
+BuildRequires:	expat-devel >= 1:2.1.0
+BuildRequires:	pkgconfig >= 1:0.20
+Requires:	expat >= 1:2.1.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 libmetalink is a Metalink C library. It adds Metalink functionality
 such as parsing Metalink XML files to programs written in C.
 
-%package	devel
-Summary:	Files needed for developing with %{name}
+%description -l pl.UTF-8
+libmetalink to biblioteka Metalink dla języka C. Dodaje funkcjonalność
+Metalink, taką jak analiza plików XML Metalink do programów napisanych
+w C.
+
+%package devel
+Summary:	Files needed for developing with libmetalink
+Summary(pl.UTF-8):	Pliki niezbędne do tworzenia aplikacji z użyciem libmetalink
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
+Requires:	expat-devel >= 1:2.1.0
 
-%description	devel
+%description devel
 Files needed for building applications with libmetalink.
 
+%description devel -l pl.UTF-8
+Pliki niezbędne do tworzenia aplikacji z użyciem libmetalink.
+
+%package static
+Summary:	Static libmetalink library
+Summary(pl.UTF-8):	Statyczna biblioteka libmetalink
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libmetalink library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libmetalink.
+
 %prep
 %setup -q
 
 %build
 %configure \
-	--disable-static \
+	%{!?with_static_libs:--disable-static}
 
 %{__make}
 
@@ -56,18 +81,24 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc COPYING README
+%doc AUTHORS COPYING ChangeLog NEWS README
 %attr(755,root,root) %{_libdir}/libmetalink.so.*.*.*
-%ghost %{_libdir}/libmetalink.so.3
+%attr(755,root,root) %ghost %{_libdir}/libmetalink.so.3
 
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libmetalink.so
 %dir %{_includedir}/metalink
 %{_includedir}/metalink/metalink_error.h
 %{_includedir}/metalink/metalink.h
 %{_includedir}/metalink/metalink_parser.h
 %{_includedir}/metalink/metalink_types.h
 %{_includedir}/metalink/metalinkver.h
-%{_libdir}/libmetalink.so
 %{_pkgconfigdir}/libmetalink.pc
 %{_mandir}/man3/metalink_*.3*
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libmetalink.a
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libmetalink.git/commitdiff/e92cedad7db6f1f0459293a8fdf3ff8d10ee032b



More information about the pld-cvs-commit mailing list