Init package
This commit is contained in:
parent
32a473e862
commit
423e540682
177
Thunar.spec
Normal file
177
Thunar.spec
Normal file
@ -0,0 +1,177 @@
|
||||
%global _hardened_build 1
|
||||
%global xfceversion 4.14
|
||||
|
||||
Name: Thunar
|
||||
Version: 1.8.15
|
||||
Release: 1%{?dist}
|
||||
Summary: Thunar File Manager
|
||||
#Group: Development/Libraries
|
||||
License: GPLv2+
|
||||
URL: http://thunar.xfce.org/
|
||||
Source0: http://archive.xfce.org/src/xfce/thunar/1.8/thunar-%{version}.tar.bz2
|
||||
Source1: thunar-sendto-gnome-bluetooth.desktop
|
||||
Source2: thunar-sendto-audacious-playlist.desktop
|
||||
Source3: thunar-sendto-quodlibet-playlist.desktop
|
||||
Source4: thunar-sendto-blueman.desktop
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
#BuildArch: noarch
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig(dbus-glib-1) >= 0.34
|
||||
BuildRequires: pkgconfig(exo-1) >= 0.12.0
|
||||
BuildRequires: pkgconfig(gudev-1.0) >= 145
|
||||
BuildRequires: pkgconfig(libexif) >= 0.6.0
|
||||
BuildRequires: pkgconfig(libpcre) >= 6.0
|
||||
BuildRequires: pkgconfig(libstartup-notification-1.0) >= 0.4
|
||||
BuildRequires: pkgconfig(libnotify) >= 0.4.0
|
||||
BuildRequires: pkgconfig(libxfce4ui-1) >= %{xfceversion}
|
||||
BuildRequires: pkgconfig(libxfce4panel-1.0) >= %{xfceversion}
|
||||
BuildRequires: libSM-devel
|
||||
BuildRequires: freetype-devel
|
||||
BuildRequires: libpng-devel >= 2:1.2.2-16
|
||||
BuildRequires: libICE-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: intltool gettext
|
||||
BuildRequires: desktop-file-utils >= 0.7
|
||||
BuildRequires: libappstream-glib
|
||||
BuildRequires: gobject-introspection-devel
|
||||
Requires: shared-mime-info
|
||||
Requires: dbus-x11
|
||||
|
||||
Provides: xffm = 4.2.4
|
||||
Provides: thunar-shares-plugin
|
||||
# Provide lowercase name to help people find the package.
|
||||
Provides: thunar = %{version}-%{release}
|
||||
|
||||
%description
|
||||
Thunar is a modern file manager for the Unix/Linux desktop, aiming to be
|
||||
easy-to-use and fast.
|
||||
|
||||
%package devel
|
||||
Summary: Thunar file manager development files
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
Requires: exo-devel
|
||||
|
||||
%description devel
|
||||
This package includes libraries and header files for the Thunar file manager.
|
||||
|
||||
%package docs
|
||||
Summary: GTK docs for Thunar file manager
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description docs
|
||||
Thunarx GTK documentation files for the Thunar file manager.
|
||||
|
||||
%prep
|
||||
%autosetup -n thunar-%{version}
|
||||
|
||||
# fix icon in thunar-sendto-email.desktop
|
||||
sed -i 's!internet-mail!mail-message-new!' \
|
||||
plugins/thunar-sendto-email/thunar-sendto-email.desktop.in.in
|
||||
|
||||
%build
|
||||
%configure --enable-dbus
|
||||
# Remove rpaths
|
||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
export LD_LIBRARY_PATH="`pwd`/thunarx/.libs"
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
# fixes wrong library permissions
|
||||
chmod 755 %{buildroot}/%{_libdir}/*.so
|
||||
|
||||
make -C examples distclean
|
||||
|
||||
chmod 644 examples/thunar-file-manager.py
|
||||
chmod 644 examples/xfce-file-manager.py
|
||||
|
||||
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
||||
|
||||
%find_lang thunar
|
||||
|
||||
desktop-file-install --delete-original \
|
||||
--dir %{buildroot}/%{_datadir}/applications \
|
||||
%{buildroot}/%{_datadir}/applications/thunar-settings.desktop
|
||||
|
||||
desktop-file-install --delete-original \
|
||||
--dir %{buildroot}/%{_datadir}/applications \
|
||||
%{buildroot}/%{_datadir}/applications/thunar-bulk-rename.desktop
|
||||
|
||||
desktop-file-install --delete-original \
|
||||
--dir %{buildroot}/%{_datadir}/applications \
|
||||
%{buildroot}/%{_datadir}/applications/thunar.desktop
|
||||
|
||||
# install additional sendto helpers
|
||||
for source in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} ; do
|
||||
desktop-file-install --vendor "" \
|
||||
--dir %{buildroot}%{_datadir}/Thunar/sendto \
|
||||
$source
|
||||
done
|
||||
|
||||
# appdata
|
||||
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml
|
||||
|
||||
|
||||
%pre
|
||||
for target in %{_defaultdocdir}/Thunar/html/*/images
|
||||
do
|
||||
if [ -d $target ]
|
||||
then
|
||||
rm -rf $target
|
||||
fi
|
||||
done
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files -f thunar.lang
|
||||
%license COPYING
|
||||
%doc README TODO ChangeLog NEWS INSTALL AUTHORS HACKING THANKS
|
||||
%doc docs/README.gtkrc
|
||||
# exclude docs that we have moved to the above
|
||||
%exclude %{_datadir}/doc/thunar/README.gtkrc
|
||||
%{_bindir}/Thunar
|
||||
%{_bindir}/thunar
|
||||
%{_bindir}/thunar-settings
|
||||
%{_libdir}/libthunar*.so.*
|
||||
%dir %{_libdir}/thunarx-*/
|
||||
%{_libdir}/thunarx-*/thunar*.so
|
||||
%dir %{_libdir}/Thunar/
|
||||
%{_libdir}/Thunar/ThunarBulkRename
|
||||
%{_libdir}/Thunar/thunar-sendto-email
|
||||
%dir %{_datadir}/Thunar/
|
||||
%dir %{_datadir}/Thunar/sendto/
|
||||
%{_datadir}/Thunar/sendto/*.desktop
|
||||
%{_datadir}/polkit-1/actions/org.xfce.thunar.policy
|
||||
%{_datadir}/applications/*.desktop
|
||||
%{_datadir}/dbus-1/services/org.xfce.Thunar.FileManager1.service
|
||||
%{_datadir}/dbus-1/services/org.xfce.FileManager.service
|
||||
%{_datadir}/dbus-1/services/org.xfce.Thunar.service
|
||||
%{_datadir}/icons/hicolor/*/*/*
|
||||
%{_datadir}/pixmaps/Thunar/
|
||||
%{_datadir}/xfce4/panel/plugins/thunar-tpa.desktop
|
||||
%{_metainfodir}/org.xfce.thunar.appdata.xml
|
||||
%{_libdir}/xfce4/panel/plugins/libthunar-tpa.so
|
||||
%{_libdir}/girepository-1.0/*.0.typelib
|
||||
%{_mandir}/man1/Thunar.1*
|
||||
%dir %{_sysconfdir}/xdg/Thunar
|
||||
%config(noreplace) %{_sysconfdir}/xdg/Thunar/uca.xml
|
||||
%{_userunitdir}/thunar.service
|
||||
|
||||
%files devel
|
||||
%doc examples
|
||||
%{_includedir}/thunarx-*/
|
||||
%{_libdir}/libthunar*.so
|
||||
%{_libdir}/pkgconfig/thunarx-*.pc
|
||||
%{_datadir}/gir-1.0/*.gir
|
||||
|
||||
%files docs
|
||||
%dir %{_datadir}/gtk-doc/html/thunarx
|
||||
%{_datadir}/gtk-doc/html/thunarx/*
|
||||
|
||||
%changelog
|
||||
* Thu Jul 9 2020 Dillon Chen<dillon.chen@turbolinux.com.cn> - 1.8.15-1
|
||||
- Init package
|
||||
BIN
thunar-1.8.15.tar.bz2
Normal file
BIN
thunar-1.8.15.tar.bz2
Normal file
Binary file not shown.
14
thunar-sendto-audacious-playlist.desktop
Normal file
14
thunar-sendto-audacious-playlist.desktop
Normal file
@ -0,0 +1,14 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Name=Audacious Playlist
|
||||
Name[de]=Audacious Wiedergabeliste
|
||||
GenericName=Audio Playlist
|
||||
GenericName[de]= Wiedergabeliste
|
||||
Comment=Enque files to playlist
|
||||
Comment[de]=Dateien zur Wiedergabeliste hinzufügen
|
||||
Exec=audacious -e %F
|
||||
TryExec=audacious
|
||||
Icon=audacious
|
||||
MimeType=audio/prs.sid;audio/x-flac;audio/x-it;audio/x-mod;audio/x-ms-wma;audio/x-musepack;audio/x-s3m;audio/x-stm;audio/x-xm;application/ogg;audio/x-vorbis+ogg;inode/directory;
|
||||
Terminal=false
|
||||
Type=Application
|
||||
13
thunar-sendto-blueman.desktop
Normal file
13
thunar-sendto-blueman.desktop
Normal file
@ -0,0 +1,13 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Name=Bluetooth OBEX Recipient
|
||||
Name[de]=Bluetooth OBEX Empfänger
|
||||
GenericName=Bluetooth Recipient
|
||||
GenericName[de]=Bluetooth Empfänger
|
||||
Comment=Send selected files via Bluetooth
|
||||
Comment[de]=Ausgewählte Dateien per Bluetooth senden
|
||||
Exec=blueman-sendto %F
|
||||
TryExec=blueman-sendto
|
||||
Icon=bluetooth
|
||||
Terminal=false
|
||||
Type=Application
|
||||
13
thunar-sendto-gnome-bluetooth.desktop
Normal file
13
thunar-sendto-gnome-bluetooth.desktop
Normal file
@ -0,0 +1,13 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Name=Bluetooth OBEX Recipient
|
||||
Name[de]=Bluetooth OBEX Empfänger
|
||||
GenericName=Bluetooth Recipient
|
||||
GenericName[de]=Bluetooth Empfänger
|
||||
Comment=Send selected files via Bluetooth
|
||||
Comment[de]=Ausgewählte Dateien per Bluetooth senden
|
||||
Exec=bluetooth-sendto %F
|
||||
TryExec=bluetooth-sendto
|
||||
Icon=bluetooth
|
||||
Terminal=false
|
||||
Type=Application
|
||||
14
thunar-sendto-quodlibet-playlist.desktop
Normal file
14
thunar-sendto-quodlibet-playlist.desktop
Normal file
@ -0,0 +1,14 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Name=Quod Libet Playlist
|
||||
Name[de]=Quod Libet Wiedergabeliste
|
||||
GenericName=Audio Playlist
|
||||
GenericName[de]= Wiedergabeliste
|
||||
Comment=Enque files to playlist
|
||||
Comment[de]=Dateien zur Wiedergabeliste hinzufügen
|
||||
Exec=quodlibet --enqueue %F
|
||||
TryExec=quodlibet
|
||||
Icon=quodlibet
|
||||
MimeType=audio/prs.sid;audio/x-flac;audio/x-it;audio/x-mod;audio/x-ms-wma;audio/x-musepack;audio/x-s3m;audio/x-stm;audio/x-xm;application/ogg;audio/x-vorbis+ogg;inode/directory;
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Loading…
x
Reference in New Issue
Block a user