]> git.pld-linux.org Git - packages/libmateweather.git/blame - libmateweather.spec
noarch apidocs
[packages/libmateweather.git] / libmateweather.spec
CommitLineData
ab9372dc
JB
1Summary: Library to allow MATE Desktop to display weather information
2Summary(pl.UTF-8): Biblioteka umożliwiająca wyświetlanie informacji pogodowych w środowisku MATE Desktop
95104df7 3Name: libmateweather
89c90155 4Version: 1.8.0
d2e04295 5Release: 2
95104df7
ER
6License: GPL v2+
7Group: X11/Libraries
89c90155
JP
8Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
9# Source0-md5: f11f7f3c6ae72e58b54931cb09bb76a7
b71d5fa8 10URL: http://wiki.mate-desktop.org/libmateweather
89c90155
JP
11BuildRequires: autoconf >= 2.59
12BuildRequires: automake >= 1:1.9
d33f0d8b 13BuildRequires: gettext-devel
ab9372dc 14BuildRequires: glib2-devel >= 1:2.26.0
b71d5fa8 15BuildRequires: gtk+2-devel >= 2:2.11.0
ab9372dc 16BuildRequires: gtk-doc >= 1.9
b71d5fa8 17BuildRequires: intltool >= 0.40.3
89c90155
JP
18BuildRequires: libsoup-devel >= 2.34.0
19BuildRequires: libtool
ab9372dc 20BuildRequires: libxml2-devel >= 1:2.6.0
95104df7 21BuildRequires: mate-common
ab9372dc
JB
22BuildRequires: pkgconfig >= 1:0.19
23BuildRequires: python-devel >= 2
24BuildRequires: python-pygobject-devel >= 2.0
25BuildRequires: python-pygtk-devel >= 2:2.0
d33f0d8b 26BuildRequires: rpm-pythonprov
ab9372dc 27BuildRequires: rpmbuild(macros) >= 1.219
95104df7
ER
28BuildRequires: tar >= 1:1.22
29BuildRequires: xz
ab9372dc 30Requires(post,postun): /sbin/ldconfig
95104df7
ER
31Requires: glib2 >= 1:2.26.0
32Requires: gsettings-desktop-schemas
ab9372dc 33Requires: gtk+2 >= 2:2.11.0
95104df7
ER
34Requires: gtk-update-icon-cache
35Requires: hicolor-icon-theme
ab9372dc 36Requires: libxml2 >= 1:2.6.0
c7df76e7 37Conflicts: mate-applet-gweather < 1.6.1
95104df7
ER
38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40%description
ab9372dc
JB
41libmateweather is a library to allow MATE Desktop to display weather
42information. It's a fork of libgweather.
43
44%description -l pl.UTF-8
45libmateweather to biblioteka umożliwiająca wyświetlanie informacji
d2e04295 46pogodowych w środowisku MATE Desktop. Jest odgałęzieniem libgweather.
95104df7
ER
47
48%package devel
49Summary: Development files for libmateweather
ab9372dc
JB
50Summary(pl.UTF-8): Pliki programistyczne biblioteki libmateweather
51Group: X11/Development/Libraries
95104df7 52Requires: %{name} = %{version}-%{release}
ab9372dc
JB
53Requires: glib2-devel >= 1:2.26.0
54Requires: gtk+2-devel >= 2:2.11.0
55Requires: libsoup-devel >= 2.4.0
56Requires: libxml2-devel >= 1:2.6.0
95104df7
ER
57
58%description devel
ab9372dc
JB
59Development files for libmateweather.
60
61%description devel -l pl.UTF-8
62Pliki programistyczne biblioteki libmateweather.
95104df7
ER
63
64%package apidocs
65Summary: libmateweather API documentation
66Summary(pl.UTF-8): Dokumentacja API biblioteki libmateweather
67Group: Documentation
68Requires: gtk-doc-common
d2e04295
ER
69%if "%{_rpmversion}" >= "5"
70BuildArch: noarch
71%endif
95104df7
ER
72
73%description apidocs
74libmateweather API documentation.
75
76%description apidocs -l pl.UTF-8
77Dokumentacja API biblioteki libmateweather.
78
ab9372dc
JB
79%package -n python-mateweather
80Summary: Python binding for libmateweather library
81Summary(pl.UTF-8): Wiązanie Pythona do biblioteki libmateweather
82Group: Libraries/Python
83Requires: %{name} = %{version}-%{release}
84Requires: python-pygobject >= 2.0
85Requires: python-pygtk-gtk >= 2:2.0
86
87%description -n python-mateweather
88Python binding for libmateweather library.
89
90%description -n python-mateweather -l pl.UTF-8
91Wiązanie Pythona do biblioteki libmateweather.
92
95104df7
ER
93%prep
94%setup -q
95104df7
ER
95
96%build
89c90155
JP
97%{__libtoolize}
98%{__aclocal} -I m4
99%{__autoconf}
100%{__autoheader}
101%{__automake}
95104df7
ER
102%configure \
103 --with-html-dir=%{_gtkdocdir} \
ab9372dc 104 --with-zoneinfo-dir=%{_datadir}/zoneinfo \
95104df7 105 --enable-python \
0475dace 106 --disable-silent-rules \
95104df7
ER
107 --disable-static
108
0475dace 109%{__make}
95104df7
ER
110
111%install
112rm -rf $RPM_BUILD_ROOT
113%{__make} install \
114 DESTDIR=$RPM_BUILD_ROOT
115
116%{__rm} $RPM_BUILD_ROOT%{_libdir}/libmateweather.la
117%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/mateweather/*/mateweather.la
89c90155 118%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cmn
95104df7
ER
119
120%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
121%py_comp $RPM_BUILD_ROOT%{py_sitedir}
122%py_postclean
123
ab9372dc 124# outdated copy of es
95104df7 125%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES
ab9372dc 126
95104df7
ER
127%find_lang %{name}
128
129%clean
130rm -rf $RPM_BUILD_ROOT
131
132%post
133/sbin/ldconfig
134%update_icon_cache hicolor
135%glib_compile_schemas
136
137%postun
138/sbin/ldconfig
139%update_icon_cache hicolor
140%glib_compile_schemas
141
142%files -f %{name}.lang
143%defattr(644,root,root,755)
89c90155 144%doc AUTHORS ChangeLog NEWS README
ab9372dc
JB
145%attr(755,root,root) %{_libdir}/libmateweather.so.*.*.*
146%attr(755,root,root) %ghost %{_libdir}/libmateweather.so.1
95104df7 147%{_datadir}/libmateweather
95104df7 148%{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml
ab9372dc
JB
149%{_iconsdir}/mate/*x*/status/weather-*.png
150%{_iconsdir}/mate/scalable/status/weather-*.svg
95104df7
ER
151
152%files devel
153%defattr(644,root,root,755)
ab9372dc 154%attr(755,root,root) %{_libdir}/libmateweather.so
95104df7
ER
155%{_includedir}/libmateweather
156%{_pkgconfigdir}/mateweather.pc
157
158%files apidocs
159%defattr(644,root,root,755)
160%{_gtkdocdir}/libmateweather
ab9372dc
JB
161
162%files -n python-mateweather
163%defattr(644,root,root,755)
164%dir %{py_sitedir}/mateweather
165%{py_sitedir}/mateweather/*.py[co]
166%dir %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE
167%{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE/*.py[co]
168%attr(755,root,root) %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE/mateweather.so
This page took 0.193862 seconds and 4 git commands to generate.