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