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