[6284] | 1 | %global minorversion 0.8 |
---|
| 2 | |
---|
| 3 | Name: thunar-volman |
---|
| 4 | Summary: Thunar extension for volume management |
---|
| 5 | Version: 0.8.0 |
---|
| 6 | Release: 1%{?_dist_release} |
---|
| 7 | |
---|
| 8 | Group: User Interface/Desktops |
---|
| 9 | License: LGPLv2+ |
---|
| 10 | URL: http://goodies.xfce.org/projects/thunar-plugins/thunar-volman |
---|
| 11 | |
---|
| 12 | Source0: http://archive.xfce.org/src/xfce/%{name}/%{minorversion}/%{name}-%{version}.tar.bz2 |
---|
| 13 | |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 15 | |
---|
| 16 | BuildRequires: Thunar-devel >= 1.2.0 |
---|
| 17 | BuildRequires: libexo-devel >= 0.8.0 |
---|
| 18 | BuildRequires: glib2-devel >= 2.18.0 |
---|
| 19 | BuildRequires: gtk2-devel >= 2.24.0 |
---|
| 20 | BuildRequires: libgudev1-devel >= 145 |
---|
| 21 | BuildRequires: libxfce4ui-devel >= 4.10.0 |
---|
| 22 | BuildRequires: libxfce4util-devel >= 4.10.0 |
---|
| 23 | BuildRequires: xfconf-devel >= 4.10.0 |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | thunar-volman is an extension for the Thunar File Manager, which enables |
---|
| 27 | automatic management of removable drives and media. For example, if |
---|
| 28 | thunar-volman is installed and configured properly, and you plug in your |
---|
| 29 | digitcal camera, it will automatically spawn your preferred photo application |
---|
| 30 | and import the new pictures from your camera. |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | %prep |
---|
| 34 | %setup -q |
---|
| 35 | |
---|
| 36 | %build |
---|
| 37 | %configure --disable-static |
---|
| 38 | make %{?_smp_mflags} |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | %install |
---|
| 42 | rm -rf $RPM_BUILD_ROOT |
---|
| 43 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 44 | |
---|
| 45 | %find_lang %{name} |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | %clean |
---|
| 49 | rm -rf $RPM_BUILD_ROOT |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | %post |
---|
| 53 | /sbin/ldconfig |
---|
| 54 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 55 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 56 | update-desktop-database %{_datadir}/applications &> /dev/null || : |
---|
| 57 | |
---|
| 58 | %postun |
---|
| 59 | /sbin/ldconfig |
---|
| 60 | if [ $1 -eq 0 ]; then |
---|
| 61 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 62 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 63 | fi |
---|
| 64 | update-desktop-database %{_datadir}/applications &> /dev/null || : |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | %files -f %{name}.lang |
---|
| 68 | %defattr(-,root,root,-) |
---|
| 69 | %doc AUTHORS ChangeLog NEWS README |
---|
| 70 | %{_bindir}/thunar-volman |
---|
| 71 | %{_bindir}/thunar-volman-settings |
---|
| 72 | %{_datadir}/applications/thunar-volman-settings.desktop |
---|
| 73 | %{_datadir}/icons/hicolor/*/apps/* |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | %changelog |
---|
| 77 | * Thu Jun 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.8.0-1 |
---|
| 78 | - initial build for Vine Linux |
---|
| 79 | |
---|