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