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