]>
Commit | Line | Data |
---|---|---|
19aadd7a KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
8b3d7f13 | 4 | |
a2828957 | 5 | %define xfce_version 4.10.0 |
614bb69c | 6 | Summary: Xfce file manager |
457a5ea5 | 7 | Summary(pl.UTF-8): Zarządca plików Xfce |
614bb69c | 8 | Name: Thunar |
8b3d7f13 | 9 | Version: 1.6.2 |
af9e7c47 | 10 | Release: 3 |
614bb69c | 11 | License: GPL v2 / LGPL v2 |
60f8e7d3 | 12 | Group: X11/Applications |
8b3d7f13 ER |
13 | Source0: http://archive.xfce.org/src/xfce/thunar/1.6/%{name}-%{version}.tar.bz2 |
14 | # Source0-md5: a446103ab90855cc8ba484dfeedb82d8 | |
0b4557ef | 15 | Patch0: %{name}-desktop.patch |
614bb69c | 16 | URL: http://thunar.xfce.org/ |
cf138d2b MB |
17 | BuildRequires: autoconf >= 2.50 |
18 | BuildRequires: automake >= 1:1.8 | |
bcf2d25f | 19 | BuildRequires: dbus-glib-devel >= 0.62 |
0f62599c | 20 | BuildRequires: docbook-dtd412-xml |
8b3d7f13 | 21 | BuildRequires: exo-devel >= 0.10.0 |
19aadd7a | 22 | BuildRequires: gettext-devel |
5f4c896d MB |
23 | BuildRequires: glib2-devel >= 1:2.18.0 |
24 | BuildRequires: gtk+2-devel >= 2:2.14.0 | |
4397f92c | 25 | BuildRequires: gtk-doc >= 1.7 |
44b7220a | 26 | BuildRequires: intltool |
5f4c896d MB |
27 | BuildRequires: libexif-devel >= 0.6.0 |
28 | BuildRequires: libnotify-devel >= 0.4.0 | |
cf138d2b | 29 | BuildRequires: libtool |
5f4c896d | 30 | BuildRequires: libxfce4ui-devel >= %{xfce_version} |
bcf2d25f | 31 | BuildRequires: libxfce4util-devel >= %{xfce_version} |
ea3c5559 JB |
32 | BuildRequires: pcre-devel >= 6.0 |
33 | BuildRequires: perl-base | |
34 | BuildRequires: pkgconfig | |
5f4c896d | 35 | BuildRequires: rpmbuild(macros) >= 1.601 |
614bb69c | 36 | BuildRequires: startup-notification-devel >= 0.8 |
5f4c896d MB |
37 | BuildRequires: udev-glib-devel >= 145 |
38 | BuildRequires: xfce4-dev-tools >= %{xfce_version} | |
6cf886ac | 39 | BuildRequires: xfce4-panel-devel >= %{xfce_version} |
0b4557ef | 40 | Requires(post,postun): desktop-file-utils |
614bb69c | 41 | Requires: %{name}-libs = %{version}-%{release} |
a2828957 | 42 | Requires: exo >= 0.8.0 |
5f4c896d MB |
43 | Requires: gtk-update-icon-cache |
44 | Requires: hicolor-icon-theme | |
614bb69c | 45 | Requires: shared-mime-info >= 0.15 |
5f4c896d | 46 | Requires: xfconf >= %{xfce_version} |
8ad9d0a9 | 47 | Suggests: tumbler |
f8635ac7 | 48 | Obsoletes: Thunar-thumbnailers |
614bb69c | 49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
50 | ||
51 | %description | |
52 | Thunar is a modern file manager, aiming to be easy-to-use and fast. | |
53 | ||
43d73f39 JR |
54 | %description -l pl.UTF-8 |
55 | Thunar jest nowoczesnym zarządcą plików, nakierowanym na łatwość i | |
56 | szybkość użycia. | |
614bb69c | 57 | |
4397f92c MB |
58 | %package apidocs |
59 | Summary: Thunar API documentation | |
457a5ea5 | 60 | Summary(pl.UTF-8): Dokumentacja API Thunar |
4397f92c MB |
61 | Group: Documentation |
62 | Requires: gtk-doc-common | |
9fb03e63 | 63 | Obsoletes: thunar-vfs-apidocs |
af9e7c47 ER |
64 | %if "%{_rpmversion}" >= "5" |
65 | BuildArch: noarch | |
66 | %endif | |
4397f92c MB |
67 | |
68 | %description apidocs | |
69 | Thunar API documentation. | |
70 | ||
43d73f39 | 71 | %description apidocs -l pl.UTF-8 |
4397f92c MB |
72 | Dokumentacja API Thunar. |
73 | ||
614bb69c | 74 | %package libs |
75 | Summary: Thunar libraries | |
457a5ea5 | 76 | Summary(pl.UTF-8): Biblioteki Thunar |
cf138d2b | 77 | Group: X11/Libraries |
9fb03e63 | 78 | Obsoletes: thunar-vfs |
614bb69c | 79 | |
80 | %description libs | |
81 | Thunar libraries. | |
82 | ||
43d73f39 | 83 | %description libs -l pl.UTF-8 |
614bb69c | 84 | Biblioteki Thunar. |
85 | ||
86 | %package devel | |
87 | Summary: Header files for Thunar libraries | |
457a5ea5 | 88 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Thunar |
cf138d2b | 89 | Group: X11/Development/Libraries |
614bb69c | 90 | Requires: %{name}-libs = %{version}-%{release} |
5f4c896d MB |
91 | Requires: exo-devel >= 0.6.0 |
92 | Requires: gtk+2-devel >= 2:2.14.0 | |
9fb03e63 | 93 | Obsoletes: thunar-vfs-devel |
614bb69c | 94 | |
95 | %description devel | |
96 | This is the package containing the header files for Thunar libraries. | |
97 | ||
43d73f39 JR |
98 | %description devel -l pl.UTF-8 |
99 | Ten pakiet zawiera pliki nagłówkowe biblioteki Thunar. | |
614bb69c | 100 | |
101 | %package static | |
6cf886ac | 102 | Summary: Static Thunar libraries |
457a5ea5 | 103 | Summary(pl.UTF-8): Statyczne biblioteki Thunar |
cf138d2b | 104 | Group: X11/Development/Libraries |
614bb69c | 105 | Requires: %{name}-devel = %{version}-%{release} |
9fb03e63 | 106 | Obsoletes: thunar-vfs-static |
614bb69c | 107 | |
108 | %description static | |
109 | Static Thunar libraries. | |
110 | ||
43d73f39 | 111 | %description static -l pl.UTF-8 |
6cf886ac | 112 | Statyczne biblioteki Thunar. |
614bb69c | 113 | |
114 | %prep | |
4397f92c | 115 | %setup -q |
0b4557ef | 116 | %patch0 -p1 |
614bb69c | 117 | |
8b3d7f13 ER |
118 | %{__sed} -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac |
119 | ||
614bb69c | 120 | %build |
68140051 | 121 | %{__gtkdocize} |
cf138d2b MB |
122 | %{__intltoolize} |
123 | %{__libtoolize} | |
124 | %{__aclocal} | |
125 | %{__automake} | |
126 | %{__autoheader} | |
127 | %{__autoconf} | |
614bb69c | 128 | %configure \ |
6cf886ac MB |
129 | --enable-dbus \ |
130 | --enable-exif \ | |
4397f92c | 131 | --enable-gtk-doc \ |
6cf886ac MB |
132 | --enable-pcre \ |
133 | --enable-startup-notification \ | |
4397f92c | 134 | --with-html-dir=%{_gtkdocdir} \ |
5f4c896d MB |
135 | %{?with_static_libs:--enable-static} \ |
136 | --disable-silent-rules | |
4397f92c | 137 | |
614bb69c | 138 | %{__make} |
139 | ||
140 | %install | |
141 | rm -rf $RPM_BUILD_ROOT | |
614bb69c | 142 | %{__make} install \ |
143 | DESTDIR=$RPM_BUILD_ROOT | |
144 | ||
5f4c896d MB |
145 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/thunarx-2/*.{a,la} |
146 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/xfce4/panel/plugins/*.{a,la} | |
147 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
614bb69c | 148 | |
539006b9 | 149 | # duplicate of ur |
af9e7c47 | 150 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ur_PK |
de0fd64f | 151 | |
614bb69c | 152 | %find_lang %{name} --all-name |
153 | ||
154 | %clean | |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
bcf2d25f | 157 | %post |
0b4557ef | 158 | %update_desktop_database_post |
60f8e7d3 | 159 | %update_icon_cache hicolor |
bcf2d25f | 160 | |
161 | %postun | |
0b4557ef | 162 | %update_desktop_database_postun |
60f8e7d3 | 163 | %update_icon_cache hicolor |
bcf2d25f | 164 | |
614bb69c | 165 | %post libs -p /sbin/ldconfig |
166 | %postun libs -p /sbin/ldconfig | |
167 | ||
168 | %files -f %{name}.lang | |
169 | %defattr(644,root,root,755) | |
170 | %doc AUTHORS ChangeLog NEWS README THANKS TODO | |
171 | %attr(755,root,root) %{_bindir}/* | |
172 | %dir %{_sysconfdir}/xdg/Thunar | |
173 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/Thunar/*.xml | |
5f4c896d MB |
174 | %dir %{_libdir}/Thunar |
175 | %attr(755,root,root) %{_libdir}/Thunar/ThunarBulkRename | |
5f4c896d MB |
176 | %attr(755,root,root) %{_libdir}/Thunar/thunar-sendto-email |
177 | %dir %{_libdir}/thunarx-2 | |
178 | %attr(755,root,root) %{_libdir}/thunarx-2/*.so | |
179 | %attr(755,root,root) %{_libdir}/xfce4/panel/plugins/libthunar-tpa.so | |
614bb69c | 180 | |
3bb15703 | 181 | %{_datadir}/Thunar/sendto/*.desktop |
60f8e7d3 | 182 | %{_datadir}/xfce4/panel-plugins/*.desktop |
614bb69c | 183 | %{_datadir}/dbus-1/services/*.service |
184 | %{_desktopdir}/*.desktop | |
185 | %{_iconsdir}/hicolor/*/*/* | |
186 | %{_pixmapsdir}/Thunar | |
60f8e7d3 | 187 | %{_mandir}/man1/Thunar* |
614bb69c | 188 | |
189 | %dir %{_docdir}/Thunar | |
190 | # move it to proper place | |
191 | %{_docdir}/Thunar/README* | |
192 | ||
4397f92c MB |
193 | %files apidocs |
194 | %defattr(644,root,root,755) | |
cf138d2b | 195 | %{_gtkdocdir}/thunarx |
4397f92c | 196 | |
614bb69c | 197 | %files libs |
198 | %defattr(644,root,root,755) | |
5f4c896d MB |
199 | %attr(755,root,root) %{_libdir}/libthunarx-2.so.*.*.* |
200 | %attr(755,root,root) %ghost %{_libdir}/libthunarx-2.so.0 | |
614bb69c | 201 | |
202 | %files devel | |
203 | %defattr(644,root,root,755) | |
5f4c896d MB |
204 | %attr(755,root,root) %{_libdir}/libthunarx-2.so |
205 | %{_includedir}/thunarx-2 | |
206 | %{_pkgconfigdir}/thunarx-2.pc | |
614bb69c | 207 | |
19aadd7a | 208 | %if %{with static_libs} |
614bb69c | 209 | %files static |
210 | %defattr(644,root,root,755) | |
5f4c896d | 211 | %{_libdir}/libthunarx-2.a |
19aadd7a | 212 | %endif |