]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
5 | %define xfce_version 4.4.3 | |
6 | # | |
7 | Summary: Extension library to Xfce developed by os-cillation | |
8 | Summary(pl.UTF-8): Biblioteka rozszerzeń do Xfce opracowana przez os-cillation | |
9 | Name: libexo | |
10 | Version: 0.3.4 | |
11 | Release: 4 | |
12 | License: GPL v2 | |
13 | Group: Libraries | |
14 | Source0: http://www.xfce.org/archive/xfce-%{xfce_version}/src/exo-%{version}.tar.bz2 | |
15 | # Source0-md5: 7a1af943b1df32b6f89ae91823118a22 | |
16 | Patch0: %{name}-locale-names.patch | |
17 | Patch1: %{name}-teardown-crypto-on-eject.patch | |
18 | URL: http://www.os-cillation.com/ | |
19 | BuildRequires: autoconf >= 2.50 | |
20 | BuildRequires: automake | |
21 | BuildRequires: gettext-devel | |
22 | BuildRequires: gtk+2-devel >= 2:2.10.6 | |
23 | BuildRequires: gtk-doc >= 1.7 | |
24 | BuildRequires: hal-devel >= 0.5.0 | |
25 | BuildRequires: intltool >= 0.35.0 | |
26 | BuildRequires: libtool | |
27 | BuildRequires: libnotify-devel >= 0.4.0 | |
28 | BuildRequires: libxfce4util-devel >= %{xfce_version} | |
29 | BuildRequires: perl-URI | |
30 | BuildRequires: pkgconfig | |
31 | BuildRequires: python-pygtk-devel >= 2:2.10.3 | |
32 | BuildRequires: rpm-pythonprov | |
33 | BuildRequires: rpmbuild(macros) >= 1.311 | |
34 | BuildRequires: xfce-mcs-manager-devel >= %{xfce_version} | |
35 | BuildRequires: xfce4-dev-tools >= 4.4.0.1 | |
36 | BuildRequires: xorg-lib-libXt-devel | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
40 | Extension library to Xfce developed by os-cillation. | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | Biblioteka rozszerzeń do Xfce opracowana przez os-cillation. | |
44 | ||
45 | %package -n xfce-preferred-applications | |
46 | Summary: The Xfce Preferred Applications framework | |
47 | Summary(pl.UTF-8): Struktura Preferowanych Aplikacji Xfce | |
48 | Group: Applications | |
49 | Requires(post,postun): gtk+2 | |
50 | Requires(post,postun): hicolor-icon-theme | |
51 | Requires: xfce-mcs-plugins >= %{xfce_version} | |
52 | ||
53 | %description -n xfce-preferred-applications | |
54 | The Xfce Preferred Applications framework. | |
55 | ||
56 | %description -n xfce-preferred-applications -l pl.UTF-8 | |
57 | Struktura Preferowanych Aplikacji Xfce. | |
58 | ||
59 | %package apidocs | |
60 | Summary: libexo API documentation | |
61 | Summary(pl.UTF-8): Dokumentacja API libexo | |
62 | Group: Documentation | |
63 | Requires: gtk-doc-common | |
64 | ||
65 | %description apidocs | |
66 | libexo API documentation. | |
67 | ||
68 | %description apidocs -l pl.UTF-8 | |
69 | Dokumentacja API libexo. | |
70 | ||
71 | %package devel | |
72 | Summary: Header files for libexo library | |
73 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libexo | |
74 | Group: Development/Libraries | |
75 | Requires: %{name} = %{version}-%{release} | |
76 | Requires: libxfce4util-devel >= %{xfce_version} | |
77 | ||
78 | %description devel | |
79 | Header files for libexo library. | |
80 | ||
81 | %description devel -l pl.UTF-8 | |
82 | Pliki nagłówkowe biblioteki libexo. | |
83 | ||
84 | %package static | |
85 | Summary: Static libexo library | |
86 | Summary(pl.UTF-8): Statyczna biblioteka libexo | |
87 | Group: Development/Libraries | |
88 | Requires: %{name}-devel = %{version}-%{release} | |
89 | ||
90 | %description static | |
91 | Static libexo library. | |
92 | ||
93 | %description static -l pl.UTF-8 | |
94 | Statyczna biblioteka libexo. | |
95 | ||
96 | %package -n python-exo | |
97 | Summary: Python binding for libexo library | |
98 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki libexo | |
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 | ||
106 | %description -n python-exo -l pl.UTF-8 | |
107 | Wiązania Pythona do biblioteki libexo. | |
108 | ||
109 | %package -n python-exo-devel | |
110 | Summary: Development files for libexo Python bindings | |
111 | Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do libexo | |
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 | ||
118 | %description -n python-exo-devel -l pl.UTF-8 | |
119 | Pliki programistyczne wiązań Pythona do libexo. | |
120 | ||
121 | %prep | |
122 | %setup -q -n exo-%{version} | |
123 | %patch0 -p1 | |
124 | %patch1 -p0 | |
125 | ||
126 | mv -f po/{pt_PT,pt}.po | |
127 | mv -f po/{nb_NO,nb}.po | |
128 | ||
129 | %build | |
130 | %{__intltoolize} | |
131 | %{__libtoolize} | |
132 | %{__aclocal} | |
133 | %{__autoheader} | |
134 | %{__automake} | |
135 | %{__autoconf} | |
136 | %configure \ | |
137 | --enable-hal \ | |
138 | --enable-gtk-doc \ | |
139 | --enable-notifications \ | |
140 | --with-html-dir=%{_gtkdocdir} \ | |
141 | %{!?with_static_libs:--disable-static} \ | |
142 | --enable-python \ | |
143 | --enable-mcs-plugin | |
144 | %{__make} | |
145 | ||
146 | %install | |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | ||
149 | %{__make} install \ | |
150 | DESTDIR=$RPM_BUILD_ROOT | |
151 | ||
152 | rm -f $RPM_BUILD_ROOT%{_libdir}/xfce4/mcs-plugins/*.{la,a} | |
153 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/exo-0.3/*.{la,a} | |
154 | ||
155 | %py_postclean | |
156 | ||
157 | %find_lang %{name}-0.3 | |
158 | ||
159 | %clean | |
160 | rm -rf $RPM_BUILD_ROOT | |
161 | ||
162 | %post -p /sbin/ldconfig | |
163 | %postun -p /sbin/ldconfig | |
164 | ||
165 | %post -n xfce-preferred-applications | |
166 | %update_icon_cache hicolor | |
167 | ||
168 | %postun -n xfce-preferred-applications | |
169 | %update_icon_cache hicolor | |
170 | ||
171 | %files -f %{name}-0.3.lang | |
172 | %defattr(644,root,root,755) | |
173 | %doc AUTHORS ChangeLog HACKING NEWS README TODO | |
174 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* | |
175 | %{_pixmapsdir}/exo-0.3/ | |
176 | ||
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 | |
182 | %attr(755,root,root) %{_libdir}/exo-mount-notify-0.3 | |
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 | |
186 | %lang(fr) %{_datadir}/xfce4/doc/fr | |
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 | ||
196 | %files apidocs | |
197 | %defattr(644,root,root,755) | |
198 | %{_gtkdocdir}/exo | |
199 | ||
200 | %files devel | |
201 | %defattr(644,root,root,755) | |
202 | %attr(755,root,root) %{_libdir}/lib*.so | |
203 | %{_libdir}/lib*.la | |
204 | %{_includedir}/exo-0.3 | |
205 | %{_pkgconfigdir}/*.pc | |
206 | ||
207 | %if %{with static_libs} | |
208 | %files static | |
209 | %defattr(644,root,root,755) | |
210 | %{_libdir}/lib*.a | |
211 | %endif | |
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 |