1d4d562
# review at https://bugzilla.redhat.com/show_bug.cgi?id=229930
1d4d562
5e5d37c
%global thunarversion 1.3
25ff9fd
%global xfceversion 4.12
1d4d562
%global minorversion 0.8
1d4d562
3b95062
3b95062
Name:           thunar-volman
e2cfa3c
Version:        0.8.1
a2e38c4
Release:        4%{?dist}
1d4d562
Summary:        Automatic management of removable drives and media for Thunar
3b95062
3b95062
Group:          User Interface/Desktops
3ab4b9f
License:        GPLv2+
6d5f490
URL:            http://goodies.xfce.org/projects/thunar-plugins/%{name}
1d4d562
#VCS: git:git://git.xfce.org/xfce/thunar-volman
1d4d562
Source0:        http://archive.xfce.org/src/xfce/%{name}/%{minorversion}/%{name}-%{version}.tar.bz2
5e5d37c
Patch1:         thunar-volman-0.7.0-desktop-fix.patch
3b95062
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3b95062
1d4d562
BuildRequires:  exo-devel >= 0.6.0
da19b29
BuildRequires:  xfconf >= %{xfceversion}
da19b29
BuildRequires:  libxfce4ui-devel >= %{xfceversion}
da19b29
BuildRequires:  libgudev1-devel >= 145
da19b29
BuildRequires:  libnotify-devel >= 0.4.0
3b95062
BuildRequires:  gettext
da19b29
BuildRequires:  intltool
f26b22b
BuildRequires:  desktop-file-utils
da19b29
Requires:       Thunar >= %{thunarversion}
3b95062
3b95062
%description
3b95062
The Thunar Volume Manager is an extension for the Thunar file manager, which 
3b95062
enables automatic management of removable drives and media. For example, if 
3b95062
thunar-volman is installed and configured properly, and you plug in your 
3b95062
digital camera, it will automatically launch your preferred photo application 
3b95062
and import the new pictures from the camera into your photo collection.
3b95062
f26b22b
3b95062
%prep
3b95062
%setup -q
5e5d37c
%patch1 -p1
b6a45a2
3b95062
3b95062
%build
3b95062
%configure
3b95062
make %{?_smp_mflags}
3b95062
3b95062
3b95062
%install
3b95062
rm -rf $RPM_BUILD_ROOT
da19b29
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
3b95062
%find_lang %{name}
c6c68c6
desktop-file-install \
c6c68c6
%if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7)
c6c68c6
    --vendor fedora                        \
c6c68c6
%endif
da19b29
    --dir ${RPM_BUILD_ROOT}%{_datadir}/applications         \
da19b29
    --add-only-show-in=XFCE                                 \
da19b29
    --delete-original                                       \
da19b29
    ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}-settings.desktop
3b95062
3b95062
3b95062
%post
b99e9b0
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
b99e9b0
3b95062
3b95062
%postun
b99e9b0
if [ "$1" -eq 0 ] ; then
b99e9b0
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
b99e9b0
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
b99e9b0
fi
b99e9b0
b99e9b0
b99e9b0
%posttrans
b99e9b0
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
3b95062
3b95062
3b95062
%clean
3b95062
rm -rf $RPM_BUILD_ROOT
3b95062
3b95062
3b95062
%files -f %{name}.lang
3b95062
%defattr(-,root,root,-)
3b95062
%doc AUTHORS ChangeLog COPYING NEWS README THANKS
3b95062
%{_bindir}/thunar-volman
da19b29
%{_bindir}/thunar-volman-settings
da19b29
%{_datadir}/icons/*/*/*/*
c6c68c6
%{_datadir}/applications/*thunar-volman-settings.desktop
3b95062
3b95062
3b95062
%changelog
a2e38c4
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-4
a2e38c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a2e38c4
0919ce6
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-3
0919ce6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0919ce6
337c537
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-2
337c537
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
337c537
e2cfa3c
* Tue Mar 17 2015 Kevin Fenzi <kevin@scrye.com> 0.8.1-1
e2cfa3c
- Update to 0.8.1
e2cfa3c
25ff9fd
* Sat Feb 28 2015 Kevin Fenzi <kevin@scrye.com> 0.8.0-9
25ff9fd
- Rebuild for Xfce 4.12
25ff9fd
b24bf77
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 0.8.0-8
b24bf77
- Rebuilt for Fedora 23 Change
b24bf77
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
b24bf77
e14b284
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-7
e14b284
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
e14b284
df0e22a
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-6
df0e22a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
df0e22a
fea0eff
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-5
fea0eff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fea0eff
c6c68c6
* Fri Feb 22 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 0.8.0-4
c6c68c6
- Remove --vendor from desktop-file-install https://fedorahosted.org/fesco/ticket/1077
c6c68c6
9e97c22
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-3
9e97c22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9e97c22
b391be7
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
b391be7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b391be7
1d4d562
* Sun Apr 29 2012 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-1
1d4d562
- Update to 0.8.0 (Xfce 4.10 final)
1d4d562
- Add VCS key and review #
1d4d562
9fc2d91
* Sat Apr 14 2012 Kevin Fenzi <kevin@scrye.com> - 0.7.1-1
9fc2d91
- Update to 0.7.1 (Xfce 4.10pre2)
9fc2d91
5e5d37c
* Tue Apr 03 2012 Kevin Fenzi <kevin@scrye.com> - 0.7.0-1
5e5d37c
- Update to 0.7.0
5e5d37c
9ee0373
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-3
9ee0373
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9ee0373
df16762
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-2
df16762
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
df16762
Kevin Fenzi 9c86fe5
* Sun Jan 16 2011 Kevin Fenzi <kevin@tummy.com> - 0.6.0-1
Kevin Fenzi 9c86fe5
- Update to 0.6.0 (for Thunar 1.2.0 on Xfce 4.8 final)
Kevin Fenzi 9c86fe5
da19b29
* Sun Dec 05 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.3-1
da19b29
- Update to 0.5.3 (for Thunar 1.1.5 on Xfce 4.8 pre2)
da19b29
e2cfa3c
* Sat Nov 06 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.2-1
da19b29
- Update to 0.5.2 (for Thunar 1.1.4 on Xfce 4.8 pre1)
da19b29
- BR libgudev1-devel
da19b29
- Fix for libnotify 0.7.0 (bugzilla.xfce.org #6916)
da19b29
b6a45a2
* Sat Nov 06 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.80-5
b6a45a2
- Fix missing icons (#650504)
b6a45a2
b99e9b0
* Sun Oct 03 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.80-4
b99e9b0
- Fix the parole patch (#639484)
b99e9b0
- Update gtk-icon-cache scriptlets
b99e9b0
Kevin Fenzi 8206874
* Sat Oct 02 2010 Kevin Fenzi <kevin@tummy.om> - 0.3.80-3
b99e9b0
- Add patch to default to parole for video/audio (#639484)
Kevin Fenzi 8206874
eaf7835
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.80-2
eaf7835
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
eaf7835
7177d75
* Sat Feb 28 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.80-1
7177d75
- Update to 0.3.80
7177d75
- Add Category X-XfceSettingsDialog
7177d75
0ca06f8
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-3
0ca06f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0ca06f8
1586e01
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.2.0-2
1586e01
- Autorebuild for GCC 4.3
1586e01
7177d75
* Mon Dec 03 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.0-1
f26b22b
- Update to 0.2.0 and Thunar 0.9.0
f26b22b
7177d75
* Tue Aug 21 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.2-2
3ab4b9f
- Rebuild for BuildID feature
3ab4b9f
7177d75
* Sun Jan 21 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.2-1
3b95062
- Update to 0.1.2.
3b95062
7177d75
* Wed Jan 17 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.0-1
3b95062
- Initial packaging.