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