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