[packages/libmateweather] - pl, completed BRs, separated python binding
qboosh
qboosh at pld-linux.org
Sat Dec 14 11:05:35 CET 2013
commit ab9372dcb0f22596b43f03694d031f749ea991ba
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Dec 14 11:07:13 2013 +0100
- pl, completed BRs, separated python binding
libmateweather.spec | 83 +++++++++++++++++++++++++++++++++++++++--------------
1 file changed, 62 insertions(+), 21 deletions(-)
---
diff --git a/libmateweather.spec b/libmateweather.spec
index 624c46f..11b6922 100644
--- a/libmateweather.spec
+++ b/libmateweather.spec
@@ -1,4 +1,5 @@
-Summary: Libraries to allow MATE Desktop to display weather information
+Summary: Library to allow MATE Desktop to display weather information
+Summary(pl.UTF-8): Biblioteka umożliwiająca wyświetlanie informacji pogodowych w środowisku MATE Desktop
Name: libmateweather
Version: 1.6.2
Release: 1
@@ -8,34 +9,56 @@ Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz
# Source0-md5: 881a398575c44e79e22b079e06f00cb1
URL: http://wiki.mate-desktop.org/libmateweather
BuildRequires: gettext-devel
+BuildRequires: glib2-devel >= 1:2.26.0
BuildRequires: gtk+2-devel >= 2:2.11.0
+BuildRequires: gtk-doc >= 1.9
BuildRequires: intltool >= 0.40.3
BuildRequires: libsoup-devel >= 2.4.0
-BuildRequires: libsoup-gnome-devel
+BuildRequires: libsoup-gnome-devel >= 2.4.0
+BuildRequires: libxml2-devel >= 1:2.6.0
BuildRequires: mate-common
-BuildRequires: python-pygobject-devel
-BuildRequires: python-pygtk-devel
+BuildRequires: pkgconfig >= 1:0.19
+BuildRequires: python-devel >= 2
+BuildRequires: python-pygobject-devel >= 2.0
+BuildRequires: python-pygtk-devel >= 2:2.0
BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
BuildRequires: tar >= 1:1.22
BuildRequires: xz
+Requires(post,postun): /sbin/ldconfig
Requires: glib2 >= 1:2.26.0
Requires: gsettings-desktop-schemas
+Requires: gtk+2 >= 2:2.11.0
Requires: gtk-update-icon-cache
Requires: hicolor-icon-theme
-Requires(post,postun): /sbin/ldconfig
+Requires: libxml2 >= 1:2.6.0
Conflicts: mate-applet-gweather < 1.6.1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Libraries to allow MATE Desktop to display weather information.
+libmateweather is a library to allow MATE Desktop to display weather
+information. It's a fork of libgweather.
+
+%description -l pl.UTF-8
+libmateweather to biblioteka umożliwiająca wyświetlanie informacji
+pogodowych w środowisku MATE Desktop. Jest odgałęzieniem
+libgweather.
%package devel
Summary: Development files for libmateweather
-Group: Development/Libraries
+Summary(pl.UTF-8): Pliki programistyczne biblioteki libmateweather
+Group: X11/Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: glib2-devel >= 1:2.26.0
+Requires: gtk+2-devel >= 2:2.11.0
+Requires: libsoup-devel >= 2.4.0
+Requires: libxml2-devel >= 1:2.6.0
%description devel
-Development files for libmateweather
+Development files for libmateweather.
+
+%description devel -l pl.UTF-8
+Pliki programistyczne biblioteki libmateweather.
%package apidocs
Summary: libmateweather API documentation
@@ -49,13 +72,27 @@ libmateweather API documentation.
%description apidocs -l pl.UTF-8
Dokumentacja API biblioteki libmateweather.
+%package -n python-mateweather
+Summary: Python binding for libmateweather library
+Summary(pl.UTF-8): Wiązanie Pythona do biblioteki libmateweather
+Group: Libraries/Python
+Requires: %{name} = %{version}-%{release}
+Requires: python-pygobject >= 2.0
+Requires: python-pygtk-gtk >= 2:2.0
+
+%description -n python-mateweather
+Python binding for libmateweather library.
+
+%description -n python-mateweather -l pl.UTF-8
+Wiązanie Pythona do biblioteki libmateweather.
+
%prep
%setup -q
%build
%configure \
- --with-zoneinfo-dir=%{_datadir}/zoneinfo \
--with-html-dir=%{_gtkdocdir} \
+ --with-zoneinfo-dir=%{_datadir}/zoneinfo \
--enable-python \
--disable-silent-rules \
--disable-static
@@ -74,7 +111,9 @@ rm -rf $RPM_BUILD_ROOT
%py_comp $RPM_BUILD_ROOT%{py_sitedir}
%py_postclean
+# outdated copy of es
%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES
+
%find_lang %{name}
%clean
@@ -92,26 +131,28 @@ rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS COPYING README
+%doc AUTHORS ChangeLog MAINTAINERS NEWS README
+%attr(755,root,root) %{_libdir}/libmateweather.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libmateweather.so.1
%{_datadir}/libmateweather
-%{_iconsdir}/mate/*/status/*
%{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml
-%attr(755,root,root) %{_libdir}/libmateweather.so.*.*.*
-%ghost %{_libdir}/libmateweather.so.1
-
-# python
-%dir %{py_sitedir}/mateweather
-%{py_sitedir}/mateweather/*.py[co]
-%dir %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE/
-%{py_sitedir}/mateweather/*/*.py[co]
-%attr(755,root,root) %{py_sitedir}/mateweather/*/mateweather.so
+%{_iconsdir}/mate/*x*/status/weather-*.png
+%{_iconsdir}/mate/scalable/status/weather-*.svg
%files devel
%defattr(644,root,root,755)
-%{_libdir}/libmateweather.so
+%attr(755,root,root) %{_libdir}/libmateweather.so
%{_includedir}/libmateweather
%{_pkgconfigdir}/mateweather.pc
%files apidocs
%defattr(644,root,root,755)
%{_gtkdocdir}/libmateweather
+
+%files -n python-mateweather
+%defattr(644,root,root,755)
+%dir %{py_sitedir}/mateweather
+%{py_sitedir}/mateweather/*.py[co]
+%dir %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE
+%{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE/*.py[co]
+%attr(755,root,root) %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE/mateweather.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libmateweather.git/commitdiff/ab9372dcb0f22596b43f03694d031f749ea991ba
More information about the pld-cvs-commit
mailing list