3 %bcond_without apidocs # disable gtk-doc
4 %bcond_with static_libs # don't build static library
6 %define xfce_version 4.10.0
7 Summary: Extension library to Xfce developed by os-cillation
8 Summary(pl.UTF-8): Biblioteka rozszerzeń do Xfce opracowana przez os-cillation
14 Source0: http://archive.xfce.org/src/xfce/exo/0.10/%{name}-%{version}.tar.bz2
15 # Source0-md5: fe54dad8b897af36628da46b33844f95
16 Patch0: mate-terminal.patch
17 URL: http://www.os-cillation.com/
18 BuildRequires: autoconf >= 2.50
19 BuildRequires: automake
20 BuildRequires: docbook-dtd412-xml
21 BuildRequires: gettext-tools
22 BuildRequires: glib2-devel >= 1:2.30.0
23 BuildRequires: gtk+2-devel >= 2:2.24.0
24 %{?with_apidocs:BuildRequires: gtk-doc >= 1.9}
25 BuildRequires: gtk-doc-automake
26 BuildRequires: intltool >= 0.35.0
27 BuildRequires: libtool
28 BuildRequires: libxfce4ui-devel >= %{xfce_version}
29 BuildRequires: libxfce4util-devel >= %{xfce_version}
30 BuildRequires: perl-URI
31 BuildRequires: pkgconfig
32 BuildRequires: rpmbuild(macros) >= 1.601
33 BuildRequires: xfce4-dev-tools >= 4.10.0
34 Requires: glib2 >= 1:2.27.0
35 Requires: xfce4-dirs >= 4.6
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 Extension library to Xfce developed by os-cillation.
43 %description -l pl.UTF-8
44 Biblioteka rozszerzeń do Xfce opracowana przez os-cillation.
46 %package -n xfce-preferred-applications
47 Summary: The Xfce Preferred Applications framework
48 Summary(pl.UTF-8): Struktura Preferowanych Aplikacji Xfce
49 Group: X11/Applications
50 Requires: %{name} = %{version}-%{release}
51 Requires: gtk-update-icon-cache
52 Requires: hicolor-icon-theme
54 %description -n xfce-preferred-applications
55 The Xfce Preferred Applications framework.
57 %description -n xfce-preferred-applications -l pl.UTF-8
58 Struktura Preferowanych Aplikacji Xfce.
61 Summary: libexo API documentation
62 Summary(pl.UTF-8): Dokumentacja API libexo
64 Requires: gtk-doc-common
65 Provides: libexo-apidocs
66 Obsoletes: libexo-apidocs
67 %if "%{_rpmversion}" >= "5"
72 libexo API documentation.
74 %description apidocs -l pl.UTF-8
75 Dokumentacja API libexo.
78 Summary: Header files for libexo library
79 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libexo
80 Group: X11/Development/Libraries
81 Requires: %{name} = %{version}-%{release}
82 Requires: gtk+2-devel >= 2:2.14.0
83 Requires: libxfce4util-devel >= %{xfce_version}
84 Provides: libexo-devel
85 Obsoletes: libexo-devel
88 Header files for libexo library.
90 %description devel -l pl.UTF-8
91 Pliki nagłówkowe biblioteki libexo.
94 Summary: Static libexo library
95 Summary(pl.UTF-8): Statyczna biblioteka libexo
96 Group: X11/Development/Libraries
97 Requires: %{name}-devel = %{version}-%{release}
98 Provides: libexo-static
99 Obsoletes: libexo-static
102 Static libexo library.
104 %description static -l pl.UTF-8
105 Statyczna biblioteka libexo.
111 %{__sed} -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac
116 %{?with_apidocs:%{__gtkdocize}}
124 --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
125 --with-html-dir=%{_gtkdocdir} \
126 %{!?with_static_libs:--disable-static} \
127 --disable-silent-rules
132 rm -rf $RPM_BUILD_ROOT
134 DESTDIR=$RPM_BUILD_ROOT
136 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
138 # already exists as ur
139 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ur_PK
141 %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/exo}
146 rm -rf $RPM_BUILD_ROOT
148 %post -p /sbin/ldconfig
149 %postun -p /sbin/ldconfig
151 %post -n xfce-preferred-applications
152 %update_icon_cache hicolor
154 %postun -n xfce-preferred-applications
155 %update_icon_cache hicolor
158 %defattr(644,root,root,755)
159 %doc AUTHORS ChangeLog HACKING NEWS README TODO
160 %attr(755,root,root) %{_libdir}/libexo-1.so.*.*.*
161 %attr(755,root,root) %ghost %{_libdir}/libexo-1.so.0
164 %files -n xfce-preferred-applications
165 %defattr(644,root,root,755)
166 %attr(755,root,root) %{_bindir}/*
167 %dir %{_libdir}/xfce4/exo-1
168 %attr(755,root,root) %{_libdir}/xfce4/exo-1/exo-compose-mail-1
169 %attr(755,root,root) %{_libdir}/xfce4/exo-1/exo-helper-1
170 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/xfce4/*.rc
171 %dir %{_datadir}/xfce4/helpers
172 %{_datadir}/xfce4/helpers/*.desktop
173 %{_desktopdir}/*.desktop
174 %{_iconsdir}/hicolor/*/apps/preferences-desktop-default-applications.png
175 %{_iconsdir}/hicolor/*/categories/applications-internet.png
176 %{_iconsdir}/hicolor/*/categories/applications-other.png
181 %defattr(644,root,root,755)
186 %defattr(644,root,root,755)
187 %attr(755,root,root) %{_libdir}/libexo-1.so
189 %{_pkgconfigdir}/exo-1.pc
191 %if %{with static_libs}
193 %defattr(644,root,root,755)
194 %{_libdir}/libexo-1.a