]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # gtk-doc documentation | |
4 | %bcond_with static_libs # static libraries | |
5 | ||
6 | %define xfce_version 4.18.0 | |
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: exo | |
10 | Version: 4.18.0 | |
11 | Release: 1 | |
12 | License: GPL v2 | |
13 | Group: X11/Libraries | |
14 | Source0: https://archive.xfce.org/src/xfce/exo/4.18/%{name}-%{version}.tar.bz2 | |
15 | # Source0-md5: 9d0be4e885eaf991e12dbc14d3fc628d | |
16 | URL: https://docs.xfce.org/xfce/exo/start | |
17 | BuildRequires: autoconf >= 2.69 | |
18 | BuildRequires: automake >= 1:1.11 | |
19 | BuildRequires: docbook-dtd412-xml | |
20 | BuildRequires: gettext-tools | |
21 | BuildRequires: glib2-devel >= 1:2.66.0 | |
22 | BuildRequires: gtk+3-devel >= 3.24.0 | |
23 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.20} | |
24 | BuildRequires: gtk-doc-automake >= 1.20 | |
25 | BuildRequires: intltool >= 0.35.0 | |
26 | BuildRequires: libtool >= 2:2.4 | |
27 | BuildRequires: libxfce4ui-devel >= %{xfce_version} | |
28 | BuildRequires: libxfce4util-devel >= %{xfce_version} | |
29 | BuildRequires: perl-URI | |
30 | BuildRequires: pkgconfig | |
31 | BuildRequires: rpm-build >= 4.6 | |
32 | BuildRequires: rpmbuild(macros) >= 2.000 | |
33 | BuildRequires: xfce4-dev-tools >= 4.18.0 | |
34 | Requires: glib2 >= 1:2.66.0 | |
35 | Requires: gtk+3 >= 3.24.0 | |
36 | Requires: xfce4-dirs >= 4.6 | |
37 | Provides: libexo | |
38 | Obsoletes: libexo < 0.3.101 | |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
42 | Extension library to Xfce developed by os-cillation. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | Biblioteka rozszerzeń do Xfce opracowana przez os-cillation. | |
46 | ||
47 | %package -n xfce-preferred-applications | |
48 | Summary: The Xfce Preferred Applications framework | |
49 | Summary(pl.UTF-8): Struktura Preferowanych Aplikacji Xfce | |
50 | Group: X11/Applications | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | Requires: gtk-update-icon-cache | |
53 | Requires: hicolor-icon-theme | |
54 | ||
55 | %description -n xfce-preferred-applications | |
56 | The Xfce Preferred Applications framework. | |
57 | ||
58 | %description -n xfce-preferred-applications -l pl.UTF-8 | |
59 | Struktura Preferowanych Aplikacji Xfce. | |
60 | ||
61 | %package devel | |
62 | Summary: Header files for libexo library | |
63 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libexo | |
64 | Group: X11/Development/Libraries | |
65 | Requires: %{name} = %{version}-%{release} | |
66 | Requires: gtk+3-devel >= 3.24.0 | |
67 | Requires: libxfce4util-devel >= %{xfce_version} | |
68 | Provides: libexo-devel | |
69 | Obsoletes: libexo-devel < 0.3.101 | |
70 | ||
71 | %description devel | |
72 | Header files for libexo library. | |
73 | ||
74 | %description devel -l pl.UTF-8 | |
75 | Pliki nagłówkowe biblioteki libexo. | |
76 | ||
77 | %package static | |
78 | Summary: Static libexo library | |
79 | Summary(pl.UTF-8): Statyczna biblioteka libexo | |
80 | Group: X11/Development/Libraries | |
81 | Requires: %{name}-devel = %{version}-%{release} | |
82 | Provides: libexo-static | |
83 | Obsoletes: libexo-static < 0.3.101 | |
84 | ||
85 | %description static | |
86 | Static libexo library. | |
87 | ||
88 | %description static -l pl.UTF-8 | |
89 | Statyczna biblioteka libexo. | |
90 | ||
91 | %package apidocs | |
92 | Summary: libexo API documentation | |
93 | Summary(pl.UTF-8): Dokumentacja API libexo | |
94 | Group: Documentation | |
95 | Requires: gtk-doc-common | |
96 | Provides: libexo-apidocs | |
97 | Obsoletes: libexo-apidocs < 0.3.101 | |
98 | BuildArch: noarch | |
99 | ||
100 | %description apidocs | |
101 | libexo API documentation. | |
102 | ||
103 | %description apidocs -l pl.UTF-8 | |
104 | Dokumentacja API libexo. | |
105 | ||
106 | %prep | |
107 | %setup -q | |
108 | ||
109 | mkdir -p m4 | |
110 | ||
111 | %build | |
112 | %{?with_apidocs:%{__gtkdocize}} | |
113 | %{__intltoolize} | |
114 | %{__libtoolize} | |
115 | %{__aclocal} | |
116 | %{__autoheader} | |
117 | %{__automake} | |
118 | %{__autoconf} | |
119 | %configure \ | |
120 | --enable-gtk-doc%{!?with_apidocs:=no} \ | |
121 | --disable-silent-rules \ | |
122 | %{?with_static_libs:--enable-static} \ | |
123 | --with-html-dir=%{_gtkdocdir} | |
124 | ||
125 | %{__make} | |
126 | ||
127 | %install | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %{__make} install \ | |
131 | DESTDIR=$RPM_BUILD_ROOT | |
132 | ||
133 | # obsoleted by pkg-config | |
134 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libexo*.la | |
135 | ||
136 | # unify dir name | |
137 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fa_IR,fa} | |
138 | # duplicates of hy,ur,az | |
139 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{az_AZ,hy_AM,ur_PK} | |
140 | # not supported by glibc (as of 2.37) | |
141 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{hye,ie} | |
142 | ||
143 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/exo-2} | |
144 | ||
145 | %find_lang %{name} | |
146 | ||
147 | %clean | |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
150 | %post -p /sbin/ldconfig | |
151 | %postun -p /sbin/ldconfig | |
152 | ||
153 | %post -n xfce-preferred-applications | |
154 | %update_icon_cache hicolor | |
155 | ||
156 | %postun -n xfce-preferred-applications | |
157 | %update_icon_cache hicolor | |
158 | ||
159 | %files -f %{name}.lang | |
160 | %defattr(644,root,root,755) | |
161 | %doc AUTHORS ChangeLog HACKING NEWS | |
162 | %attr(755,root,root) %{_libdir}/libexo-2.so.*.*.* | |
163 | %attr(755,root,root) %ghost %{_libdir}/libexo-2.so.0 | |
164 | %{_pixmapsdir}/exo | |
165 | ||
166 | %files -n xfce-preferred-applications | |
167 | %defattr(644,root,root,755) | |
168 | %attr(755,root,root) %{_bindir}/exo-desktop-item-edit | |
169 | %attr(755,root,root) %{_bindir}/exo-open | |
170 | %{_mandir}/man1/exo-open.1* | |
171 | ||
172 | %files devel | |
173 | %defattr(644,root,root,755) | |
174 | %attr(755,root,root) %{_libdir}/libexo-2.so | |
175 | %{_includedir}/exo-2 | |
176 | %{_pkgconfigdir}/exo-2.pc | |
177 | ||
178 | %if %{with static_libs} | |
179 | %files static | |
180 | %defattr(644,root,root,755) | |
181 | %{_libdir}/libexo-2.a | |
182 | %endif | |
183 | ||
184 | %if %{with apidocs} | |
185 | %files apidocs | |
186 | %defattr(644,root,root,755) | |
187 | %{_gtkdocdir}/exo-2 | |
188 | %endif |