]>
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 | |
4527cd3e | 6 | %define xfce_version 4.18.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 |
4527cd3e | 10 | Version: 4.18.0 |
25761559 | 11 | Release: 1 |
c4ca9554 | 12 | License: GPL v2 |
849ed81e | 13 | Group: X11/Libraries |
4527cd3e KM |
14 | Source0: https://archive.xfce.org/src/xfce/exo/4.18/%{name}-%{version}.tar.bz2 |
15 | # Source0-md5: 9d0be4e885eaf991e12dbc14d3fc628d | |
fe8cbdae JB |
16 | URL: https://docs.xfce.org/xfce/exo/start |
17 | BuildRequires: autoconf >= 2.69 | |
f6a11454 | 18 | BuildRequires: automake >= 1:1.11 |
20687b30 | 19 | BuildRequires: docbook-dtd412-xml |
f912a801 | 20 | BuildRequires: gettext-tools |
4527cd3e | 21 | BuildRequires: glib2-devel >= 1:2.66.0 |
fe8cbdae JB |
22 | BuildRequires: gtk+3-devel >= 3.24.0 |
23 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.20} | |
24 | BuildRequires: gtk-doc-automake >= 1.20 | |
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 |
fe8cbdae | 31 | BuildRequires: rpm-build >= 4.6 |
4527cd3e KM |
32 | BuildRequires: rpmbuild(macros) >= 2.000 |
33 | BuildRequires: xfce4-dev-tools >= 4.18.0 | |
34 | Requires: glib2 >= 1:2.66.0 | |
fe8cbdae | 35 | Requires: gtk+3 >= 3.24.0 |
fd08d4f4 | 36 | Requires: xfce4-dirs >= 4.6 |
5b5c113b | 37 | Provides: libexo |
fe8cbdae | 38 | Obsoletes: libexo < 0.3.101 |
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 | ||
c4ca9554 AG |
61 | %package devel |
62 | Summary: Header files for libexo library | |
3800417d | 63 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libexo |
849ed81e | 64 | Group: X11/Development/Libraries |
c4ca9554 | 65 | Requires: %{name} = %{version}-%{release} |
fe8cbdae | 66 | Requires: gtk+3-devel >= 3.24.0 |
1f492905 | 67 | Requires: libxfce4util-devel >= %{xfce_version} |
5b5c113b | 68 | Provides: libexo-devel |
fe8cbdae | 69 | Obsoletes: libexo-devel < 0.3.101 |
c4ca9554 AG |
70 | |
71 | %description devel | |
72 | Header files for libexo library. | |
73 | ||
8d7f3270 JR |
74 | %description devel -l pl.UTF-8 |
75 | Pliki nagłówkowe biblioteki libexo. | |
c4ca9554 AG |
76 | |
77 | %package static | |
78 | Summary: Static libexo library | |
3800417d | 79 | Summary(pl.UTF-8): Statyczna biblioteka libexo |
849ed81e | 80 | Group: X11/Development/Libraries |
c4ca9554 | 81 | Requires: %{name}-devel = %{version}-%{release} |
5b5c113b | 82 | Provides: libexo-static |
fe8cbdae | 83 | Obsoletes: libexo-static < 0.3.101 |
c4ca9554 AG |
84 | |
85 | %description static | |
86 | Static libexo library. | |
87 | ||
8d7f3270 | 88 | %description static -l pl.UTF-8 |
c4ca9554 AG |
89 | Statyczna biblioteka libexo. |
90 | ||
f6a11454 JB |
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 | |
fe8cbdae | 97 | Obsoletes: libexo-apidocs < 0.3.101 |
f6a11454 | 98 | BuildArch: noarch |
f6a11454 JB |
99 | |
100 | %description apidocs | |
101 | libexo API documentation. | |
102 | ||
103 | %description apidocs -l pl.UTF-8 | |
104 | Dokumentacja API libexo. | |
105 | ||
c4ca9554 | 106 | %prep |
5b5c113b | 107 | %setup -q |
6f507619 | 108 | |
5b75fd4b JR |
109 | mkdir -p m4 |
110 | ||
c4ca9554 | 111 | %build |
90f8ebc9 | 112 | %{?with_apidocs:%{__gtkdocize}} |
737f4d4f | 113 | %{__intltoolize} |
1f492905 | 114 | %{__libtoolize} |
115 | %{__aclocal} | |
116 | %{__autoheader} | |
117 | %{__automake} | |
118 | %{__autoconf} | |
c4ca9554 | 119 | %configure \ |
f6a11454 JB |
120 | --enable-gtk-doc%{!?with_apidocs:=no} \ |
121 | --disable-silent-rules \ | |
25761559 | 122 | %{?with_static_libs:--enable-static} \ |
f6a11454 | 123 | --with-html-dir=%{_gtkdocdir} |
1c066059 | 124 | |
c4ca9554 AG |
125 | %{__make} |
126 | ||
127 | %install | |
128 | rm -rf $RPM_BUILD_ROOT | |
f6a11454 | 129 | |
c4ca9554 AG |
130 | %{__make} install \ |
131 | DESTDIR=$RPM_BUILD_ROOT | |
132 | ||
f6a11454 JB |
133 | # obsoleted by pkg-config |
134 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libexo*.la | |
8b122451 | 135 | |
fe8cbdae JB |
136 | # unify dir name |
137 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fa_IR,fa} | |
4527cd3e KM |
138 | # duplicates of hy,ur,az |
139 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{az_AZ,hy_AM,ur_PK} | |
fe8cbdae JB |
140 | # not supported by glibc (as of 2.37) |
141 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{hye,ie} | |
3ab60cef | 142 | |
25761559 | 143 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/exo-2} |
1c066059 | 144 | |
4527cd3e | 145 | %find_lang %{name} |
2bc3c417 | 146 | |
c4ca9554 AG |
147 | %clean |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
150 | %post -p /sbin/ldconfig | |
9899927b | 151 | %postun -p /sbin/ldconfig |
c4ca9554 | 152 | |
1f492905 | 153 | %post -n xfce-preferred-applications |
737f4d4f | 154 | %update_icon_cache hicolor |
1f492905 | 155 | |
156 | %postun -n xfce-preferred-applications | |
737f4d4f | 157 | %update_icon_cache hicolor |
1f492905 | 158 | |
4527cd3e | 159 | %files -f %{name}.lang |
c4ca9554 | 160 | %defattr(644,root,root,755) |
25761559 | 161 | %doc AUTHORS ChangeLog HACKING NEWS |
1695fd3a JR |
162 | %attr(755,root,root) %{_libdir}/libexo-2.so.*.*.* |
163 | %attr(755,root,root) %ghost %{_libdir}/libexo-2.so.0 | |
b2f2a79c | 164 | %{_pixmapsdir}/exo |
c4ca9554 | 165 | |
1f492905 | 166 | %files -n xfce-preferred-applications |
167 | %defattr(644,root,root,755) | |
2caebf49 JP |
168 | %attr(755,root,root) %{_bindir}/exo-desktop-item-edit |
169 | %attr(755,root,root) %{_bindir}/exo-open | |
f6a11454 | 170 | %{_mandir}/man1/exo-open.1* |
0ab17a4e | 171 | |
c4ca9554 AG |
172 | %files devel |
173 | %defattr(644,root,root,755) | |
1695fd3a | 174 | %attr(755,root,root) %{_libdir}/libexo-2.so |
1695fd3a | 175 | %{_includedir}/exo-2 |
1695fd3a | 176 | %{_pkgconfigdir}/exo-2.pc |
c4ca9554 | 177 | |
3eb704f5 | 178 | %if %{with static_libs} |
c4ca9554 AG |
179 | %files static |
180 | %defattr(644,root,root,755) | |
1695fd3a | 181 | %{_libdir}/libexo-2.a |
3eb704f5 | 182 | %endif |
f6a11454 JB |
183 | |
184 | %if %{with apidocs} | |
185 | %files apidocs | |
186 | %defattr(644,root,root,755) | |
25761559 | 187 | %{_gtkdocdir}/exo-2 |
f6a11454 | 188 | %endif |