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