libtrash-vl.spec 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. Name: libtrash
  2. Version: 2.2
  3. Release: 1%{?_dist_release}
  4. Vendor: Project Vine
  5. Distribution: Vine Linux
  6. Packager: USAMI Kosuke <usami-k@yc5.so-net.ne.jp>
  7. License: GPL
  8. Group: System Environment/Libraries
  9. URL: http://m-arriaga.net/software/libtrash/
  10. Source0: http://m-arriaga.net/software/libtrash/%{name}-%{version}.tgz
  11. Patch0: libtrash-Makefile.patch
  12. Patch1: libtrash-bash_profile.patch
  13. BuildRoot: %{_tmppath}/%{name}-root
  14. Summary: A trash can library to use with LD_PRELOAD
  15. %description
  16. libtrash is a shared library which, when preloaded, implements a trash
  17. can under GNU/Linux. This way, your mistakes (at least those of the
  18. "rm -rf dir /" class :-)) will no longer cause the loss of a week's
  19. work or your system's binaries.
  20. %prep
  21. %setup -q
  22. %patch0 -p1
  23. %patch1 -p1
  24. %build
  25. %__make
  26. %install
  27. %__rm -rf %{buildroot}
  28. %__mkdir_p %{buildroot}%{_bindir}
  29. %__mkdir_p %{buildroot}%{_libdir}/%{name}
  30. %__mkdir_p %{buildroot}%{_sysconfdir}
  31. %__mkdir_p %{buildroot}%{_mandir}/man8
  32. %makeinstall DESTDIR=%{buildroot} INSTLIBDIR=%{_libdir}/%{name}
  33. %__install cleanTrash/cleanTrash %{buildroot}%{_bindir}
  34. %__install cleanTrash/ct2.pl %{buildroot}%{_bindir}
  35. %__tar xzf cleanTrash/strash-0.9.tar.gz
  36. %__install strash-0.9/strash %{buildroot}%{_bindir}
  37. %__install -m 644 strash-0.9/strash.8 %{buildroot}%{_mandir}/man8
  38. %clean
  39. %__rm -rf %{buildroot}
  40. %files
  41. %defattr(-,root,root)
  42. %doc CHANGE.LOG COPYING README TODO WARNING.GLIBC config.txt
  43. %doc cleanTrash
  44. %doc example.bash_profile
  45. %{_bindir}/*
  46. %{_libdir}/%{name}
  47. %{_sysconfdir}/*
  48. %{_mandir}/man8/*
  49. %changelog
  50. * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 2.2-1vl5
  51. - applied new versioning policy
  52. * Thu Feb 12 2004 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 2.2-0vl1
  53. - new upstream version
  54. - change install directory (libdir -> libdir/libtrash)
  55. - add ct2.pl and strash
  56. * Sun Sep 28 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 2.1-0vl1
  57. - Initial build.