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