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