]> git.pld-linux.org Git - packages/exo.git/blame - exo.spec
- fixed %install
[packages/exo.git] / exo.spec
CommitLineData
22fe3d17 1#
3edba695 2# Conditional build:
1c066059 3%bcond_without apidocs # disable gtk-doc
3eb704f5 4%bcond_without static_libs # don't build static library
3edba695 5#
9899927b 6%define xfce_version 4.8.0
1f492905 7#
c4ca9554 8Summary: Extension library to Xfce developed by os-cillation
3800417d 9Summary(pl.UTF-8): Biblioteka rozszerzeń do Xfce opracowana przez os-cillation
5b5c113b 10Name: exo
9899927b 11Version: 0.6.0
5daceb24 12Release: 2
c4ca9554 13License: GPL v2
849ed81e 14Group: X11/Libraries
9899927b
MB
15Source0: http://archive.xfce.org/xfce/4.8/src/%{name}-%{version}.tar.bz2
16# Source0-md5: ac9deafdf9de426d8a03855ac549f424
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
1f492905 28BuildRequires: libxfce4util-devel >= %{xfce_version}
d31d715c 29BuildRequires: perl-URI
8b122451 30BuildRequires: pkgconfig
aa64eb26 31BuildRequires: python-pygtk-devel >= 2:2.10.3
1f492905 32BuildRequires: rpm-pythonprov
9899927b
MB
33BuildRequires: rpmbuild(macros) >= 1.601
34BuildRequires: xfce4-dev-tools >= 4.8.0
35Requires: glib2 >= 1:2.27.0
fd08d4f4 36Requires: xfce4-dirs >= 4.6
5b5c113b
MB
37Provides: libexo
38Obsoletes: libexo
c4ca9554
AG
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
42Extension library to Xfce developed by os-cillation.
43
8d7f3270
JR
44%description -l pl.UTF-8
45Biblioteka rozszerzeń do Xfce opracowana przez os-cillation.
c4ca9554 46
1f492905 47%package -n xfce-preferred-applications
48Summary: The Xfce Preferred Applications framework
3800417d 49Summary(pl.UTF-8): Struktura Preferowanych Aplikacji Xfce
849ed81e 50Group: X11/Applications
849ed81e 51Requires: %{name} = %{version}-%{release}
9899927b
MB
52Requires: gtk-update-icon-cache
53Requires: hicolor-icon-theme
1f492905 54
55%description -n xfce-preferred-applications
56The Xfce Preferred Applications framework.
57
8d7f3270 58%description -n xfce-preferred-applications -l pl.UTF-8
1f492905 59Struktura Preferowanych Aplikacji Xfce.
60
0ab17a4e
MB
61%package apidocs
62Summary: libexo API documentation
3800417d 63Summary(pl.UTF-8): Dokumentacja API libexo
0ab17a4e
MB
64Group: Documentation
65Requires: gtk-doc-common
5b5c113b
MB
66Provides: libexo-apidocs
67Obsoletes: libexo-apidocs
0ab17a4e
MB
68
69%description apidocs
70libexo API documentation.
71
8d7f3270 72%description apidocs -l pl.UTF-8
0ab17a4e
MB
73Dokumentacja API libexo.
74
c4ca9554
AG
75%package devel
76Summary: Header files for libexo library
3800417d 77Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libexo
849ed81e 78Group: X11/Development/Libraries
c4ca9554 79Requires: %{name} = %{version}-%{release}
9899927b 80Requires: gtk+2-devel >= 2:2.14.0
1f492905 81Requires: libxfce4util-devel >= %{xfce_version}
5b5c113b
MB
82Provides: libexo-devel
83Obsoletes: libexo-devel
c4ca9554
AG
84
85%description devel
86Header files for libexo library.
87
8d7f3270
JR
88%description devel -l pl.UTF-8
89Pliki nagłówkowe biblioteki libexo.
c4ca9554
AG
90
91%package static
92Summary: Static libexo library
3800417d 93Summary(pl.UTF-8): Statyczna biblioteka libexo
849ed81e 94Group: X11/Development/Libraries
c4ca9554 95Requires: %{name}-devel = %{version}-%{release}
5b5c113b
MB
96Provides: libexo-static
97Obsoletes: libexo-static
c4ca9554
AG
98
99%description static
100Static libexo library.
101
8d7f3270 102%description static -l pl.UTF-8
c4ca9554
AG
103Statyczna biblioteka libexo.
104
8b122451
JB
105%package -n python-exo
106Summary: Python binding for libexo library
3800417d 107Summary(pl.UTF-8): Wiązania Pythona do biblioteki libexo
8b122451
JB
108Group: Libraries/Python
109Requires: %{name} = %{version}-%{release}
110%pyrequires_eq python-libs
111
112%description -n python-exo
113Python binding for libexo library.
114
8d7f3270
JR
115%description -n python-exo -l pl.UTF-8
116Wiązania Pythona do biblioteki libexo.
8b122451
JB
117
118%package -n python-exo-devel
119Summary: Development files for libexo Python bindings
3800417d 120Summary(pl.UTF-8): Pliki programistyczne wiązań Pythona do libexo
8b122451
JB
121Group: Libraries/Python
122Requires: python-exo = %{version}-%{release}
123
124%description -n python-exo-devel
125Development files for libexo Python bindings.
126
8d7f3270
JR
127%description -n python-exo-devel -l pl.UTF-8
128Pliki programistyczne wiązań Pythona do libexo.
8b122451 129
c4ca9554 130%prep
5b5c113b 131%setup -q
c4ca9554
AG
132
133%build
90f8ebc9 134%{?with_apidocs:%{__gtkdocize}}
737f4d4f 135%{__intltoolize}
1f492905 136%{__libtoolize}
137%{__aclocal}
138%{__autoheader}
139%{__automake}
140%{__autoconf}
c4ca9554 141%configure \
1c066059 142 --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
0ab17a4e 143 --enable-notifications \
1c066059 144 --enable-python \
3eb704f5 145 --with-html-dir=%{_gtkdocdir} \
9899927b
MB
146 %{!?with_static_libs:--disable-static} \
147 --disable-silent-rules
1c066059 148
c4ca9554
AG
149%{__make}
150
151%install
152rm -rf $RPM_BUILD_ROOT
153
154%{__make} install \
155 DESTDIR=$RPM_BUILD_ROOT
156
9899927b
MB
157%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/exo-*/*.{a,la}
158%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
159
160%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{tl_PH,ur_PK}
8b122451 161
1c066059
KK
162%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/exo}
163
22fe3d17
MB
164%py_postclean
165
9899927b 166%find_lang exo-1
2bc3c417 167
c4ca9554
AG
168%clean
169rm -rf $RPM_BUILD_ROOT
170
171%post -p /sbin/ldconfig
9899927b 172%postun -p /sbin/ldconfig
c4ca9554 173
1f492905 174%post -n xfce-preferred-applications
737f4d4f 175%update_icon_cache hicolor
1f492905 176
177%postun -n xfce-preferred-applications
737f4d4f 178%update_icon_cache hicolor
1f492905 179
9899927b 180%files -f exo-1.lang
c4ca9554 181%defattr(644,root,root,755)
9899927b
MB
182%doc AUTHORS ChangeLog HACKING NEWS README TODO
183%attr(755,root,root) %{_libdir}/libexo-1.so.*.*.*
184%attr(755,root,root) %ghost %{_libdir}/libexo-1.so.0
185%{_pixmapsdir}/exo-1
c4ca9554 186
1f492905 187%files -n xfce-preferred-applications
188%defattr(644,root,root,755)
189%attr(755,root,root) %{_bindir}/*
9899927b
MB
190%dir %{_libdir}/xfce4/exo-1
191%attr(755,root,root) %{_libdir}/xfce4/exo-1/exo-compose-mail-1
192%attr(755,root,root) %{_libdir}/xfce4/exo-1/exo-helper-1
1f492905 193%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/xfce4/*.rc
9899927b
MB
194%dir %{_datadir}/doc/exo
195%dir %{_datadir}/doc/exo/html
196%{_datadir}/doc/exo/html/exo-preferred-applications.css
197%{_datadir}/doc/exo/html/C
198%lang(bn) %{_datadir}/doc/exo/html/bn
199%lang(ca) %{_datadir}/doc/exo/html/ca
200%lang(da) %{_datadir}/doc/exo/html/da
201%lang(de) %{_datadir}/doc/exo/html/de
202%lang(el) %{_datadir}/doc/exo/html/el
203%lang(es) %{_datadir}/doc/exo/html/es
204%lang(fr) %{_datadir}/doc/exo/html/fr
205%lang(gl) %{_datadir}/doc/exo/html/gl
206%lang(id) %{_datadir}/doc/exo/html/id
207%lang(it) %{_datadir}/doc/exo/html/it
208%lang(ja) %{_datadir}/doc/exo/html/ja
209%lang(pt) %{_datadir}/doc/exo/html/pt
210%lang(pt_BR) %{_datadir}/doc/exo/html/pt_BR
211%lang(ru) %{_datadir}/doc/exo/html/ru
212%lang(sv) %{_datadir}/doc/exo/html/sv
213%lang(tr) %{_datadir}/doc/exo/html/tr
214%lang(ug) %{_datadir}/doc/exo/html/ug
215%lang(zh_CN) %{_datadir}/doc/exo/html/zh_CN
1f492905 216%dir %{_datadir}/xfce4/helpers
217%{_datadir}/xfce4/helpers/*.desktop
218%{_desktopdir}/*.desktop
219%{_iconsdir}/hicolor/*/apps/preferences-desktop-default-applications.png
220%{_iconsdir}/hicolor/*/apps/applications-internet.png
221%{_iconsdir}/hicolor/*/apps/applications-other.png
222%{_mandir}/man1/*.1*
223
1c066059 224%if %{with apidocs}
0ab17a4e
MB
225%files apidocs
226%defattr(644,root,root,755)
9899927b 227%{_gtkdocdir}/exo-1
1c066059 228%endif
0ab17a4e 229
c4ca9554
AG
230%files devel
231%defattr(644,root,root,755)
9899927b
MB
232%attr(755,root,root) %{_libdir}/libexo-1.so
233%{_includedir}/exo-1
234%{_pkgconfigdir}/exo-1.pc
c4ca9554 235
3eb704f5 236%if %{with static_libs}
c4ca9554
AG
237%files static
238%defattr(644,root,root,755)
9899927b 239%{_libdir}/libexo-1.a
3eb704f5 240%endif
8b122451
JB
241
242%files -n python-exo
243%defattr(644,root,root,755)
9899927b
MB
244%dir %{py_sitedir}/exo-0.6
245%attr(755,root,root) %{py_sitedir}/exo-0.6/_exo.so
246%dir %{py_sitedir}/exo-0.6/exo
247%{py_sitedir}/exo-0.6/exo/*.py[co]
8b122451
JB
248%{py_sitescriptdir}/*.py[co]
249
250%files -n python-exo-devel
251%defattr(644,root,root,755)
9899927b 252%{_datadir}/pygtk/2.0/defs/exo-0.6
This page took 0.107477 seconds and 4 git commands to generate.