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