]>
Commit | Line | Data |
---|---|---|
d8c2e357 | 1 | Summary: Utility to find and clean "lint" on a filesystem |
f75725d7 | 2 | Summary(pl.UTF-8): Narzędzie do wyszukiwania i czyszczenia "brudów" w systemie plików |
d8c2e357 | 3 | Name: fslint |
f75725d7 | 4 | Version: 2.44 |
646bc085 | 5 | Release: 2 |
f75725d7 | 6 | License: GPL v2+ |
0c81a87a | 7 | Group: Applications/File |
d8c2e357 | 8 | Source0: http://www.pixelbeat.org/fslint/%{name}-%{version}.tar.gz |
f75725d7 | 9 | # Source0-md5: 195d0763038ffbaf268b53b94d80d7e1 |
0c81a87a TP |
10 | Source1: %{name}.desktop |
11 | Patch0: %{name}.patch | |
12 | URL: http://www.pixelbeat.org/fslint/ | |
75756b1f | 13 | BuildRequires: gettext-tools >= 0.13 |
6c7af2ac | 14 | BuildRequires: rpm-pythonprov |
0c81a87a | 15 | BuildRequires: sed >= 4.0 |
d8c2e357 ER |
16 | Requires: coreutils |
17 | Requires: cpio | |
18 | Requires: gettext >= 0.11.1 | |
646bc085 | 19 | Requires: python-modules |
d8c2e357 ER |
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 | 41 | |
f75725d7 JB |
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 | ||
d8c2e357 | 62 | %package gui |
f75725d7 JB |
63 | Summary: GUI for fslint |
64 | Summary(pl.UTF-8): Graficzny interfejs użytkownika do fslinta | |
d8c2e357 | 65 | Group: X11/Applications |
f75725d7 | 66 | Requires: %{name} = %{version}-%{release} |
d8c2e357 | 67 | Requires: python >= 2.0 |
f75725d7 JB |
68 | Requires: python-pygtk-glade >= 2:2 |
69 | Requires: python-pygtk-gtk >= 2:2 | |
d8c2e357 ER |
70 | |
71 | %description gui | |
0c81a87a TP |
72 | fslint is a toolkit to find all redundant disk usage (for example |
73 | duplicated files). | |
d8c2e357 ER |
74 | |
75 | This package includes the GUI. | |
76 | ||
f75725d7 JB |
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 | ||
d8c2e357 ER |
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 | ||
590cfbc7 TP |
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 | |
80d25a8c TP |
100 | %{__perl} -pi -e 's|liblocation\+"/fslint/|liblocation+"/|' fslint-gui |
101 | %{__perl} -pi -e 's|"./find|"find|' fslint-gui | |
590cfbc7 | 102 | |
d8c2e357 ER |
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} | |
646bc085 | 109 | install -p fslint-gui $RPM_BUILD_ROOT%{_bindir}/fslint-gui |
d8c2e357 | 110 | |
646bc085 ER |
111 | cp -p fslint.glade $RPM_BUILD_ROOT%{_datadir}/fslint |
112 | cp -p fslint_icon.png $RPM_BUILD_ROOT%{_datadir}/fslint | |
590cfbc7 | 113 | ln -s %{_datadir}/fslint/fslint_icon.png $RPM_BUILD_ROOT%{_pixmapsdir} |
646bc085 | 114 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
d8c2e357 ER |
115 | |
116 | cp -a fslint/{find??,fslint,zipdir} $RPM_BUILD_ROOT%{_bindir} | |
117 | cp -a fslint/{fstool,supprt} $RPM_BUILD_ROOT%{_datadir}/fslint | |
118 | ||
646bc085 | 119 | cp -p man/fslint-gui.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
d8c2e357 ER |
120 | |
121 | %{__make} -C po install \ | |
122 | DESTDIR=$RPM_BUILD_ROOT | |
0c81a87a | 123 | |
d8c2e357 ER |
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 | |
fd6c5285 | 162 | %attr(755,root,root) %{_datadir}/fslint/supprt/rmlint/fixdup |
d8c2e357 ER |
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 | |
590cfbc7 | 174 | %{_pixmapsdir}/fslint_icon.png |