]>
Commit | Line | Data |
---|---|---|
1 | Summary: Utility to find and clean "lint" on a filesystem | |
2 | Summary(pl.UTF-8): Narzędzie do wyszukiwania i czyszczenia "brudów" w systemie plików | |
3 | Name: fslint | |
4 | Version: 2.44 | |
5 | Release: 2 | |
6 | License: GPL v2+ | |
7 | Group: Applications/File | |
8 | Source0: http://www.pixelbeat.org/fslint/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 195d0763038ffbaf268b53b94d80d7e1 | |
10 | Source1: %{name}.desktop | |
11 | Patch0: %{name}.patch | |
12 | URL: http://www.pixelbeat.org/fslint/ | |
13 | BuildRequires: gettext-tools >= 0.13 | |
14 | BuildRequires: rpm-pythonprov | |
15 | BuildRequires: sed >= 4.0 | |
16 | Requires: coreutils | |
17 | Requires: cpio | |
18 | Requires: gettext >= 0.11.1 | |
19 | Requires: python-modules | |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | fslint is a toolkit to find all redundant disk usage (for example | |
25 | duplicated files). | |
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 | |
40 | - zipdir -- Reclaim wasted space in ext2 directory entries | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | fslint to zestaw narzędzi do wyszukiwania niepotrzebnie używanego | |
44 | miejsca na dysku (np. plików trzymanych w wielu kopiach). | |
45 | ||
46 | Ten pakiet zawiera narzędzia wyszukujące "brudy" w systemie plików: | |
47 | - findup znajduje DUPlikaty plików | |
48 | - findnl (Nale Lint) znajduje problematyczne nazwy plików | |
49 | - findu8 znajduje nazwy plików z błędnym kodowaniem UTF-8 | |
50 | - findbl (Bad Links) znajduje problematyczne dowiązania symboliczne | |
51 | - findsn (Same Name) znajduje problemy z pokrywającymi się nazwami | |
52 | - finded (Empty Directories) znajduje puste katalogi | |
53 | - findid (ID) znajduje pliki identyfikatorami martwych użytkowników | |
54 | - findns (Non Stripped) znajduje pliki wykonywalne zawierające | |
55 | informacje dla debuggera | |
56 | - findrs (Redundant Whitespace) znajduje nadmiarowe odstępy w plikach | |
57 | - findtf (Temporary Files) znajduje pliki tymczasowe | |
58 | - findul (Unused Libraries) znajduje potencjalnie nie używane | |
59 | biblioteki | |
60 | - zipdir odzyskuje zmarnowane miejsce we wpisach katalogów ext2 | |
61 | ||
62 | %package gui | |
63 | Summary: GUI for fslint | |
64 | Summary(pl.UTF-8): Graficzny interfejs użytkownika do fslinta | |
65 | Group: X11/Applications | |
66 | Requires: %{name} = %{version}-%{release} | |
67 | Requires: python >= 2.0 | |
68 | Requires: python-pygtk-glade >= 2:2 | |
69 | Requires: python-pygtk-gtk >= 2:2 | |
70 | ||
71 | %description gui | |
72 | fslint is a toolkit to find all redundant disk usage (for example | |
73 | duplicated files). | |
74 | ||
75 | This package includes the GUI. | |
76 | ||
77 | %description gui -l pl.UTF-8 | |
78 | fslint to zestaw narzędzi do wyszukiwania niepotrzebnie używanego | |
79 | miejsca na dysku (np. plików trzymanych w wielu kopiach). | |
80 | ||
81 | Ten pakiet zawiera graficzny interfejs użytkownika. | |
82 | ||
83 | %prep | |
84 | %setup -q | |
85 | %patch0 -p1 | |
86 | ||
87 | %{__sed} -i -e ' | |
88 | # remove script_dir variable setting | |
89 | /script_dir=/,/script_dir=/d; | |
90 | ||
91 | # find* programs are in $PATH | |
92 | s,"$script_dir"/find,find, | |
93 | ||
94 | # replace $script_dir with real path | |
95 | s,"$script_dir",%{_datadir}/fslint, | |
96 | ' fslint/{find??,fslint,zipdir} | |
97 | ||
98 | %{__perl} -pi -e 's|^liblocation=.*$|liblocation="%{_datadir}/%{name}" #RPM edit|' fslint-gui | |
99 | %{__perl} -pi -e 's|^locale_base=.*$|locale_base=None #RPM edit|' fslint-gui | |
100 | %{__perl} -pi -e 's|liblocation\+"/fslint/|liblocation+"/|' fslint-gui | |
101 | %{__perl} -pi -e 's|"./find|"find|' fslint-gui | |
102 | ||
103 | %build | |
104 | %{__make} -C po | |
105 | ||
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_desktopdir},%{_mandir}/man1,%{_datadir}/fslint} | |
109 | install -p fslint-gui $RPM_BUILD_ROOT%{_bindir}/fslint-gui | |
110 | ||
111 | cp -p fslint.glade $RPM_BUILD_ROOT%{_datadir}/fslint | |
112 | cp -p fslint_icon.png $RPM_BUILD_ROOT%{_datadir}/fslint | |
113 | ln -s %{_datadir}/fslint/fslint_icon.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
114 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
115 | ||
116 | cp -a fslint/{find??,fslint,zipdir} $RPM_BUILD_ROOT%{_bindir} | |
117 | cp -a fslint/{fstool,supprt} $RPM_BUILD_ROOT%{_datadir}/fslint | |
118 | ||
119 | cp -p man/fslint-gui.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
120 | ||
121 | %{__make} -C po install \ | |
122 | DESTDIR=$RPM_BUILD_ROOT | |
123 | ||
124 | %find_lang %{name} | |
125 | ||
126 | %clean | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
129 | %files | |
130 | %defattr(644,root,root,755) | |
131 | %doc doc/* | |
132 | %attr(755,root,root) %{_bindir}/findbl | |
133 | %attr(755,root,root) %{_bindir}/finded | |
134 | %attr(755,root,root) %{_bindir}/findid | |
135 | %attr(755,root,root) %{_bindir}/findnl | |
136 | %attr(755,root,root) %{_bindir}/findns | |
137 | %attr(755,root,root) %{_bindir}/findrs | |
138 | %attr(755,root,root) %{_bindir}/findsn | |
139 | %attr(755,root,root) %{_bindir}/findtf | |
140 | %attr(755,root,root) %{_bindir}/findu8 | |
141 | %attr(755,root,root) %{_bindir}/findul | |
142 | %attr(755,root,root) %{_bindir}/findup | |
143 | %attr(755,root,root) %{_bindir}/fslint | |
144 | %attr(755,root,root) %{_bindir}/zipdir | |
145 | ||
146 | %dir %{_datadir}/fslint | |
147 | %dir %{_datadir}/fslint/fstool | |
148 | %attr(755,root,root) %{_datadir}/fslint/fstool/dir_size | |
149 | %attr(755,root,root) %{_datadir}/fslint/fstool/dupwaste | |
150 | %attr(755,root,root) %{_datadir}/fslint/fstool/edu | |
151 | %attr(755,root,root) %{_datadir}/fslint/fstool/lS | |
152 | ||
153 | %dir %{_datadir}/fslint/supprt | |
154 | %attr(755,root,root) %{_datadir}/fslint/supprt/fslver | |
155 | %attr(755,root,root) %{_datadir}/fslint/supprt/getffl | |
156 | %attr(755,root,root) %{_datadir}/fslint/supprt/getffp | |
157 | %attr(755,root,root) %{_datadir}/fslint/supprt/getfpf | |
158 | %attr(755,root,root) %{_datadir}/fslint/supprt/md5sum_approx | |
159 | ||
160 | %dir %{_datadir}/fslint/supprt/rmlint | |
161 | %attr(755,root,root) %{_datadir}/fslint/supprt/rmlint/fix_ws.sh | |
162 | %attr(755,root,root) %{_datadir}/fslint/supprt/rmlint/fixdup | |
163 | %attr(755,root,root) %{_datadir}/fslint/supprt/rmlint/fixdup.sh | |
164 | %attr(755,root,root) %{_datadir}/fslint/supprt/rmlint/merge_hardlinks | |
165 | %attr(755,root,root) %{_datadir}/fslint/supprt/rmlint/view_ws.sh | |
166 | ||
167 | %files gui -f %{name}.lang | |
168 | %defattr(644,root,root,755) | |
169 | %attr(755,root,root) %{_bindir}/fslint-gui | |
170 | %{_mandir}/man1/fslint-gui.1* | |
171 | %{_desktopdir}/fslint.desktop | |
172 | %{_datadir}/fslint/fslint.glade | |
173 | %{_datadir}/fslint/fslint_icon.png | |
174 | %{_pixmapsdir}/fslint_icon.png |