[packages/libsvgtiny] - pl - use LIBDIR to get proper libs directory, also in .pc files - install time dependencies

qboosh qboosh at pld-linux.org
Tue May 13 18:24:54 CEST 2014


commit a274a010d7a1a4843ed991322e91fc22402287d7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue May 13 18:27:35 2014 +0200

    - pl
    - use LIBDIR to get proper libs directory, also in .pc files
    - install time dependencies

 libsvgtiny.spec | 47 ++++++++++++++++++++++++++++++++++-------------
 1 file changed, 34 insertions(+), 13 deletions(-)
---
diff --git a/libsvgtiny.spec b/libsvgtiny.spec
index 625ed17..c6304cb 100644
--- a/libsvgtiny.spec
+++ b/libsvgtiny.spec
@@ -3,6 +3,7 @@
 %bcond_without	static_libs	# don't build static library
 
 Summary:	Implementation of SVG Tiny
+Summary(pl.UTF-8):	Implementacja SVG Tiny
 Name:		libsvgtiny
 Version:	0.1.1
 Release:	1
@@ -15,6 +16,9 @@ BuildRequires:	gperf
 BuildRequires:	libdom-devel >= 0.1.0
 BuildRequires:	libwapcaplet-devel >= 0.2.1
 BuildRequires:	netsurf-buildsystem >= 1.1
+BuildRequires:	pkgconfig
+Requires:	libdom >= 0.1.0
+Requires:	libwapcaplet >= 0.2.1
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -26,28 +30,38 @@ The overall idea of the library is to take some SVG as input, and
 return a list of paths and texts which can be rendered easily. The
 library does not do the actual rendering.
 
+%description -l pl.UTF-8
+Libsvgtiny to implementacja SVG Tiny napisana w C. Jest obecnie
+rozwijana do wykorzystania w ramach projektu NetSurf, ale także z
+myślą o możliwości użycia w innych projektach.
+
+Ogólna idea biblioteki polega na przyjęciu SVG na wejściu i zwróceniu
+listy ścieżek oraz tekstów, które można łatwo wyrenderować. Biblioteka
+nie wykonuje samego renderowania.
+
 %package devel
 Summary:	libsvgtiny library headers
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libsvgtiny
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
+Requires:	libdom-devel >= 0.1.0
 
 %description devel
-This is the libraries, include files and other resources you can use
-to incorporate libsvgtiny into applications.
+This package contains the include files and other resources you can
+use to incorporate libsvgtiny into applications.
 
 %description devel -l pl.UTF-8
 Pliki nagłówkowe pozwalające na używanie biblioteki libsvgtiny w
 swoich programach.
 
 %package static
-Summary:	libsvgtiny static libraries
-Summary(pl.UTF-8):	Statyczne biblioteki libsvgtiny
+Summary:	libsvgtiny static library
+Summary(pl.UTF-8):	Statyczna biblioteka libsvgtiny
 Group:		Development/Libraries
 Requires:	%{name}-devel = %{version}-%{release}
 
 %description static
-This is package with static libsvgtiny libraries.
+This is package with static libsvgtiny library.
 
 %description static -l pl.UTF-8
 Statyczna biblioteka libsvgtiny.
@@ -60,28 +74,34 @@ export CC="%{__cc}"
 export CFLAGS="%{rpmcflags}"
 export LDFLAGS="%{rpmldflags}"
 
-%{__make} Q= \
+%{__make} \
+	Q= \
 	PREFIX=%{_prefix} \
+	LIBDIR=%{_lib} \
 	COMPONENT_TYPE=lib-shared
 
 %if %{with static_libs}
-%{__make} Q= \
+%{__make} \
+	Q= \
 	PREFIX=%{_prefix} \
+	LIBDIR=%{_lib} \
 	COMPONENT_TYPE=lib-static
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install Q= \
-	lib=%{_lib} \
+%{__make} install \
+	Q= \
 	PREFIX=%{_prefix} \
+	LIBDIR=%{_lib} \
 	COMPONENT_TYPE=lib-shared \
 	DESTDIR=$RPM_BUILD_ROOT
 
 %if %{with static_libs}
-%{__make} install Q= \
-	lib=%{_lib} \
+%{__make} install \
+	Q= \
 	PREFIX=%{_prefix} \
+	LIBDIR=%{_lib} \
 	COMPONENT_TYPE=lib-static \
 	DESTDIR=$RPM_BUILD_ROOT
 %endif
@@ -94,12 +114,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc README
 %attr(755,root,root) %{_libdir}/libsvgtiny.so.*.*.*
-%ghost %{_libdir}/libsvgtiny.so.0
+%attr(755,root,root) %ghost %{_libdir}/libsvgtiny.so.0
 
 %files devel
 %defattr(644,root,root,755)
-%{_libdir}/libsvgtiny.so
+%attr(755,root,root) %{_libdir}/libsvgtiny.so
 %{_includedir}/svgtiny.h
 %{_pkgconfigdir}/libsvgtiny.pc
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libsvgtiny.git/commitdiff/a274a010d7a1a4843ed991322e91fc22402287d7



More information about the pld-cvs-commit mailing list