]>
Commit | Line | Data |
---|---|---|
22fe3d17 | 1 | # |
3edba695 | 2 | # Conditional build: |
f6a11454 JB |
3 | %bcond_without apidocs # gtk-doc documentation |
4 | %bcond_with static_libs # static libraries | |
6f507619 | 5 | |
25761559 | 6 | %define xfce_version 4.16.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 |
d955fd3f | 10 | Version: 4.16.2 |
25761559 | 11 | Release: 1 |
c4ca9554 | 12 | License: GPL v2 |
849ed81e | 13 | Group: X11/Libraries |
25761559 | 14 | Source0: https://archive.xfce.org/src/xfce/exo/4.16/%{name}-%{version}.tar.bz2 |
d955fd3f | 15 | # Source0-md5: c75bace01ab779afef911d8a3823c8fa |
c4ca9554 | 16 | URL: http://www.os-cillation.com/ |
f6a11454 JB |
17 | BuildRequires: autoconf >= 2.60 |
18 | BuildRequires: automake >= 1:1.11 | |
20687b30 | 19 | BuildRequires: docbook-dtd412-xml |
f912a801 | 20 | BuildRequires: gettext-tools |
f6a11454 | 21 | BuildRequires: glib2-devel >= 1:2.42.0 |
f6a11454 | 22 | BuildRequires: gtk+3-devel >= 3.22.0 |
9899927b | 23 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.9} |
1c066059 | 24 | BuildRequires: gtk-doc-automake |
737f4d4f | 25 | BuildRequires: intltool >= 0.35.0 |
f6a11454 | 26 | BuildRequires: libtool >= 2:2.4 |
4717f888 | 27 | BuildRequires: libxfce4ui-devel >= %{xfce_version} |
1f492905 | 28 | BuildRequires: libxfce4util-devel >= %{xfce_version} |
d31d715c | 29 | BuildRequires: perl-URI |
8b122451 | 30 | BuildRequires: pkgconfig |
9899927b | 31 | BuildRequires: rpmbuild(macros) >= 1.601 |
25761559 | 32 | BuildRequires: xfce4-dev-tools >= 4.16.0 |
f6a11454 JB |
33 | Requires: glib2 >= 1:2.42.0 |
34 | Requires: gtk+3 >= 3.22.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 | ||
c4ca9554 AG |
60 | %package devel |
61 | Summary: Header files for libexo library | |
3800417d | 62 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libexo |
849ed81e | 63 | Group: X11/Development/Libraries |
c4ca9554 | 64 | Requires: %{name} = %{version}-%{release} |
f6a11454 | 65 | Requires: gtk+3-devel >= 3.22.0 |
1f492905 | 66 | Requires: libxfce4util-devel >= %{xfce_version} |
5b5c113b MB |
67 | Provides: libexo-devel |
68 | Obsoletes: libexo-devel | |
c4ca9554 AG |
69 | |
70 | %description devel | |
71 | Header files for libexo library. | |
72 | ||
8d7f3270 JR |
73 | %description devel -l pl.UTF-8 |
74 | Pliki nagłówkowe biblioteki libexo. | |
c4ca9554 AG |
75 | |
76 | %package static | |
77 | Summary: Static libexo library | |
3800417d | 78 | Summary(pl.UTF-8): Statyczna biblioteka libexo |
849ed81e | 79 | Group: X11/Development/Libraries |
c4ca9554 | 80 | Requires: %{name}-devel = %{version}-%{release} |
5b5c113b MB |
81 | Provides: libexo-static |
82 | Obsoletes: libexo-static | |
c4ca9554 AG |
83 | |
84 | %description static | |
85 | Static libexo library. | |
86 | ||
8d7f3270 | 87 | %description static -l pl.UTF-8 |
c4ca9554 AG |
88 | Statyczna biblioteka libexo. |
89 | ||
f6a11454 JB |
90 | %package apidocs |
91 | Summary: libexo API documentation | |
92 | Summary(pl.UTF-8): Dokumentacja API libexo | |
93 | Group: Documentation | |
94 | Requires: gtk-doc-common | |
95 | Provides: libexo-apidocs | |
96 | Obsoletes: libexo-apidocs | |
f6a11454 | 97 | BuildArch: noarch |
f6a11454 JB |
98 | |
99 | %description apidocs | |
100 | libexo API documentation. | |
101 | ||
102 | %description apidocs -l pl.UTF-8 | |
103 | Dokumentacja API libexo. | |
104 | ||
c4ca9554 | 105 | %prep |
5b5c113b | 106 | %setup -q |
6f507619 | 107 | |
5b75fd4b JR |
108 | mkdir -p m4 |
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 \ |
f6a11454 JB |
119 | --enable-gtk-doc%{!?with_apidocs:=no} \ |
120 | --disable-silent-rules \ | |
25761559 | 121 | %{?with_static_libs:--enable-static} \ |
f6a11454 | 122 | --with-html-dir=%{_gtkdocdir} |
1c066059 | 123 | |
c4ca9554 AG |
124 | %{__make} |
125 | ||
126 | %install | |
127 | rm -rf $RPM_BUILD_ROOT | |
f6a11454 | 128 | |
c4ca9554 AG |
129 | %{__make} install \ |
130 | DESTDIR=$RPM_BUILD_ROOT | |
131 | ||
f6a11454 JB |
132 | # obsoleted by pkg-config |
133 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libexo*.la | |
8b122451 | 134 | |
f6a11454 JB |
135 | # duplicates of hy,ur |
136 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{hy_AM,ur_PK} | |
137 | # not supported by glibc (as of 2.32) | |
25761559 | 138 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{fa_IR,hye,ie} |
3ab60cef | 139 | |
25761559 | 140 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/exo-2} |
1c066059 | 141 | |
25761559 | 142 | %find_lang exo-2 |
2bc3c417 | 143 | |
c4ca9554 AG |
144 | %clean |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
147 | %post -p /sbin/ldconfig | |
9899927b | 148 | %postun -p /sbin/ldconfig |
c4ca9554 | 149 | |
1f492905 | 150 | %post -n xfce-preferred-applications |
737f4d4f | 151 | %update_icon_cache hicolor |
1f492905 | 152 | |
153 | %postun -n xfce-preferred-applications | |
737f4d4f | 154 | %update_icon_cache hicolor |
1f492905 | 155 | |
25761559 | 156 | %files -f exo-2.lang |
c4ca9554 | 157 | %defattr(644,root,root,755) |
25761559 | 158 | %doc AUTHORS ChangeLog HACKING NEWS |
1695fd3a JR |
159 | %attr(755,root,root) %{_libdir}/libexo-2.so.*.*.* |
160 | %attr(755,root,root) %ghost %{_libdir}/libexo-2.so.0 | |
b2f2a79c | 161 | %{_pixmapsdir}/exo |
c4ca9554 | 162 | |
1f492905 | 163 | %files -n xfce-preferred-applications |
164 | %defattr(644,root,root,755) | |
2caebf49 JP |
165 | %attr(755,root,root) %{_bindir}/exo-desktop-item-edit |
166 | %attr(755,root,root) %{_bindir}/exo-open | |
1f492905 | 167 | %{_iconsdir}/hicolor/*/apps/preferences-desktop-default-applications.png |
f6a11454 | 168 | %{_mandir}/man1/exo-open.1* |
0ab17a4e | 169 | |
c4ca9554 AG |
170 | %files devel |
171 | %defattr(644,root,root,755) | |
1695fd3a | 172 | %attr(755,root,root) %{_libdir}/libexo-2.so |
1695fd3a | 173 | %{_includedir}/exo-2 |
1695fd3a | 174 | %{_pkgconfigdir}/exo-2.pc |
c4ca9554 | 175 | |
3eb704f5 | 176 | %if %{with static_libs} |
c4ca9554 AG |
177 | %files static |
178 | %defattr(644,root,root,755) | |
1695fd3a | 179 | %{_libdir}/libexo-2.a |
3eb704f5 | 180 | %endif |
f6a11454 JB |
181 | |
182 | %if %{with apidocs} | |
183 | %files apidocs | |
184 | %defattr(644,root,root,755) | |
25761559 | 185 | %{_gtkdocdir}/exo-2 |
f6a11454 | 186 | %endif |