]>
Commit | Line | Data |
---|---|---|
95104df7 ER |
1 | Summary: Libraries to allow MATE Desktop to display weather information |
2 | Name: libmateweather | |
3 | Version: 1.5.0 | |
b71d5fa8 | 4 | Release: 1 |
95104df7 ER |
5 | License: GPL v2+ |
6 | Group: X11/Libraries | |
95104df7 ER |
7 | Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz |
8 | # Source0-md5: f4b3e63cd2865c33d1e9cc319c30210f | |
b71d5fa8 ER |
9 | URL: http://wiki.mate-desktop.org/libmateweather |
10 | BuildRequires: gsettings-desktop-schemas-devel | |
11 | BuildRequires: gtk+2-devel >= 2:2.11.0 | |
12 | BuildRequires: intltool >= 0.40.3 | |
13 | BuildRequires: libsoup-devel >= 2.4.0 | |
95104df7 | 14 | BuildRequires: mate-common |
95104df7 ER |
15 | # XXX what's pld package? |
16 | #BuildRequires: python-gudev | |
17 | BuildRequires: python-pygobject-devel | |
18 | BuildRequires: python-pygtk-devel | |
19 | BuildRequires: tar >= 1:1.22 | |
20 | BuildRequires: xz | |
21 | Requires: glib2 >= 1:2.26.0 | |
22 | Requires: gsettings-desktop-schemas | |
23 | Requires: gtk-update-icon-cache | |
24 | Requires: hicolor-icon-theme | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Libraries to allow MATE Desktop to display weather information | |
29 | ||
30 | %package devel | |
31 | Summary: Development files for libmateweather | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Development files for libmateweather | |
37 | ||
38 | %package apidocs | |
39 | Summary: libmateweather API documentation | |
40 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmateweather | |
41 | Group: Documentation | |
42 | Requires: gtk-doc-common | |
43 | ||
44 | %description apidocs | |
45 | libmateweather API documentation. | |
46 | ||
47 | %description apidocs -l pl.UTF-8 | |
48 | Dokumentacja API biblioteki libmateweather. | |
49 | ||
50 | %prep | |
51 | %setup -q | |
95104df7 ER |
52 | |
53 | %build | |
e00792e6 | 54 | NOCONFIGURE=1 ./autogen.sh |
95104df7 ER |
55 | %configure \ |
56 | --with-html-dir=%{_gtkdocdir} \ | |
57 | --enable-python \ | |
58 | --disable-static | |
59 | ||
60 | %{__make} \ | |
61 | V=1 | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | %{__make} install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT | |
67 | ||
68 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmateweather.la | |
69 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/mateweather/*/mateweather.la | |
70 | ||
71 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
72 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
73 | %py_postclean | |
74 | ||
75 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_ES | |
76 | %find_lang %{name} | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post | |
82 | /sbin/ldconfig | |
83 | %update_icon_cache hicolor | |
84 | %glib_compile_schemas | |
85 | ||
86 | %postun | |
87 | /sbin/ldconfig | |
88 | %update_icon_cache hicolor | |
89 | %glib_compile_schemas | |
90 | ||
91 | %files -f %{name}.lang | |
92 | %defattr(644,root,root,755) | |
93 | %doc AUTHORS COPYING README | |
94 | %{_datadir}/libmateweather | |
95 | %{_iconsdir}/mate/*/status/* | |
96 | %{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml | |
97 | %attr(755,root,root) %{_libdir}/libmateweather.so.*.*.* | |
98 | %ghost %{_libdir}/libmateweather.so.1 | |
99 | ||
95104df7 ER |
100 | # python |
101 | %dir %{py_sitedir}/mateweather | |
102 | %{py_sitedir}/mateweather/*.py[co] | |
103 | %dir %{py_sitedir}/mateweather/I_KNOW_THIS_IS_UNSTABLE/ | |
104 | %{py_sitedir}/mateweather/*/*.py[co] | |
105 | %attr(755,root,root) %{py_sitedir}/mateweather/*/mateweather.so | |
106 | ||
107 | %files devel | |
108 | %defattr(644,root,root,755) | |
109 | %{_libdir}/libmateweather.so | |
110 | %{_includedir}/libmateweather | |
111 | %{_pkgconfigdir}/mateweather.pc | |
112 | ||
113 | %files apidocs | |
114 | %defattr(644,root,root,755) | |
115 | %{_gtkdocdir}/libmateweather |