e02f267
Name:           ptrash
16d0e27
Version:        1.0.1
e02f267
Release:        1%{?dist}
e02f267
Summary:        Move file(s) to ~/.trash directory
e02f267
e02f267
Group:          Applications/System
e02f267
License:        GPLv2+
e02f267
URL:            http://pjp.dgplug.org/tools/
e02f267
Source0:        http://pjp.dgplug.org/tools/%{name}-%{version}.tar.gz
e02f267
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e02f267
e02f267
Requires(post): info      
e02f267
Requires(preun): info
e02f267
e02f267
%description
e02f267
Ptrash moves the named file(s) to the ~/.trash directory. Trash is located
e02f267
under the home directory of a user. It is a simple console based utility,
e02f267
I wrote after deleting some files, which I couldn't retrieve back.
e02f267
Ptrash can also restore file(s) back to there original location. It has really
e02f267
proved very handy to me.
e02f267
e02f267
e02f267
%prep
e02f267
%setup -q
e02f267
e02f267
e02f267
%build
e02f267
%configure
e02f267
make %{?_smp_mflags}
e02f267
e02f267
e02f267
%install
e02f267
rm -rf $RPM_BUILD_ROOT
e02f267
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
e02f267
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
e02f267
e02f267
e02f267
%post
e02f267
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/%{name}.info || :
e02f267
e02f267
e02f267
%preun
e02f267
if [ $1 = 0 ]; then
e02f267
    /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
e02f267
fi
e02f267
e02f267
e02f267
%clean
e02f267
rm -rf $RPM_BUILD_ROOT
e02f267
e02f267
e02f267
%files
e02f267
%defattr(-,root,root,-)
e02f267
%doc README COPYING
e02f267
%_bindir/ptrash
e02f267
%_infodir/*
e02f267
%_mandir/man1/*
e02f267
e02f267
e02f267
%changelog
e02f267
16d0e27
* Wed Jul  1 2009 _pjp_ <pj.pandit@yahoo.co.in> - 1.0.1-1
16d0e27
- Fixed a small bug that showed up while trashing a file under ~/.trash
16d0e27
  directory.
16d0e27
e02f267
* Tue Jul 22 2008 _pjp_ <pj.pandit@yahoo.co.in> - 1.0-1
e02f267
- Initial RPM release of ptrash-1.0