]>
Commit | Line | Data |
---|---|---|
19aadd7a KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
4397f92c | 5 | %define xfce_version 4.4.0 |
614bb69c | 6 | Summary: Xfce file manager |
457a5ea5 | 7 | Summary(pl.UTF-8): Zarządca plików Xfce |
614bb69c | 8 | Name: Thunar |
4397f92c MB |
9 | Version: 0.8.0 |
10 | Release: 1 | |
614bb69c | 11 | License: GPL v2 / LGPL v2 |
60f8e7d3 | 12 | Group: X11/Applications |
4397f92c MB |
13 | Source0: http://www.xfce.org/archive/xfce-%{xfce_version}/src/%{name}-%{version}.tar.bz2 |
14 | # Source0-md5: 9f7b0945d6a235391049f6818fb4d188 | |
614bb69c | 15 | URL: http://thunar.xfce.org/ |
6cf886ac | 16 | BuildRequires: GConf2-devel >= 2.16.0 |
bcf2d25f | 17 | BuildRequires: dbus-glib-devel >= 0.62 |
ea3c5559 | 18 | # XXX: gamin (>= 0.1.0) is preferred over fam |
614bb69c | 19 | BuildRequires: fam-devel |
19aadd7a | 20 | BuildRequires: gettext-devel |
6cf886ac MB |
21 | BuildRequires: glib2-devel >= 1:2.12.4 |
22 | BuildRequires: gtk+2-devel >= 2:2.10.6 | |
4397f92c | 23 | BuildRequires: gtk-doc >= 1.7 |
bcf2d25f | 24 | BuildRequires: hal-devel >= 0.5.7 |
44b7220a | 25 | BuildRequires: intltool |
bcf2d25f | 26 | BuildRequires: libexif-devel >= 0.6.13 |
4397f92c | 27 | BuildRequires: libexo-devel >= 0.3.2 |
614bb69c | 28 | BuildRequires: libjpeg-devel |
bcf2d25f | 29 | BuildRequires: libpng-devel >= 1.2.12 |
30 | BuildRequires: libxfce4util-devel >= %{xfce_version} | |
ea3c5559 JB |
31 | BuildRequires: pcre-devel >= 6.0 |
32 | BuildRequires: perl-base | |
33 | BuildRequires: pkgconfig | |
60f8e7d3 | 34 | BuildRequires: rpmbuild(macros) >= 1.311 |
614bb69c | 35 | BuildRequires: startup-notification-devel >= 0.8 |
6cf886ac | 36 | BuildRequires: xfce4-panel-devel >= %{xfce_version} |
4397f92c MB |
37 | Requires(post,postun): gtk+2 |
38 | Requires(post,postun): hicolor-icon-theme | |
614bb69c | 39 | Requires: %{name}-libs = %{version}-%{release} |
bcf2d25f | 40 | Requires: hal >= 0.5.7 |
4397f92c | 41 | Requires: libexo >= 0.3.2 |
614bb69c | 42 | Requires: shared-mime-info >= 0.15 |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
44 | ||
45 | %description | |
46 | Thunar is a modern file manager, aiming to be easy-to-use and fast. | |
47 | ||
43d73f39 JR |
48 | %description -l pl.UTF-8 |
49 | Thunar jest nowoczesnym zarządcą plików, nakierowanym na łatwość i | |
50 | szybkość użycia. | |
614bb69c | 51 | |
4397f92c MB |
52 | %package apidocs |
53 | Summary: Thunar API documentation | |
457a5ea5 | 54 | Summary(pl.UTF-8): Dokumentacja API Thunar |
4397f92c MB |
55 | Group: Documentation |
56 | Requires: gtk-doc-common | |
57 | ||
58 | %description apidocs | |
59 | Thunar API documentation. | |
60 | ||
43d73f39 | 61 | %description apidocs -l pl.UTF-8 |
4397f92c MB |
62 | Dokumentacja API Thunar. |
63 | ||
614bb69c | 64 | %package libs |
65 | Summary: Thunar libraries | |
457a5ea5 | 66 | Summary(pl.UTF-8): Biblioteki Thunar |
614bb69c | 67 | Group: Libraries |
68 | ||
69 | %description libs | |
70 | Thunar libraries. | |
71 | ||
43d73f39 | 72 | %description libs -l pl.UTF-8 |
614bb69c | 73 | Biblioteki Thunar. |
74 | ||
75 | %package devel | |
76 | Summary: Header files for Thunar libraries | |
457a5ea5 | 77 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Thunar |
614bb69c | 78 | Group: Development/Libraries |
79 | Requires: %{name}-libs = %{version}-%{release} | |
6cf886ac | 80 | Requires: GConf2-devel >= 2.16.0 |
bcf2d25f | 81 | Requires: dbus-glib-devel >= 0.62 |
3d120318 | 82 | Requires: fam-devel |
bcf2d25f | 83 | Requires: hal-devel >= 0.5.7 |
4397f92c | 84 | Requires: libexo-devel >= 0.3.2 |
3d120318 | 85 | Requires: libjpeg-devel |
614bb69c | 86 | |
87 | %description devel | |
88 | This is the package containing the header files for Thunar libraries. | |
89 | ||
43d73f39 JR |
90 | %description devel -l pl.UTF-8 |
91 | Ten pakiet zawiera pliki nagłówkowe biblioteki Thunar. | |
614bb69c | 92 | |
93 | %package static | |
6cf886ac | 94 | Summary: Static Thunar libraries |
457a5ea5 | 95 | Summary(pl.UTF-8): Statyczne biblioteki Thunar |
614bb69c | 96 | Group: Development/Libraries |
97 | Requires: %{name}-devel = %{version}-%{release} | |
98 | ||
99 | %description static | |
100 | Static Thunar libraries. | |
101 | ||
43d73f39 | 102 | %description static -l pl.UTF-8 |
6cf886ac | 103 | Statyczne biblioteki Thunar. |
614bb69c | 104 | |
105 | %prep | |
4397f92c | 106 | %setup -q |
614bb69c | 107 | |
108 | %build | |
109 | %configure \ | |
6cf886ac MB |
110 | --enable-dbus \ |
111 | --enable-exif \ | |
112 | --enable-gnome-thumbnailers \ | |
4397f92c | 113 | --enable-gtk-doc \ |
6cf886ac MB |
114 | --enable-pcre \ |
115 | --enable-startup-notification \ | |
4397f92c | 116 | --with-html-dir=%{_gtkdocdir} \ |
19aadd7a | 117 | %{?with_static_libs:--enable-static} |
4397f92c | 118 | |
614bb69c | 119 | %{__make} |
120 | ||
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
124 | %{__make} install \ | |
125 | DESTDIR=$RPM_BUILD_ROOT | |
126 | ||
127 | rm -f $RPM_BUILD_ROOT%{_libdir}/thunarx-1/*.{a,la} | |
128 | ||
129 | %find_lang %{name} --all-name | |
130 | ||
131 | %clean | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
bcf2d25f | 134 | %post |
60f8e7d3 | 135 | %update_icon_cache hicolor |
bcf2d25f | 136 | |
137 | %postun | |
60f8e7d3 | 138 | %update_icon_cache hicolor |
bcf2d25f | 139 | |
614bb69c | 140 | %post libs -p /sbin/ldconfig |
141 | %postun libs -p /sbin/ldconfig | |
142 | ||
143 | %files -f %{name}.lang | |
144 | %defattr(644,root,root,755) | |
145 | %doc AUTHORS ChangeLog NEWS README THANKS TODO | |
146 | %attr(755,root,root) %{_bindir}/* | |
147 | %dir %{_sysconfdir}/xdg/Thunar | |
148 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/Thunar/*.xml | |
149 | %attr(755,root,root) %{_libdir}/ThunarBulkRename | |
150 | %attr(755,root,root) %{_libdir}/ThunarHelp | |
60f8e7d3 | 151 | %attr(755,root,root) %{_libdir}/thunar-vfs-* |
bcf2d25f | 152 | %attr(755,root,root) %{_libdir}/thunar-sendto-email |
614bb69c | 153 | %dir %{_libdir}/thunarx-1 |
154 | %attr(755,root,root) %{_libdir}/thunarx-1/*.so | |
60f8e7d3 | 155 | %attr(755,root,root) %{_libdir}/xfce4/panel-plugins/thunar-tpa |
614bb69c | 156 | |
bcf2d25f | 157 | %{_datadir}/Thunar |
60f8e7d3 | 158 | %{_datadir}/xfce4/panel-plugins/*.desktop |
614bb69c | 159 | %{_datadir}/dbus-1/services/*.service |
160 | %{_desktopdir}/*.desktop | |
161 | %{_iconsdir}/hicolor/*/*/* | |
162 | %{_pixmapsdir}/Thunar | |
60f8e7d3 | 163 | %{_mandir}/man1/Thunar* |
614bb69c | 164 | |
4397f92c MB |
165 | # FIXME: maybe it's common dir? |
166 | %dir %{_datadir}/thumbnailers | |
167 | %{_datadir}/thumbnailers/*.desktop | |
168 | ||
614bb69c | 169 | %dir %{_docdir}/Thunar |
170 | # move it to proper place | |
171 | %{_docdir}/Thunar/README* | |
172 | ||
173 | %dir %{_docdir}/Thunar/html | |
60f8e7d3 | 174 | %{_docdir}/Thunar/*.txt |
614bb69c | 175 | %{_docdir}/Thunar/html/C |
176 | %{_docdir}/Thunar/html/*.css | |
177 | %lang(es) %{_docdir}/Thunar/html/es | |
4397f92c | 178 | %lang(eu) %{_docdir}/Thunar/html/eu |
614bb69c | 179 | %lang(fr) %{_docdir}/Thunar/html/fr |
180 | %lang(ja) %{_docdir}/Thunar/html/ja | |
4397f92c | 181 | %lang(pl) %{_docdir}/Thunar/html/pl |
bcf2d25f | 182 | %lang(ru) %{_docdir}/Thunar/html/ru |
183 | %lang(zh_TW) %{_docdir}/Thunar/html/zh_TW | |
614bb69c | 184 | |
4397f92c MB |
185 | %files apidocs |
186 | %defattr(644,root,root,755) | |
187 | %{_gtkdocdir}/thunar* | |
188 | ||
614bb69c | 189 | %files libs |
190 | %defattr(644,root,root,755) | |
191 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
192 | ||
193 | %files devel | |
194 | %defattr(644,root,root,755) | |
195 | %attr(755,root,root) %{_libdir}/lib*.so | |
196 | %{_libdir}/lib*.la | |
197 | %{_includedir}/thunar* | |
198 | %{_pkgconfigdir}/*.pc | |
199 | ||
19aadd7a | 200 | %if %{with static_libs} |
614bb69c | 201 | %files static |
202 | %defattr(644,root,root,755) | |
203 | %{_libdir}/*.a | |
19aadd7a | 204 | %endif |