X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=dee.spec;h=618fd28dacee4d9ae342b7da4a861b8d2704e5ba;hb=6c1a7062054a97c57628e0236d0f0bbf8a8be51c;hp=a87bbfa0edaaca43d33ce06ad3017a1d0db3096b;hpb=68a6f9ee91ff3d07f74249d09d445bdf91cb3b40;p=packages%2Fdee.git diff --git a/dee.spec b/dee.spec index a87bbfa..618fd28 100644 --- a/dee.spec +++ b/dee.spec @@ -1,19 +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: 1 +Release: 10 # 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 -Requires: python-pygobject +# not needed for releases +#BuildRequires: vala +Requires: glib2 >= 1:2.26 +Requires: libicu >= 4.6 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -23,32 +33,87 @@ 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 +%if "%{_rpmversion}" >= "5" +BuildArch: noarch +%endif %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 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 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} @@ -72,21 +137,35 @@ 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 -%{py_sitedir}/gi/overrides/Dee.py[co] +%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) %{_gtkdocdir}/dee-1.0 + +%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