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