67 lines
1.9 KiB
RPMSpec
67 lines
1.9 KiB
RPMSpec
%global _hardened_build 1
|
|
%global xfceversion 4.14
|
|
|
|
Name: thunar-volman
|
|
Version: 0.9.5
|
|
Release: 2
|
|
Summary: Automatic management of removable drives and media for Thunar
|
|
License: GPLv2+
|
|
#Group: Development/Libraries
|
|
URL: http://goodies.xfce.org/projects/thunar-plugins/%{name}
|
|
Source0: http://archive.xfce.org/src/xfce/%{name}/0.9/%{name}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
#BuildArch: noarch
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: exo-devel >= 0.6.0
|
|
BuildRequires: xfconf >= %{xfceversion}
|
|
BuildRequires: libxfce4ui-devel >= %{xfceversion}
|
|
BuildRequires: libgudev1-devel >= 145
|
|
BuildRequires: libnotify-devel >= 0.4.0
|
|
BuildRequires: gettext
|
|
BuildRequires: intltool
|
|
BuildRequires: desktop-file-utils
|
|
Requires: Thunar
|
|
|
|
%description
|
|
thunar-volman is an extension for the Thunar File Manager, which enables
|
|
automatic management of removable drives and media. For example, if
|
|
thunar-volman is installed and configured properly, and you plug in your
|
|
digitcal camera, it will automatically spawn your preferred photo application
|
|
and import the new pictures from your camera.
|
|
|
|
|
|
%prep
|
|
%setup
|
|
|
|
sed -i 's/XFCE;//' thunar-volman-settings/thunar-volman-settings.desktop.in.in
|
|
|
|
|
|
%build
|
|
%configure
|
|
%make_build
|
|
|
|
|
|
%install
|
|
%make_install
|
|
|
|
%find_lang %{name}
|
|
|
|
desktop-file-install \
|
|
--dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
|
|
--add-only-show-in=XFCE \
|
|
--delete-original \
|
|
${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}-settings.desktop
|
|
|
|
|
|
%files -f %{name}.lang
|
|
%doc AUTHORS ChangeLog NEWS README THANKS
|
|
%license COPYING
|
|
%{_bindir}/thunar-volman
|
|
%{_bindir}/thunar-volman-settings
|
|
%{_datadir}/icons/*/*/*/*
|
|
%{_datadir}/applications/*thunar-volman-settings.desktop
|
|
|
|
%changelog
|
|
* Thu Jul 9 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 0.9.5-1
|
|
- Init package
|