]>
Commit | Line | Data |
---|---|---|
d8c2e357 ER |
1 | Summary: Utility to find and clean "lint" on a filesystem |
2 | Name: fslint | |
3 | Version: 2.28 | |
590cfbc7 | 4 | Release: 2 |
d8c2e357 | 5 | License: GPL |
0c81a87a | 6 | Group: Applications/File |
d8c2e357 | 7 | Source0: http://www.pixelbeat.org/fslint/%{name}-%{version}.tar.gz |
d8c2e357 | 8 | # Source0-md5: e6a9946f7db9cbdb15f70a9fe79470fc |
0c81a87a TP |
9 | Source1: %{name}.desktop |
10 | Patch0: %{name}.patch | |
11 | URL: http://www.pixelbeat.org/fslint/ | |
d8c2e357 ER |
12 | BuildRequires: gettext >= 0.13 |
13 | BuildRequires: python-devel >= 2.0 | |
d8c2e357 | 14 | BuildRequires: python-pygtk-devel |
0c81a87a | 15 | BuildRequires: sed >= 4.0 |
d8c2e357 ER |
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 | |
0c81a87a TP |
23 | fslint is a toolkit to find all redundant disk usage (for example |
24 | duplicated files). | |
d8c2e357 ER |
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 | |
0c81a87a | 39 | - zipdir -- Reclaim wasted space in ext2 directory entries |
d8c2e357 ER |
40 | |
41 | %package gui | |
0c81a87a | 42 | Summary: fslint GUI |
d8c2e357 | 43 | Group: X11/Applications |
590cfbc7 | 44 | Requires: fslint |
d8c2e357 ER |
45 | Requires: python >= 2.0 |
46 | Requires: python-pygtk-glade | |
47 | ||
48 | %description gui | |
0c81a87a TP |
49 | fslint is a toolkit to find all redundant disk usage (for example |
50 | duplicated files). | |
d8c2e357 ER |
51 | |
52 | This package includes the GUI. | |
53 | ||
54 | %prep | |
55 | %setup -q | |
56 | %patch0 -p1 | |
57 | ||
58 | %{__sed} -i -e ' | |
59 | # remove script_dir variable setting | |
60 | /script_dir=/,/script_dir=/d; | |
61 | ||
62 | # find* programs are in $PATH | |
63 | s,"$script_dir"/find,find, | |
64 | ||
65 | # replace $script_dir with real path | |
66 | s,"$script_dir",%{_datadir}/fslint, | |
67 | ' fslint/{find??,fslint,zipdir} | |
68 | ||
590cfbc7 TP |
69 | %{__perl} -pi -e 's|^liblocation=.*$|liblocation="%{_datadir}/%{name}" #RPM edit|' fslint-gui |
70 | %{__perl} -pi -e 's|^locale_base=.*$|locale_base=None #RPM edit|' fslint-gui | |
80d25a8c TP |
71 | %{__perl} -pi -e 's|liblocation\+"/fslint/|liblocation+"/|' fslint-gui |
72 | %{__perl} -pi -e 's|"./find|"find|' fslint-gui | |
590cfbc7 | 73 | |
d8c2e357 ER |
74 | %build |
75 | %{__make} -C po | |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_desktopdir},%{_mandir}/man1,%{_datadir}/fslint} | |
80 | install fslint-gui $RPM_BUILD_ROOT%{_bindir}/fslint-gui | |
81 | ||
590cfbc7 TP |
82 | install fslint.glade $RPM_BUILD_ROOT%{_datadir}/fslint |
83 | install fslint_icon.png $RPM_BUILD_ROOT%{_datadir}/fslint | |
84 | ln -s %{_datadir}/fslint/fslint_icon.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
85 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
d8c2e357 ER |
86 | |
87 | cp -a fslint/{find??,fslint,zipdir} $RPM_BUILD_ROOT%{_bindir} | |
88 | cp -a fslint/{fstool,supprt} $RPM_BUILD_ROOT%{_datadir}/fslint | |
89 | ||
590cfbc7 | 90 | install man/fslint-gui.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
d8c2e357 ER |
91 | |
92 | %{__make} -C po install \ | |
93 | DESTDIR=$RPM_BUILD_ROOT | |
0c81a87a | 94 | |
d8c2e357 ER |
95 | %find_lang %{name} |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %files | |
101 | %defattr(644,root,root,755) | |
102 | %doc doc/* | |
103 | %attr(755,root,root) %{_bindir}/findbl | |
104 | %attr(755,root,root) %{_bindir}/finded | |
105 | %attr(755,root,root) %{_bindir}/findid | |
106 | %attr(755,root,root) %{_bindir}/findnl | |
107 | %attr(755,root,root) %{_bindir}/findns | |
108 | %attr(755,root,root) %{_bindir}/findrs | |
109 | %attr(755,root,root) %{_bindir}/findsn | |
110 | %attr(755,root,root) %{_bindir}/findtf | |
111 | %attr(755,root,root) %{_bindir}/findu8 | |
112 | %attr(755,root,root) %{_bindir}/findul | |
113 | %attr(755,root,root) %{_bindir}/findup | |
114 | %attr(755,root,root) %{_bindir}/fslint | |
115 | %attr(755,root,root) %{_bindir}/zipdir | |
116 | ||
117 | %dir %{_datadir}/fslint | |
118 | %dir %{_datadir}/fslint/fstool | |
119 | %attr(755,root,root) %{_datadir}/fslint/fstool/dir_size | |
120 | %attr(755,root,root) %{_datadir}/fslint/fstool/dupwaste | |
121 | %attr(755,root,root) %{_datadir}/fslint/fstool/edu | |
122 | %attr(755,root,root) %{_datadir}/fslint/fstool/lS | |
123 | ||
124 | %dir %{_datadir}/fslint/supprt | |
125 | %attr(755,root,root) %{_datadir}/fslint/supprt/fslver | |
126 | %attr(755,root,root) %{_datadir}/fslint/supprt/getffl | |
127 | %attr(755,root,root) %{_datadir}/fslint/supprt/getffp | |
128 | %attr(755,root,root) %{_datadir}/fslint/supprt/getfpf | |
129 | %attr(755,root,root) %{_datadir}/fslint/supprt/md5sum_approx | |
130 | ||
131 | %dir %{_datadir}/fslint/supprt/rmlint | |
132 | %attr(755,root,root) %{_datadir}/fslint/supprt/rmlint/fix_ws.sh | |
133 | %attr(755,root,root) %{_datadir}/fslint/supprt/rmlint/fixdup.py | |
134 | %attr(755,root,root) %{_datadir}/fslint/supprt/rmlint/fixdup.sh | |
135 | %attr(755,root,root) %{_datadir}/fslint/supprt/rmlint/merge_hardlinks | |
136 | %attr(755,root,root) %{_datadir}/fslint/supprt/rmlint/view_ws.sh | |
137 | ||
138 | %files gui -f %{name}.lang | |
139 | %defattr(644,root,root,755) | |
140 | %attr(755,root,root) %{_bindir}/fslint-gui | |
141 | %{_mandir}/man1/fslint-gui.1* | |
142 | %{_desktopdir}/fslint.desktop | |
143 | %{_datadir}/fslint/fslint.glade | |
144 | %{_datadir}/fslint/fslint_icon.png | |
590cfbc7 | 145 | %{_pixmapsdir}/fslint_icon.png |