- added mate-terminal to terminal emulator helpers
[packages/exo.git] / exo.spec
CommitLineData
22fe3d17 1#
3edba695 2# Conditional build:
1c066059 3%bcond_without apidocs # disable gtk-doc
4717f888 4%bcond_with static_libs # don't build static library
6f507619 5
009373c7 6%define xfce_version 4.10.0
c4ca9554 7Summary: Extension library to Xfce developed by os-cillation
3800417d 8Summary(pl.UTF-8): Biblioteka rozszerzeń do Xfce opracowana przez os-cillation
5b5c113b 9Name: exo
6f507619 10Version: 0.10.2
4f0cc361 11Release: 2
c4ca9554 12License: GPL v2
849ed81e 13Group: X11/Libraries
6f507619
ER
14Source0: http://archive.xfce.org/src/xfce/exo/0.10/%{name}-%{version}.tar.bz2
15# Source0-md5: c70f2a217811bfba2e62f938d4b8f748
4f0cc361 16Patch0: mate-terminal.patch
c4ca9554 17URL: http://www.os-cillation.com/
1f492905 18BuildRequires: autoconf >= 2.50
19BuildRequires: automake
20687b30 20BuildRequires: docbook-dtd412-xml
8607d679 21BuildRequires: gettext-devel
9899927b
MB
22BuildRequires: glib2-devel >= 1:2.27.0
23BuildRequires: gtk+2-devel >= 2:2.14.0
24%{?with_apidocs:BuildRequires: gtk-doc >= 1.9}
1c066059 25BuildRequires: gtk-doc-automake
737f4d4f 26BuildRequires: intltool >= 0.35.0
849ed81e 27BuildRequires: libtool
4717f888 28BuildRequires: libxfce4ui-devel >= %{xfce_version}
1f492905 29BuildRequires: libxfce4util-devel >= %{xfce_version}
d31d715c 30BuildRequires: perl-URI
8b122451 31BuildRequires: pkgconfig
9899927b 32BuildRequires: rpmbuild(macros) >= 1.601
009373c7 33BuildRequires: xfce4-dev-tools >= 4.10.0
9899927b 34Requires: glib2 >= 1:2.27.0
fd08d4f4 35Requires: xfce4-dirs >= 4.6
5b5c113b
MB
36Provides: libexo
37Obsoletes: libexo
c4ca9554
AG
38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40%description
41Extension library to Xfce developed by os-cillation.
42
8d7f3270
JR
43%description -l pl.UTF-8
44Biblioteka rozszerzeń do Xfce opracowana przez os-cillation.
c4ca9554 45
1f492905 46%package -n xfce-preferred-applications
47Summary: The Xfce Preferred Applications framework
3800417d 48Summary(pl.UTF-8): Struktura Preferowanych Aplikacji Xfce
849ed81e 49Group: X11/Applications
849ed81e 50Requires: %{name} = %{version}-%{release}
9899927b
MB
51Requires: gtk-update-icon-cache
52Requires: hicolor-icon-theme
1f492905 53
54%description -n xfce-preferred-applications
55The Xfce Preferred Applications framework.
56
8d7f3270 57%description -n xfce-preferred-applications -l pl.UTF-8
1f492905 58Struktura Preferowanych Aplikacji Xfce.
59
0ab17a4e
MB
60%package apidocs
61Summary: libexo API documentation
3800417d 62Summary(pl.UTF-8): Dokumentacja API libexo
0ab17a4e
MB
63Group: Documentation
64Requires: gtk-doc-common
5b5c113b
MB
65Provides: libexo-apidocs
66Obsoletes: libexo-apidocs
0ab17a4e
MB
67
68%description apidocs
69libexo API documentation.
70
8d7f3270 71%description apidocs -l pl.UTF-8
0ab17a4e
MB
72Dokumentacja API libexo.
73
c4ca9554
AG
74%package devel
75Summary: Header files for libexo library
3800417d 76Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libexo
849ed81e 77Group: X11/Development/Libraries
c4ca9554 78Requires: %{name} = %{version}-%{release}
9899927b 79Requires: gtk+2-devel >= 2:2.14.0
1f492905 80Requires: libxfce4util-devel >= %{xfce_version}
5b5c113b
MB
81Provides: libexo-devel
82Obsoletes: libexo-devel
c4ca9554
AG
83
84%description devel
85Header files for libexo library.
86
8d7f3270
JR
87%description devel -l pl.UTF-8
88Pliki nagłówkowe biblioteki libexo.
c4ca9554
AG
89
90%package static
91Summary: Static libexo library
3800417d 92Summary(pl.UTF-8): Statyczna biblioteka libexo
849ed81e 93Group: X11/Development/Libraries
c4ca9554 94Requires: %{name}-devel = %{version}-%{release}
5b5c113b
MB
95Provides: libexo-static
96Obsoletes: libexo-static
c4ca9554
AG
97
98%description static
99Static libexo library.
100
8d7f3270 101%description static -l pl.UTF-8
c4ca9554
AG
102Statyczna biblioteka libexo.
103
104%prep
5b5c113b 105%setup -q
4f0cc361 106%patch0 -p1
c4ca9554 107
6f507619
ER
108%{__sed} -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac
109
c4ca9554 110%build
90f8ebc9 111%{?with_apidocs:%{__gtkdocize}}
737f4d4f 112%{__intltoolize}
1f492905 113%{__libtoolize}
114%{__aclocal}
115%{__autoheader}
116%{__automake}
117%{__autoconf}
c4ca9554 118%configure \
1c066059 119 --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
3eb704f5 120 --with-html-dir=%{_gtkdocdir} \
9899927b
MB
121 %{!?with_static_libs:--disable-static} \
122 --disable-silent-rules
1c066059 123
c4ca9554
AG
124%{__make}
125
126%install
127rm -rf $RPM_BUILD_ROOT
c4ca9554
AG
128%{__make} install \
129 DESTDIR=$RPM_BUILD_ROOT
130
9899927b
MB
131%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
132
17958b85 133# already exists as ur
6f507619 134%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ur_PK
8b122451 135
1c066059
KK
136%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/exo}
137
9899927b 138%find_lang exo-1
2bc3c417 139
c4ca9554
AG
140%clean
141rm -rf $RPM_BUILD_ROOT
142
143%post -p /sbin/ldconfig
9899927b 144%postun -p /sbin/ldconfig
c4ca9554 145
1f492905 146%post -n xfce-preferred-applications
737f4d4f 147%update_icon_cache hicolor
1f492905 148
149%postun -n xfce-preferred-applications
737f4d4f 150%update_icon_cache hicolor
1f492905 151
9899927b 152%files -f exo-1.lang
c4ca9554 153%defattr(644,root,root,755)
9899927b
MB
154%doc AUTHORS ChangeLog HACKING NEWS README TODO
155%attr(755,root,root) %{_libdir}/libexo-1.so.*.*.*
156%attr(755,root,root) %ghost %{_libdir}/libexo-1.so.0
157%{_pixmapsdir}/exo-1
c4ca9554 158
1f492905 159%files -n xfce-preferred-applications
160%defattr(644,root,root,755)
161%attr(755,root,root) %{_bindir}/*
9899927b
MB
162%dir %{_libdir}/xfce4/exo-1
163%attr(755,root,root) %{_libdir}/xfce4/exo-1/exo-compose-mail-1
164%attr(755,root,root) %{_libdir}/xfce4/exo-1/exo-helper-1
1f492905 165%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/xfce4/*.rc
1f492905 166%dir %{_datadir}/xfce4/helpers
167%{_datadir}/xfce4/helpers/*.desktop
168%{_desktopdir}/*.desktop
169%{_iconsdir}/hicolor/*/apps/preferences-desktop-default-applications.png
170%{_iconsdir}/hicolor/*/apps/applications-internet.png
171%{_iconsdir}/hicolor/*/apps/applications-other.png
172%{_mandir}/man1/*.1*
173
1c066059 174%if %{with apidocs}
0ab17a4e
MB
175%files apidocs
176%defattr(644,root,root,755)
9899927b 177%{_gtkdocdir}/exo-1
1c066059 178%endif
0ab17a4e 179
c4ca9554
AG
180%files devel
181%defattr(644,root,root,755)
9899927b
MB
182%attr(755,root,root) %{_libdir}/libexo-1.so
183%{_includedir}/exo-1
184%{_pkgconfigdir}/exo-1.pc
c4ca9554 185
3eb704f5 186%if %{with static_libs}
c4ca9554
AG
187%files static
188%defattr(644,root,root,755)
9899927b 189%{_libdir}/libexo-1.a
3eb704f5 190%endif
This page took 0.139391 seconds and 4 git commands to generate.