]>
Commit | Line | Data |
---|---|---|
d8c2e357 ER |
1 | Summary: Utility to find and clean "lint" on a filesystem |
2 | Name: fslint | |
3 | Version: 2.28 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: Base | |
7 | URL: http://www.pixelbeat.org/fslint/ | |
8 | Source0: http://www.pixelbeat.org/fslint/%{name}-%{version}.tar.gz | |
9 | Patch0: %{name}.patch | |
10 | Source1: %{name}.desktop | |
11 | # Source0-md5: e6a9946f7db9cbdb15f70a9fe79470fc | |
12 | BuildRequires: gettext >= 0.13 | |
13 | BuildRequires: python-devel >= 2.0 | |
14 | BuildRequires: sed >= 4.0 | |
15 | BuildRequires: python-pygtk-devel | |
16 | Requires: coreutils | |
17 | Requires: cpio | |
18 | Requires: gettext >= 0.11.1 | |
19 | BuildArch: noarch | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | fslint is a toolkit to find all redundant disk usage (duplicate files | |
24 | for e.g.). | |
25 | ||
26 | This package includes collection of utilities to find lint on a | |
27 | filesystem: | |
28 | - findup -- find DUPlicate files | |
29 | - findnl -- find Name Lint (problems with filenames) | |
30 | - findu8 -- find filenames with invalid utf8 encoding | |
31 | - findbl -- find Bad Links (various problems with symlinks) | |
32 | - findsn -- find Same Name (problems with clashing names) | |
33 | - finded -- find Empty Directories | |
34 | - findid -- find files with dead user IDs | |
35 | - findns -- find Non Stripped executables | |
36 | - findrs -- find Redundant Whitespace in files | |
37 | - findtf -- find Temporary Files | |
38 | - findul -- find possibly Unused Libraries | |
39 | - zipdir -- Reclaim wasted space in ext2 directory entries" | |
40 | ||
41 | %package gui | |
42 | Summary: fslint gui | |
43 | Group: X11/Applications | |
44 | Requires: python >= 2.0 | |
45 | Requires: python-pygtk-glade | |
46 | ||
47 | %description gui | |
48 | fslint is a toolkit to find all redundant disk usage (duplicate files | |
49 | for e.g.). | |
50 | ||
51 | This package includes the GUI. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
55 | %patch0 -p1 | |
56 | ||
57 | %{__sed} -i -e ' | |
58 | # remove script_dir variable setting | |
59 | /script_dir=/,/script_dir=/d; | |
60 | ||
61 | # find* programs are in $PATH | |
62 | s,"$script_dir"/find,find, | |
63 | ||
64 | # replace $script_dir with real path | |
65 | s,"$script_dir",%{_datadir}/fslint, | |
66 | ' fslint/{find??,fslint,zipdir} | |
67 | ||
68 | %build | |
69 | %{__make} -C po | |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_desktopdir},%{_mandir}/man1,%{_datadir}/fslint} | |
74 | install fslint-gui $RPM_BUILD_ROOT%{_bindir}/fslint-gui | |
75 | ||
76 | cp -a fslint_icon.png $RPM_BUILD_ROOT%{_datadir}/fslint/fslint_icon.png | |
77 | cp -a fslint.glade $RPM_BUILD_ROOT%{_datadir}/fslint | |
78 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
79 | ||
80 | cp -a fslint/{find??,fslint,zipdir} $RPM_BUILD_ROOT%{_bindir} | |
81 | cp -a fslint/{fstool,supprt} $RPM_BUILD_ROOT%{_datadir}/fslint | |
82 | ||
83 | cp -a man/fslint-gui.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
84 | ||
85 | %{__make} -C po install \ | |
86 | DESTDIR=$RPM_BUILD_ROOT | |
87 | %find_lang %{name} | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %files | |
93 | %defattr(644,root,root,755) | |
94 | %doc doc/* | |
95 | %attr(755,root,root) %{_bindir}/findbl | |
96 | %attr(755,root,root) %{_bindir}/finded | |
97 | %attr(755,root,root) %{_bindir}/findid | |
98 | %attr(755,root,root) %{_bindir}/findnl | |
99 | %attr(755,root,root) %{_bindir}/findns | |
100 | %attr(755,root,root) %{_bindir}/findrs | |
101 | %attr(755,root,root) %{_bindir}/findsn | |
102 | %attr(755,root,root) %{_bindir}/findtf | |
103 | %attr(755,root,root) %{_bindir}/findu8 | |
104 | %attr(755,root,root) %{_bindir}/findul | |
105 | %attr(755,root,root) %{_bindir}/findup | |
106 | %attr(755,root,root) %{_bindir}/fslint | |
107 | %attr(755,root,root) %{_bindir}/zipdir | |
108 | ||
109 | %dir %{_datadir}/fslint | |
110 | %dir %{_datadir}/fslint/fstool | |
111 | %attr(755,root,root) %{_datadir}/fslint/fstool/dir_size | |
112 | %attr(755,root,root) %{_datadir}/fslint/fstool/dupwaste | |
113 | %attr(755,root,root) %{_datadir}/fslint/fstool/edu | |
114 | %attr(755,root,root) %{_datadir}/fslint/fstool/lS | |
115 | ||
116 | %dir %{_datadir}/fslint/supprt | |
117 | %attr(755,root,root) %{_datadir}/fslint/supprt/fslver | |
118 | %attr(755,root,root) %{_datadir}/fslint/supprt/getffl | |
119 | %attr(755,root,root) %{_datadir}/fslint/supprt/getffp | |
120 | %attr(755,root,root) %{_datadir}/fslint/supprt/getfpf | |
121 | %attr(755,root,root) %{_datadir}/fslint/supprt/md5sum_approx | |
122 | ||
123 | %dir %{_datadir}/fslint/supprt/rmlint | |
124 | %attr(755,root,root) %{_datadir}/fslint/supprt/rmlint/fix_ws.sh | |
125 | %attr(755,root,root) %{_datadir}/fslint/supprt/rmlint/fixdup.py | |
126 | %attr(755,root,root) %{_datadir}/fslint/supprt/rmlint/fixdup.sh | |
127 | %attr(755,root,root) %{_datadir}/fslint/supprt/rmlint/merge_hardlinks | |
128 | %attr(755,root,root) %{_datadir}/fslint/supprt/rmlint/view_ws.sh | |
129 | ||
130 | %files gui -f %{name}.lang | |
131 | %defattr(644,root,root,755) | |
132 | %attr(755,root,root) %{_bindir}/fslint-gui | |
133 | %{_mandir}/man1/fslint-gui.1* | |
134 | %{_desktopdir}/fslint.desktop | |
135 | %{_datadir}/fslint/fslint.glade | |
136 | %{_datadir}/fslint/fslint_icon.png |