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