]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | %bcond_without static_libs # don't build static library | |
5 | # | |
6 | %define xfce_version 4.6.1 | |
7 | # | |
8 | Summary: Extension library to Xfce developed by os-cillation | |
9 | Summary(pl.UTF-8): Biblioteka rozszerzeń do Xfce opracowana przez os-cillation | |
10 | Name: exo | |
11 | Version: 0.3.101 | |
12 | Release: 5 | |
13 | License: GPL v2 | |
14 | Group: X11/Libraries | |
15 | Source0: http://www.xfce.org/archive/xfce-%{xfce_version}/src/%{name}-%{version}.tar.bz2 | |
16 | # Source0-md5: 1c0eebb360f53eab70454b70e1bde36e | |
17 | URL: http://www.os-cillation.com/ | |
18 | BuildRequires: autoconf >= 2.50 | |
19 | BuildRequires: automake | |
20 | BuildRequires: docbook-dtd412-xml | |
21 | BuildRequires: gettext-devel | |
22 | BuildRequires: gtk+2-devel >= 2:2.10.6 | |
23 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.7} | |
24 | BuildRequires: gtk-doc-automake | |
25 | BuildRequires: hal-devel >= 0.5.7 | |
26 | BuildRequires: intltool >= 0.35.0 | |
27 | BuildRequires: libnotify-devel >= 0.4.0 | |
28 | BuildRequires: libtool | |
29 | BuildRequires: libxfce4util-devel >= %{xfce_version} | |
30 | BuildRequires: perl-URI | |
31 | BuildRequires: pkgconfig | |
32 | BuildRequires: python-pygtk-devel >= 2:2.10.3 | |
33 | BuildRequires: rpm-pythonprov | |
34 | BuildRequires: rpmbuild(macros) >= 1.311 | |
35 | BuildRequires: xfce4-dev-tools >= 4.6.0 | |
36 | Requires: xfce4-dirs >= 4.6 | |
37 | Provides: libexo | |
38 | Obsoletes: libexo | |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
42 | Extension library to Xfce developed by os-cillation. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | Biblioteka rozszerzeń do Xfce opracowana przez os-cillation. | |
46 | ||
47 | %package -n xfce-preferred-applications | |
48 | Summary: The Xfce Preferred Applications framework | |
49 | Summary(pl.UTF-8): Struktura Preferowanych Aplikacji Xfce | |
50 | Group: X11/Applications | |
51 | Requires(post,postun): gtk+2 | |
52 | Requires(post,postun): hicolor-icon-theme | |
53 | Requires: %{name} = %{version}-%{release} | |
54 | ||
55 | %description -n xfce-preferred-applications | |
56 | The Xfce Preferred Applications framework. | |
57 | ||
58 | %description -n xfce-preferred-applications -l pl.UTF-8 | |
59 | Struktura Preferowanych Aplikacji Xfce. | |
60 | ||
61 | %package apidocs | |
62 | Summary: libexo API documentation | |
63 | Summary(pl.UTF-8): Dokumentacja API libexo | |
64 | Group: Documentation | |
65 | Requires: gtk-doc-common | |
66 | Provides: libexo-apidocs | |
67 | Obsoletes: libexo-apidocs | |
68 | ||
69 | %description apidocs | |
70 | libexo API documentation. | |
71 | ||
72 | %description apidocs -l pl.UTF-8 | |
73 | Dokumentacja API libexo. | |
74 | ||
75 | %package devel | |
76 | Summary: Header files for libexo library | |
77 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libexo | |
78 | Group: X11/Development/Libraries | |
79 | Requires: %{name} = %{version}-%{release} | |
80 | Requires: gtk+2-devel >= 2:2.10.6 | |
81 | Requires: hal-devel >= 0.5.7 | |
82 | Requires: libxfce4util-devel >= %{xfce_version} | |
83 | Provides: libexo-devel | |
84 | Obsoletes: libexo-devel | |
85 | ||
86 | %description devel | |
87 | Header files for libexo library. | |
88 | ||
89 | %description devel -l pl.UTF-8 | |
90 | Pliki nagłówkowe biblioteki libexo. | |
91 | ||
92 | %package static | |
93 | Summary: Static libexo library | |
94 | Summary(pl.UTF-8): Statyczna biblioteka libexo | |
95 | Group: X11/Development/Libraries | |
96 | Requires: %{name}-devel = %{version}-%{release} | |
97 | Provides: libexo-static | |
98 | Obsoletes: libexo-static | |
99 | ||
100 | %description static | |
101 | Static libexo library. | |
102 | ||
103 | %description static -l pl.UTF-8 | |
104 | Statyczna biblioteka libexo. | |
105 | ||
106 | %package -n python-exo | |
107 | Summary: Python binding for libexo library | |
108 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki libexo | |
109 | Group: Libraries/Python | |
110 | Requires: %{name} = %{version}-%{release} | |
111 | %pyrequires_eq python-libs | |
112 | ||
113 | %description -n python-exo | |
114 | Python binding for libexo library. | |
115 | ||
116 | %description -n python-exo -l pl.UTF-8 | |
117 | Wiązania Pythona do biblioteki libexo. | |
118 | ||
119 | %package -n python-exo-devel | |
120 | Summary: Development files for libexo Python bindings | |
121 | Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do libexo | |
122 | Group: Libraries/Python | |
123 | Requires: python-exo = %{version}-%{release} | |
124 | ||
125 | %description -n python-exo-devel | |
126 | Development files for libexo Python bindings. | |
127 | ||
128 | %description -n python-exo-devel -l pl.UTF-8 | |
129 | Pliki programistyczne wiązań Pythona do libexo. | |
130 | ||
131 | %prep | |
132 | %setup -q | |
133 | ||
134 | %build | |
135 | %{?with_apidocs:%{__gtkdocize}} | |
136 | %{__intltoolize} | |
137 | %{__libtoolize} | |
138 | %{__aclocal} | |
139 | %{__autoheader} | |
140 | %{__automake} | |
141 | %{__autoconf} | |
142 | %configure \ | |
143 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ | |
144 | --enable-hal \ | |
145 | --enable-notifications \ | |
146 | --enable-python \ | |
147 | --with-html-dir=%{_gtkdocdir} \ | |
148 | %{!?with_static_libs:--disable-static} | |
149 | ||
150 | %{__make} | |
151 | ||
152 | %install | |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
155 | %{__make} install \ | |
156 | DESTDIR=$RPM_BUILD_ROOT | |
157 | ||
158 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/exo-0.3/*.{la,a} | |
159 | ||
160 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/exo} | |
161 | ||
162 | %py_postclean | |
163 | ||
164 | %find_lang libexo-0.3 | |
165 | ||
166 | %clean | |
167 | rm -rf $RPM_BUILD_ROOT | |
168 | ||
169 | %post -p /sbin/ldconfig | |
170 | %postun -p /sbin/ldconfig | |
171 | ||
172 | %post -n xfce-preferred-applications | |
173 | %update_icon_cache hicolor | |
174 | ||
175 | %postun -n xfce-preferred-applications | |
176 | %update_icon_cache hicolor | |
177 | ||
178 | %files -f libexo-0.3.lang | |
179 | %defattr(644,root,root,755) | |
180 | %doc AUTHORS ChangeLog HACKING NEWS README TODO | |
181 | %attr(755,root,root) %{_libdir}/libexo-0.3.so.*.*.* | |
182 | %attr(755,root,root) %ghost %{_libdir}/libexo-0.3.so.0 | |
183 | %attr(755,root,root) %{_libdir}/libexo-hal-0.3.so.*.*.* | |
184 | %attr(755,root,root) %ghost %{_libdir}/libexo-hal-0.3.so.0 | |
185 | %{_pixmapsdir}/exo-0.3 | |
186 | ||
187 | %files -n xfce-preferred-applications | |
188 | %defattr(644,root,root,755) | |
189 | %attr(755,root,root) %{_bindir}/* | |
190 | %attr(755,root,root) %{_libdir}/exo-compose-mail-0.3 | |
191 | %attr(755,root,root) %{_libdir}/exo-helper-0.3 | |
192 | %attr(755,root,root) %{_libdir}/exo-mount-notify-0.3 | |
193 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/xfce4/*.rc | |
194 | %{_datadir}/xfce4/doc/C/*.html | |
195 | %{_datadir}/xfce4/doc/C/images/*.png | |
196 | %lang(da) %{_datadir}/xfce4/doc/da/*.html | |
197 | %lang(es) %{_datadir}/xfce4/doc/es/*.html | |
198 | %lang(es) %{_datadir}/xfce4/doc/es/images/*.png | |
199 | %lang(fr) %{_datadir}/xfce4/doc/fr/*.html | |
200 | %lang(fr) %{_datadir}/xfce4/doc/fr/images/*.png | |
201 | %lang(gl) %{_datadir}/xfce4/doc/gl/*.html | |
202 | %lang(id) %{_datadir}/xfce4/doc/id/*.html | |
203 | %lang(id) %{_datadir}/xfce4/doc/id/images/*.png | |
204 | %lang(it) %{_datadir}/xfce4/doc/it/*.html | |
205 | %lang(it) %{_datadir}/xfce4/doc/it/images/*.png | |
206 | %lang(ja) %{_datadir}/xfce4/doc/ja/*.html | |
207 | %lang(ja) %{_datadir}/xfce4/doc/ja/images/*.png | |
208 | %lang(pt_BR) %{_datadir}/xfce4/doc/pt_BR/*.html | |
209 | %lang(pt_BR) %{_datadir}/xfce4/doc/pt_BR/images/*.png | |
210 | %lang(tr) %{_datadir}/xfce4/doc/tr/*.html | |
211 | %lang(tr) %{_datadir}/xfce4/doc/tr/images/*.png | |
212 | %dir %{_datadir}/xfce4/helpers | |
213 | %{_datadir}/xfce4/helpers/*.desktop | |
214 | %{_desktopdir}/*.desktop | |
215 | %{_iconsdir}/hicolor/*/apps/preferences-desktop-default-applications.png | |
216 | %{_iconsdir}/hicolor/*/apps/applications-internet.png | |
217 | %{_iconsdir}/hicolor/*/apps/applications-other.png | |
218 | %{_mandir}/man1/*.1* | |
219 | ||
220 | %if %{with apidocs} | |
221 | %files apidocs | |
222 | %defattr(644,root,root,755) | |
223 | %{_gtkdocdir}/exo | |
224 | %endif | |
225 | ||
226 | %files devel | |
227 | %defattr(644,root,root,755) | |
228 | %attr(755,root,root) %{_libdir}/libexo-0.3.so | |
229 | %attr(755,root,root) %{_libdir}/libexo-hal-0.3.so | |
230 | %{_libdir}/libexo-0.3.la | |
231 | %{_libdir}/libexo-hal-0.3.la | |
232 | %{_includedir}/exo-0.3 | |
233 | %{_pkgconfigdir}/exo-0.3.pc | |
234 | %{_pkgconfigdir}/exo-hal-0.3.pc | |
235 | ||
236 | %if %{with static_libs} | |
237 | %files static | |
238 | %defattr(644,root,root,755) | |
239 | %{_libdir}/libexo-0.3.a | |
240 | %{_libdir}/libexo-hal-0.3.a | |
241 | %endif | |
242 | ||
243 | %files -n python-exo | |
244 | %defattr(644,root,root,755) | |
245 | %dir %{py_sitedir}/exo-0.3 | |
246 | %attr(755,root,root) %{py_sitedir}/exo-0.3/_exo.so | |
247 | %dir %{py_sitedir}/exo-0.3/exo | |
248 | %{py_sitedir}/exo-0.3/exo/*.py[co] | |
249 | %{py_sitescriptdir}/*.py[co] | |
250 | ||
251 | %files -n python-exo-devel | |
252 | %defattr(644,root,root,755) | |
253 | %{_datadir}/pygtk/2.0/defs/exo-0.3 |