[packages/libvsqlitepp] - pl, unfedorized

qboosh qboosh at pld-linux.org
Sat May 10 16:32:07 CEST 2014


commit f1e09220d688295c18215c0b91f9b91eda7be1fe
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat May 10 16:34:39 2014 +0200

    - pl, unfedorized

 libvsqlitepp.spec | 65 ++++++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 52 insertions(+), 13 deletions(-)
---
diff --git a/libvsqlitepp.spec b/libvsqlitepp.spec
index a9a7d72..31c7f2c 100644
--- a/libvsqlitepp.spec
+++ b/libvsqlitepp.spec
@@ -1,50 +1,83 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# static library build
+#
 Summary:	Well designed C++ sqlite 3.x wrapper library
+Summary(pl.UTF-8):	Dobrze zaprojektowana biblioteka obudowująca C++ dla sqlite 3.x
 Name:		libvsqlitepp
 Version:	0.3.13
 Release:	1
 License:	BSD
-Group:		Development/Libraries
+Group:		Libraries
 Source0:	http://evilissimo.fedorapeople.org/releases/vsqlite--/%{version}/vsqlite++-%{version}.tar.xz
 # Source0-md5:	f0616fd2680e0c78e50f78f6b869c0ba
 URL:		https://github.com/vinzenz/vsqlite--
 BuildRequires:	boost-devel >= 1.33
 BuildRequires:	doxygen
 BuildRequires:	graphviz
-BuildRequires:	sqlite3-devel
+BuildRequires:	libstdc++-devel
+BuildRequires:	sqlite3-devel >= 3
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 VSQLite++ is a C++ wrapper for sqlite3 using the C++ standard library
-and boost. VSQLite++ is designed to be easy to use and focuses on
+and Boost. VSQLite++ is designed to be easy to use and focuses on
 simplicity.
 
+%description -l pl.UTF-8
+VSQLite++ to obudowanie C++ dla sqlite3 przy użyciu biblioteki
+standardowej C++ oraz Boosta. Jest zaprojektowane z myślą o łatwym
+użyciu, skupia się na prostocie.
+
 %package devel
-Summary:	Development files for %{name}
+Summary:	Development files for VSQLite++ library
+Summary(pl.UTF-8):	Pliki programistyczne biblioteki VSQLite++
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
+Requires:	boost-devel >= 1.33
+Requires:	libstdc++-devel
 
 %description devel
-This package contains development files for %{name}.
+This package contains development files for VSQLite++ library.
 
-%package doc
-Summary:	Development documentation for %{name}
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki programistyczne biblioteki VSQLite++.
+
+%package static
+Summary:	Static VSQLite++ library
+Summary(pl.UTF-8):	Statyczna biblioteka VSQLite++
 Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static VSQLite++ library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka VSQLite++.
+
+%package doc
+Summary:	Development documentation for VSQLite++ library
+Summary(pl.UTF-8):	Dokumentacja programisty do biblioteki VSQLite++
+Group:		Documentation
 # noarch subpackages only when building with rpm5
 %if "%{_rpmversion}" >= "5"
 BuildArch:	noarch
 %endif
 
 %description doc
-This package contains development documentation files for %{name}.
+This package contains development documentation files for VSQLite++.
+
+%description doc -l pl.UTF-8
+Ten pakiet zawiera dokumentację programisty do biblioteki VSQLite++.
 
 %prep
 %setup -q -n vsqlite++-%{version}
 
 %build
 %configure \
-	--disable-static
+	%{!?with_static_libs:--disable-static}
 %{__make}
 doxygen Doxyfile
 
@@ -63,16 +96,22 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog README COPYING
-%{_libdir}/libvsqlitepp.so.*.*.*
-%ghost %{_libdir}/libvsqlitepp.so.3
+%doc AUTHORS COPYING ChangeLog README TODO
+%attr(755,root,root) %{_libdir}/libvsqlitepp.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libvsqlitepp.so.3
 
 %files devel
 %defattr(644,root,root,755)
 %doc examples/sqlite_wrapper.cpp
-%{_libdir}/libvsqlitepp.so
+%attr(755,root,root) %{_libdir}/libvsqlitepp.so
 %{_includedir}/sqlite
 
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libvsqlitepp.a
+%endif
+
 %files doc
 %defattr(644,root,root,755)
 %doc html/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libvsqlitepp.git/commitdiff/f1e09220d688295c18215c0b91f9b91eda7be1fe



More information about the pld-cvs-commit mailing list