[packages/dee] - pl, separated vala binding

qboosh qboosh at pld-linux.org
Sat May 25 21:35:53 CEST 2013


commit 18a826efa9023ebbd2f9f4206b7aab0f0191d8e6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat May 25 21:36:20 2013 +0200

    - pl, separated vala binding

 dee.spec | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++-------------
 1 file changed, 89 insertions(+), 23 deletions(-)
---
diff --git a/dee.spec b/dee.spec
index 4cba249..6df41e0 100644
--- a/dee.spec
+++ b/dee.spec
@@ -1,18 +1,29 @@
+#
+# Conditional build:
+%bcond_without	static_libs	# static library build
+#
 Summary:	Model to synchronize multiple instances over DBus
+Summary(pl.UTF-8):	Model synchronizacji wielu instancji poprzez DBus
 Name:		dee
 Version:	1.0.14
 Release:	3
 # GPLv3-licensed tests and examples are in the tarball, but not installed
 License:	LGPL v3
 Group:		Libraries
-URL:		https://launchpad.net/dee
 Source0:	http://launchpad.net/dee/1.0/%{version}/+download/%{name}-%{version}.tar.gz
 # Source0-md5:	473b4181e26538af0fb753255da7945c
+URL:		https://launchpad.net/dee
 BuildRequires:	dbus-glib-devel
-BuildRequires:	gobject-introspection-devel
-BuildRequires:	gtk-doc
+BuildRequires:	glib2-devel >= 1:2.26
+BuildRequires:	gobject-introspection-devel >= 0.10.2
+BuildRequires:	gtk-doc >= 1.8
+BuildRequires:	libicu-devel >= 4.6
+BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 1.219
-BuildRequires:	vala
+# not needed for releases
+#BuildRequires:	vala
+Requires:	glib2 >= 1:2.26
+Requires:	libicu >= 4.6
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -22,40 +33,84 @@ consists of utility objects which extend DBus allowing for
 peer-to-peer discoverability of known objects without needing a
 central registrar.
 
+%description -l pl.UTF-8
+Libdee to biblioteka wykorzystująca DBus w celu zapewnienia obiektów
+pozwalających na tworzenie programów typu model-widok-kontroler
+poprzez DBus. Składa się z obiektów narzędziowych rozszerzających DBus
+o możliwość widzenia znanych obiektów w komunikacji peer-to-peer bez
+potrzeby centralnego rejestru.
+
 %package devel
-Summary:	Development files for %{name}
+Summary:	Development files for libdee
+Summary(pl.UTF-8):	Pliki programistyczne biblioteki libdee
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
+Requires:	glib2-devel >= 1:2.26
+Requires:	libicu-devel >= 4.6
 
 %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 libdee library.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji
+wykorzystujących bibliotekę libdee.
+
+%package static
+Summary:	Static libdee library
+Summary(pl.UTF-8):	Biblioteka statyczna libdee
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libdee library.
+
+%description static -l pl.UTF-8
+Biblioteka statyczna libdee.
 
 %package apidocs
-Summary:	%{name} API documentation
-Summary(pl.UTF-8):	Dokumentacja API biblioteki %{name}
+Summary:	Libdee API documentation
+Summary(pl.UTF-8):	Dokumentacja API biblioteki libdee
 Group:		Documentation
 
 %description apidocs
-API and internal documentation for %{name} library.
+API documentation for libdee library.
 
 %description apidocs -l pl.UTF-8
-Dokumentacja API biblioteki %{name}.
+Dokumentacja API biblioteki libdee.
 
 %package -n python-dee
-Summary:	Python bindings for dee
+Summary:	Python bindings for libdee
+Summary(pl.UTF-8):	Wiązania Pythona do biblioteki libdee
 Group:		Development/Languages/Python
 Requires:	python-pygobject3
 
 %description -n python-dee
-Python bindings for dee.
+Python bindings for libdee.
+
+%description -n python-dee -l pl.UTF-8
+Wiązania Pythona do biblioteki libdee.
+
+%package -n vala-dee
+Summary:	Libdee API for Vala language
+Summary(pl.UTF-8):	API libdee dla języka Vala
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+Requires:	vala
+
+%description -n vala-dee
+Libdee API for Vala language.
+
+%description -n vala-dee -l pl.UTF-8
+API libdee dla języka Vala.
 
 %prep
 %setup -q
 
 %build
 %configure \
-	--disable-static \
+	--disable-silent-rules \
+	%{?with_static_libs:--enable-static} \
 	--with-html-dir=%{_gtkdocdir}
 
 %{__make}
@@ -79,19 +134,25 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc AUTHORS
 %attr(755,root,root) %{_bindir}/dee-tool
-%{_libdir}/girepository-1.0/*.typelib
-%attr(755,root,root) %{_libdir}/libdee-*.so.*.*.*
-%ghost %{_libdir}/libdee-*.so.4
+%attr(755,root,root) %{_libdir}/libdee-1.0.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libdee-1.0.so.4
+%{_libdir}/girepository-1.0/Dee-1.0.typelib
 
-%files	devel
+%files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libdee-1.0.so
 %{_includedir}/dee-1.0
-%{_libdir}/libdee*.so
-%{_pkgconfigdir}/*.pc
-%{_datadir}/gir-1.0/*.gir
-%{_datadir}/vala/vapi/*.vapi
-%{_datadir}/vala/vapi/*.deps
+%{_pkgconfigdir}/dee-1.0.pc
+%{_pkgconfigdir}/dee-icu-1.0.pc
+%{_datadir}/gir-1.0/Dee-1.0.gir
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libdee-1.0.a
+%endif
 
 %files apidocs
 %defattr(644,root,root,755)
@@ -100,3 +161,8 @@ rm -rf $RPM_BUILD_ROOT
 %files -n python-dee
 %defattr(644,root,root,755)
 %{py_sitedir}/gi/overrides/Dee.py[co]
+
+%files -n vala-dee
+%defattr(644,root,root,755)
+%{_datadir}/vala/vapi/dee-1.0.vapi
+%{_datadir}/vala/vapi/dee-1.0.deps
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dee.git/commitdiff/18a826efa9023ebbd2f9f4206b7aab0f0191d8e6



More information about the pld-cvs-commit mailing list