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 | |
---|
16 | %description |
---|
17 | libtrash is a shared library which, when preloaded, implements a trash |
---|
18 | can under GNU/Linux. This way, your mistakes (at least those of the |
---|
19 | "rm -rf dir /" class :-)) will no longer cause the loss of a week's |
---|
20 | work or your system's binaries. |
---|
21 | |
---|
22 | %prep |
---|
23 | %setup -q |
---|
24 | %patch0 -p1 |
---|
25 | %patch1 -p1 |
---|
26 | |
---|
27 | %build |
---|
28 | %__make |
---|
29 | |
---|
30 | %install |
---|
31 | %__rm -rf %{buildroot} |
---|
32 | %__mkdir_p %{buildroot}%{_bindir} |
---|
33 | %__mkdir_p %{buildroot}%{_libdir}/%{name} |
---|
34 | %__mkdir_p %{buildroot}%{_sysconfdir} |
---|
35 | %__mkdir_p %{buildroot}%{_mandir}/man8 |
---|
36 | |
---|
37 | %makeinstall DESTDIR=%{buildroot} INSTLIBDIR=%{_libdir}/%{name} |
---|
38 | |
---|
39 | %__install cleanTrash/cleanTrash %{buildroot}%{_bindir} |
---|
40 | %__install cleanTrash/ct2.pl %{buildroot}%{_bindir} |
---|
41 | %__tar xzf cleanTrash/strash-0.9.tar.gz |
---|
42 | %__install strash-0.9/strash %{buildroot}%{_bindir} |
---|
43 | %__install -m 644 strash-0.9/strash.8 %{buildroot}%{_mandir}/man8 |
---|
44 | |
---|
45 | %clean |
---|
46 | %__rm -rf %{buildroot} |
---|
47 | |
---|
48 | %files |
---|
49 | %defattr(-,root,root) |
---|
50 | %doc CHANGE.LOG COPYING README TODO WARNING.GLIBC config.txt |
---|
51 | %doc cleanTrash |
---|
52 | %doc example.bash_profile |
---|
53 | %{_bindir}/* |
---|
54 | %{_libdir}/%{name} |
---|
55 | %{_sysconfdir}/* |
---|
56 | %{_mandir}/man8/* |
---|
57 | |
---|
58 | %changelog |
---|
59 | * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 2.2-1vl5 |
---|
60 | - applied new versioning policy |
---|
61 | |
---|
62 | * Thu Feb 12 2004 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 2.2-0vl1 |
---|
63 | - new upstream version |
---|
64 | - change install directory (libdir -> libdir/libtrash) |
---|
65 | - add ct2.pl and strash |
---|
66 | |
---|
67 | * Sun Sep 28 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 2.1-0vl1 |
---|
68 | - Initial build. |
---|