]>
Commit | Line | Data |
---|---|---|
22fe3d17 | 1 | # |
3edba695 | 2 | # Conditional build: |
1c066059 | 3 | %bcond_without apidocs # disable gtk-doc |
4717f888 | 4 | %bcond_with static_libs # don't build static library |
3edba695 | 5 | # |
009373c7 | 6 | %define xfce_version 4.10.0 |
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 |
009373c7 JR |
11 | Version: 0.8.0 |
12 | Release: 1 | |
c4ca9554 | 13 | License: GPL v2 |
849ed81e | 14 | Group: X11/Libraries |
009373c7 JR |
15 | Source0: http://archive.xfce.org/xfce/4.10/src/%{name}-%{version}.tar.bz2 |
16 | # Source0-md5: 189bd19210e1d7d8601be1cdf27bf259 | |
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 |
9899927b MB |
22 | BuildRequires: glib2-devel >= 1:2.27.0 |
23 | BuildRequires: gtk+2-devel >= 2:2.14.0 | |
24 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.9} | |
1c066059 | 25 | BuildRequires: gtk-doc-automake |
737f4d4f | 26 | BuildRequires: intltool >= 0.35.0 |
849ed81e | 27 | BuildRequires: libtool |
4717f888 | 28 | BuildRequires: libxfce4ui-devel >= %{xfce_version} |
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 |
9899927b | 34 | BuildRequires: rpmbuild(macros) >= 1.601 |
009373c7 | 35 | BuildRequires: xfce4-dev-tools >= 4.10.0 |
9899927b | 36 | Requires: glib2 >= 1:2.27.0 |
fd08d4f4 | 37 | Requires: xfce4-dirs >= 4.6 |
5b5c113b MB |
38 | Provides: libexo |
39 | Obsoletes: libexo | |
c4ca9554 AG |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | Extension library to Xfce developed by os-cillation. | |
44 | ||
8d7f3270 JR |
45 | %description -l pl.UTF-8 |
46 | Biblioteka rozszerzeń do Xfce opracowana przez os-cillation. | |
c4ca9554 | 47 | |
1f492905 | 48 | %package -n xfce-preferred-applications |
49 | Summary: The Xfce Preferred Applications framework | |
3800417d | 50 | Summary(pl.UTF-8): Struktura Preferowanych Aplikacji Xfce |
849ed81e | 51 | Group: X11/Applications |
849ed81e | 52 | Requires: %{name} = %{version}-%{release} |
9899927b MB |
53 | Requires: gtk-update-icon-cache |
54 | Requires: hicolor-icon-theme | |
1f492905 | 55 | |
56 | %description -n xfce-preferred-applications | |
57 | The Xfce Preferred Applications framework. | |
58 | ||
8d7f3270 | 59 | %description -n xfce-preferred-applications -l pl.UTF-8 |
1f492905 | 60 | Struktura Preferowanych Aplikacji Xfce. |
61 | ||
0ab17a4e MB |
62 | %package apidocs |
63 | Summary: libexo API documentation | |
3800417d | 64 | Summary(pl.UTF-8): Dokumentacja API libexo |
0ab17a4e MB |
65 | Group: Documentation |
66 | Requires: gtk-doc-common | |
5b5c113b MB |
67 | Provides: libexo-apidocs |
68 | Obsoletes: libexo-apidocs | |
0ab17a4e MB |
69 | |
70 | %description apidocs | |
71 | libexo API documentation. | |
72 | ||
8d7f3270 | 73 | %description apidocs -l pl.UTF-8 |
0ab17a4e MB |
74 | Dokumentacja API libexo. |
75 | ||
c4ca9554 AG |
76 | %package devel |
77 | Summary: Header files for libexo library | |
3800417d | 78 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libexo |
849ed81e | 79 | Group: X11/Development/Libraries |
c4ca9554 | 80 | Requires: %{name} = %{version}-%{release} |
9899927b | 81 | Requires: gtk+2-devel >= 2:2.14.0 |
1f492905 | 82 | Requires: libxfce4util-devel >= %{xfce_version} |
5b5c113b MB |
83 | Provides: libexo-devel |
84 | Obsoletes: libexo-devel | |
c4ca9554 AG |
85 | |
86 | %description devel | |
87 | Header files for libexo library. | |
88 | ||
8d7f3270 JR |
89 | %description devel -l pl.UTF-8 |
90 | Pliki nagłówkowe biblioteki libexo. | |
c4ca9554 AG |
91 | |
92 | %package static | |
93 | Summary: Static libexo library | |
3800417d | 94 | Summary(pl.UTF-8): Statyczna biblioteka libexo |
849ed81e | 95 | Group: X11/Development/Libraries |
c4ca9554 | 96 | Requires: %{name}-devel = %{version}-%{release} |
5b5c113b MB |
97 | Provides: libexo-static |
98 | Obsoletes: libexo-static | |
c4ca9554 AG |
99 | |
100 | %description static | |
101 | Static libexo library. | |
102 | ||
8d7f3270 | 103 | %description static -l pl.UTF-8 |
c4ca9554 AG |
104 | Statyczna biblioteka libexo. |
105 | ||
8b122451 JB |
106 | %package -n python-exo |
107 | Summary: Python binding for libexo library | |
3800417d | 108 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki libexo |
8b122451 JB |
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 | ||
8d7f3270 JR |
116 | %description -n python-exo -l pl.UTF-8 |
117 | Wiązania Pythona do biblioteki libexo. | |
8b122451 JB |
118 | |
119 | %package -n python-exo-devel | |
120 | Summary: Development files for libexo Python bindings | |
3800417d | 121 | Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do libexo |
8b122451 JB |
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 | ||
8d7f3270 JR |
128 | %description -n python-exo-devel -l pl.UTF-8 |
129 | Pliki programistyczne wiązań Pythona do libexo. | |
8b122451 | 130 | |
c4ca9554 | 131 | %prep |
5b5c113b | 132 | %setup -q |
c4ca9554 AG |
133 | |
134 | %build | |
90f8ebc9 | 135 | %{?with_apidocs:%{__gtkdocize}} |
737f4d4f | 136 | %{__intltoolize} |
1f492905 | 137 | %{__libtoolize} |
138 | %{__aclocal} | |
139 | %{__autoheader} | |
140 | %{__automake} | |
141 | %{__autoconf} | |
c4ca9554 | 142 | %configure \ |
1c066059 | 143 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
0ab17a4e | 144 | --enable-notifications \ |
1c066059 | 145 | --enable-python \ |
3eb704f5 | 146 | --with-html-dir=%{_gtkdocdir} \ |
9899927b MB |
147 | %{!?with_static_libs:--disable-static} \ |
148 | --disable-silent-rules | |
1c066059 | 149 | |
c4ca9554 AG |
150 | %{__make} |
151 | ||
152 | %install | |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
155 | %{__make} install \ | |
156 | DESTDIR=$RPM_BUILD_ROOT | |
157 | ||
9899927b MB |
158 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
159 | ||
17958b85 JB |
160 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{tl_PH,tl} |
161 | # already exists as ur | |
162 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/ur_PK | |
8b122451 | 163 | |
1c066059 KK |
164 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/exo} |
165 | ||
22fe3d17 MB |
166 | %py_postclean |
167 | ||
9899927b | 168 | %find_lang exo-1 |
2bc3c417 | 169 | |
c4ca9554 AG |
170 | %clean |
171 | rm -rf $RPM_BUILD_ROOT | |
172 | ||
173 | %post -p /sbin/ldconfig | |
9899927b | 174 | %postun -p /sbin/ldconfig |
c4ca9554 | 175 | |
1f492905 | 176 | %post -n xfce-preferred-applications |
737f4d4f | 177 | %update_icon_cache hicolor |
1f492905 | 178 | |
179 | %postun -n xfce-preferred-applications | |
737f4d4f | 180 | %update_icon_cache hicolor |
1f492905 | 181 | |
9899927b | 182 | %files -f exo-1.lang |
c4ca9554 | 183 | %defattr(644,root,root,755) |
9899927b MB |
184 | %doc AUTHORS ChangeLog HACKING NEWS README TODO |
185 | %attr(755,root,root) %{_libdir}/libexo-1.so.*.*.* | |
186 | %attr(755,root,root) %ghost %{_libdir}/libexo-1.so.0 | |
187 | %{_pixmapsdir}/exo-1 | |
c4ca9554 | 188 | |
1f492905 | 189 | %files -n xfce-preferred-applications |
190 | %defattr(644,root,root,755) | |
191 | %attr(755,root,root) %{_bindir}/* | |
9899927b MB |
192 | %dir %{_libdir}/xfce4/exo-1 |
193 | %attr(755,root,root) %{_libdir}/xfce4/exo-1/exo-compose-mail-1 | |
194 | %attr(755,root,root) %{_libdir}/xfce4/exo-1/exo-helper-1 | |
1f492905 | 195 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/xfce4/*.rc |
9899927b MB |
196 | %dir %{_datadir}/doc/exo |
197 | %dir %{_datadir}/doc/exo/html | |
198 | %{_datadir}/doc/exo/html/exo-preferred-applications.css | |
199 | %{_datadir}/doc/exo/html/C | |
200 | %lang(bn) %{_datadir}/doc/exo/html/bn | |
201 | %lang(ca) %{_datadir}/doc/exo/html/ca | |
202 | %lang(da) %{_datadir}/doc/exo/html/da | |
203 | %lang(de) %{_datadir}/doc/exo/html/de | |
204 | %lang(el) %{_datadir}/doc/exo/html/el | |
205 | %lang(es) %{_datadir}/doc/exo/html/es | |
206 | %lang(fr) %{_datadir}/doc/exo/html/fr | |
207 | %lang(gl) %{_datadir}/doc/exo/html/gl | |
208 | %lang(id) %{_datadir}/doc/exo/html/id | |
209 | %lang(it) %{_datadir}/doc/exo/html/it | |
210 | %lang(ja) %{_datadir}/doc/exo/html/ja | |
211 | %lang(pt) %{_datadir}/doc/exo/html/pt | |
212 | %lang(pt_BR) %{_datadir}/doc/exo/html/pt_BR | |
213 | %lang(ru) %{_datadir}/doc/exo/html/ru | |
214 | %lang(sv) %{_datadir}/doc/exo/html/sv | |
215 | %lang(tr) %{_datadir}/doc/exo/html/tr | |
216 | %lang(ug) %{_datadir}/doc/exo/html/ug | |
217 | %lang(zh_CN) %{_datadir}/doc/exo/html/zh_CN | |
1f492905 | 218 | %dir %{_datadir}/xfce4/helpers |
219 | %{_datadir}/xfce4/helpers/*.desktop | |
220 | %{_desktopdir}/*.desktop | |
221 | %{_iconsdir}/hicolor/*/apps/preferences-desktop-default-applications.png | |
222 | %{_iconsdir}/hicolor/*/apps/applications-internet.png | |
223 | %{_iconsdir}/hicolor/*/apps/applications-other.png | |
224 | %{_mandir}/man1/*.1* | |
225 | ||
1c066059 | 226 | %if %{with apidocs} |
0ab17a4e MB |
227 | %files apidocs |
228 | %defattr(644,root,root,755) | |
9899927b | 229 | %{_gtkdocdir}/exo-1 |
1c066059 | 230 | %endif |
0ab17a4e | 231 | |
c4ca9554 AG |
232 | %files devel |
233 | %defattr(644,root,root,755) | |
9899927b MB |
234 | %attr(755,root,root) %{_libdir}/libexo-1.so |
235 | %{_includedir}/exo-1 | |
236 | %{_pkgconfigdir}/exo-1.pc | |
c4ca9554 | 237 | |
3eb704f5 | 238 | %if %{with static_libs} |
c4ca9554 AG |
239 | %files static |
240 | %defattr(644,root,root,755) | |
9899927b | 241 | %{_libdir}/libexo-1.a |
3eb704f5 | 242 | %endif |
8b122451 JB |
243 | |
244 | %files -n python-exo | |
245 | %defattr(644,root,root,755) | |
9899927b MB |
246 | %dir %{py_sitedir}/exo-0.6 |
247 | %attr(755,root,root) %{py_sitedir}/exo-0.6/_exo.so | |
248 | %dir %{py_sitedir}/exo-0.6/exo | |
249 | %{py_sitedir}/exo-0.6/exo/*.py[co] | |
8b122451 JB |
250 | %{py_sitescriptdir}/*.py[co] |
251 | ||
252 | %files -n python-exo-devel | |
253 | %defattr(644,root,root,755) | |
9899927b | 254 | %{_datadir}/pygtk/2.0/defs/exo-0.6 |