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