]> git.pld-linux.org Git - packages/Thunar.git/blob - Thunar.spec
- up to 4.18.8
[packages/Thunar.git] / Thunar.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4
5 %define         xfce_version    4.18.0
6 Summary:        Xfce file manager
7 Summary(pl.UTF-8):      Zarządca plików Xfce
8 Name:           Thunar
9 Version:        4.18.8
10 Release:        1
11 License:        GPL v2 / LGPL v2
12 Group:          X11/Applications
13 Source0:        https://archive.xfce.org/src/xfce/thunar/4.18/thunar-%{version}.tar.bz2
14 # Source0-md5:  ffe9aba70e98fdc0e2ac3e72e719a255
15 Patch0:         %{name}-desktop.patch
16 URL:            https://docs.xfce.org/xfce/thunar/start
17 BuildRequires:  autoconf >= 2.60
18 BuildRequires:  automake >= 1:1.11
19 BuildRequires:  docbook-dtd412-xml
20 BuildRequires:  exo-devel >= 4.17.0
21 BuildRequires:  gdk-pixbuf2-devel >= 2.40.0
22 BuildRequires:  gettext-tools
23 BuildRequires:  glib2-devel >= 1:2.66.0
24 BuildRequires:  gobject-introspection-devel >= 1.66.0
25 BuildRequires:  gtk+3-devel >= 3.24.0
26 BuildRequires:  gtk-doc >= 1.9
27 BuildRequires:  intltool
28 BuildRequires:  libexif-devel >= 0.6.0
29 BuildRequires:  libgudev-devel >= 145
30 BuildRequires:  libnotify-devel >= 0.4.0
31 BuildRequires:  libtool >= 2:2.4
32 BuildRequires:  libxfce4ui-devel >= %{xfce_version}
33 BuildRequires:  libxfce4util-devel >= %{xfce_version}
34 BuildRequires:  pcre-devel >= 6.0
35 BuildRequires:  pango-devel >= 1:1.38.0
36 BuildRequires:  perl-base
37 BuildRequires:  pkgconfig
38 BuildRequires:  rpm-build >= 4.6
39 BuildRequires:  rpmbuild(macros) >= 2.011
40 BuildRequires:  startup-notification-devel >= 0.8
41 BuildRequires:  xfce4-dev-tools >= %{xfce_version}
42 BuildRequires:  xfce4-panel-devel >= %{xfce_version}
43 BuildRequires:  xfconf-devel >= %{xfce_version}
44 BuildRequires:  xorg-lib-libSM-devel
45 BuildRequires:  xorg-lib-libX11-devel
46 Requires(post,postun):  desktop-file-utils
47 Requires(post,postun):  gtk-update-icon-cache
48 Requires(post,preun):   systemd-units >= 1:250.1
49 Requires:       %{name}-libs = %{version}-%{release}
50 Requires:       exo >= 4.17.0
51 Requires:       gdk-pixbuf2 >= 2.40.0
52 Requires:       hicolor-icon-theme
53 Requires:       libnotify >= 0.4.0
54 Requires:       libxfce4ui >= %{xfce_version}
55 Requires:       libxfce4util >= %{xfce_version}
56 Requires:       pango >= 1:1.38.0
57 Requires:       shared-mime-info >= 0.15
58 Requires:       systemd-units >= 1:250.1
59 Requires:       xfconf >= %{xfce_version}
60 Suggests:       tumbler
61 Obsoletes:      Thunar-thumbnailers < 0.5
62 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63
64 %description
65 Thunar is a modern file manager, aiming to be easy-to-use and fast.
66
67 %description -l pl.UTF-8
68 Thunar jest nowoczesnym zarządcą plików, nakierowanym na łatwość i
69 szybkość użycia.
70
71 %package libs
72 Summary:        Thunar libraries
73 Summary(pl.UTF-8):      Biblioteki Thunar
74 Group:          X11/Libraries
75 Requires:       glib2 >= 1:2.66.0
76 Requires:       gtk+3 >= 3.24.0
77 Obsoletes:      thunar-vfs < 1.3
78
79 %description libs
80 Thunar libraries.
81
82 %description libs -l pl.UTF-8
83 Biblioteki Thunar.
84
85 %package devel
86 Summary:        Header files for Thunar libraries
87 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek Thunar
88 Group:          X11/Development/Libraries
89 Requires:       %{name}-libs = %{version}-%{release}
90 Requires:       glib2-devel >= 1:2.66.0
91 Requires:       gtk+3-devel >= 3.24.0
92 Obsoletes:      thunar-vfs-devel < 1.3
93
94 %description devel
95 This is the package containing the header files for Thunar libraries.
96
97 %description devel -l pl.UTF-8
98 Ten pakiet zawiera pliki nagłówkowe biblioteki Thunar.
99
100 %package static
101 Summary:        Static Thunar libraries
102 Summary(pl.UTF-8):      Statyczne biblioteki Thunar
103 Group:          X11/Development/Libraries
104 Requires:       %{name}-devel = %{version}-%{release}
105 Obsoletes:      thunar-vfs-static < 1.3
106
107 %description static
108 Static Thunar libraries.
109
110 %description static -l pl.UTF-8
111 Statyczne biblioteki Thunar.
112
113 %package apidocs
114 Summary:        Thunar API documentation
115 Summary(pl.UTF-8):      Dokumentacja API Thunar
116 Group:          Documentation
117 Requires:       gtk-doc-common
118 Obsoletes:      thunar-vfs-apidocs < 1.3
119 BuildArch:      noarch
120
121 %description apidocs
122 Thunar API documentation.
123
124 %description apidocs -l pl.UTF-8
125 Dokumentacja API Thunar.
126
127 %prep
128 %setup -q -n thunar-%{version}
129 %patch0 -p1
130
131 %build
132 %{__gtkdocize}
133 %{__intltoolize}
134 %{__libtoolize}
135 %{__aclocal}
136 %{__automake}
137 %{__autoheader}
138 %{__autoconf}
139 %configure \
140         --enable-exif \
141         --enable-gtk-doc \
142         --disable-silent-rules \
143         %{?with_static_libs:--enable-static} \
144         --with-html-dir=%{_gtkdocdir}
145
146 %{__make}
147
148 %install
149 rm -rf $RPM_BUILD_ROOT
150 %{__make} install \
151         DESTDIR=$RPM_BUILD_ROOT
152
153 %{__rm} $RPM_BUILD_ROOT%{_libdir}/thunarx-3/*.{a,la}
154 %{__rm} $RPM_BUILD_ROOT%{_libdir}/xfce4/panel/plugins/*.{a,la}
155 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
156
157 # unify
158 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fa_IR,fa}
159 # duplicate of hy,ur
160 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{hy_AM,ur_PK}
161 # not supported by glibc (as of 2.37)
162 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{hye,ie}
163
164 %find_lang thunar
165
166 %clean
167 rm -rf $RPM_BUILD_ROOT
168
169 %post
170 %update_desktop_database_post
171 %update_icon_cache hicolor
172 %systemd_user_post thunar.service
173
174 %preun
175 %systemd_user_preun thunar.service
176
177 %postun
178 %update_desktop_database_postun
179 %update_icon_cache hicolor
180
181 %post   libs -p /sbin/ldconfig
182 %postun libs -p /sbin/ldconfig
183
184 %files -f thunar.lang
185 %defattr(644,root,root,755)
186 %doc AUTHORS ChangeLog NEWS THANKS
187 %attr(755,root,root) %{_bindir}/Thunar
188 %attr(755,root,root) %{_bindir}/thunar
189 %attr(755,root,root) %{_bindir}/thunar-settings
190 %dir %{_sysconfdir}/xdg/Thunar
191 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/Thunar/*.xml
192 %dir %{_libdir}/Thunar
193 %attr(755,root,root) %{_libdir}/Thunar/thunar-sendto-email
194 %dir %{_libdir}/thunarx-3
195 %attr(755,root,root) %{_libdir}/thunarx-3/thunar-*.so
196 %attr(755,root,root) %{_libdir}/xfce4/panel/plugins/libthunar-tpa.so
197
198 %{systemduserunitdir}/thunar.service
199 %{_datadir}/dbus-1/services/org.xfce.FileManager.service
200 %{_datadir}/dbus-1/services/org.xfce.Thunar.service
201 %{_datadir}/dbus-1/services/org.xfce.Thunar.FileManager1.service
202 %{_datadir}/metainfo/org.xfce.thunar.appdata.xml
203 %{_datadir}/polkit-1/actions/org.xfce.thunar.policy
204 %{_datadir}/Thunar/sendto/thunar-sendto-email.desktop
205 %{_datadir}/xfce4/panel/plugins/thunar-tpa.desktop
206 %{_desktopdir}/thunar.desktop
207 %{_desktopdir}/thunar-bulk-rename.desktop
208 %{_desktopdir}/thunar-settings.desktop
209 %{_iconsdir}/hicolor/*x*/apps/org.xfce.thunar.png
210 %{_iconsdir}/hicolor/*x*/stock/navigation/stock_folder-*.png
211 %{_iconsdir}/hicolor/scalable/apps/org.xfce.thunar.svg
212 %{_mandir}/man1/Thunar.1*
213
214 %dir %{_docdir}/thunar
215 # move it to proper place
216 %{_docdir}/thunar/README*
217
218 %files libs
219 %defattr(644,root,root,755)
220 %attr(755,root,root) %{_libdir}/libthunarx-3.so.*.*.*
221 %attr(755,root,root) %ghost %{_libdir}/libthunarx-3.so.0
222 %{_libdir}/girepository-1.0/Thunarx-3.0.typelib
223
224 %files devel
225 %defattr(644,root,root,755)
226 %attr(755,root,root) %{_libdir}/libthunarx-3.so
227 %{_includedir}/thunarx-3
228 %{_pkgconfigdir}/thunarx-3.pc
229 %{_datadir}/gir-1.0/Thunarx-3.0.gir
230
231 %if %{with static_libs}
232 %files static
233 %defattr(644,root,root,755)
234 %{_libdir}/libthunarx-3.a
235 %endif
236
237 %files apidocs
238 %defattr(644,root,root,755)
239 %{_gtkdocdir}/thunar
240 %{_gtkdocdir}/thunarx
This page took 0.077225 seconds and 4 git commands to generate.