/[smecontribs]/rpms/freedup/contribs9/freedup.spec
ViewVC logotype

Contents of /rpms/freedup/contribs9/freedup.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sun Mar 6 06:27:40 2016 UTC (8 years, 8 months ago) by unnilennium
Branch: MAIN
CVS Tags: freedup-1_5_3-1_el6_sme, HEAD
Initial import

1 %define name freedup
2 %define version 1.5.3
3 %define release 1
4 %define real_version 1.5-3
5 %define _binaries_in_noarch_packages_terminate_build 0
6 Name: %{name}
7 Summary: Links substantially identical, duplicate files to save file system space.
8 Version: %{version}
9 Release: %{release}%{?dist}
10 License: GPL
11 Packager: AN <AN@freedup.org>
12 Group: Applications/File
13 Source: http://%{name}.org/%{name}-%{real_version}-src.tar.bz2
14 Vendor: AN <AN@freedup.org>
15 URL: http://%{name}.org/
16 BuildRoot: /var/tmp/%{name}-%{real_version}-buildroot
17
18
19 %description
20 Freedup eliminates duplicate files by linking them, and thus reduces the amount
21 of used disk space within one or more file systems. By default, hardlinks are
22 used on a single device, symbolic links when the devices differ. A set of
23 options allows you to modify the methods of file comparison, the hash functions,
24 the linking behavior, and the reporting style. You may use batch or interactive
25 mode. Freedup usually only considers identical files, but when comparing audio
26 or graphics files, you may elect to ignore the tags. Multimedia files often are
27 a good target for deduplication.
28
29
30 %prep
31 rm -rf ${RPM_BUILD_ROOT}
32
33 %setup -n %{name}-1.5
34
35
36 %install
37
38 rm -rf $RPM_BUILD_ROOT
39 INSTALLDIR=/usr/bin
40 MANPAGEDIR=%{_mandir}
41 install -d $RPM_BUILD_ROOT/$INSTALLDIR
42 install -s -p -m 755 freedup $RPM_BUILD_ROOT/$INSTALLDIR/freedup
43 install -d $RPM_BUILD_ROOT/$MANPAGEDIR/man1
44 gzip -c freedup.1>freedup.1.gz
45 install -p -m 644 freedup.1.gz $RPM_BUILD_ROOT/$MANPAGEDIR/man1/freedup.1.gz
46
47
48 %clean
49
50
51 rm -rf $RPM_BUILD_ROOT
52 mkdir -p $RPM_BUILD_ROOT/usr/bin
53 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
54
55 %pre
56 [ -f /etc/services ] && $(grep -q freedup /etc/services) || echo -e "freedup\t\t31166/tcp" >>//etc/services
57 [ -d /etc/xinetd.d -a ! -f /etc/xinetd.d/freedup ] && echo "service freedup\n{\n\tport\t= 31166\n\tsocket_type\t= stream\n\tprotocol\t= tcp\n\twait\t= no\n\tuser\t= root\n\tdisable\t= yes\n\tserver\t= /home/aneuper/src/freedup/freedup\n\tserver_args\t= -W\n}" >>/etc/xinetd.d/freedup && chmod 644 /etc/xinetd.d/freedup
58 [ -f /etc/inetd.conf ] && $(grep -q freedup /etc/inetd.conf) || echo "#freedup stream tcp nowait root /usr/bin/freedup freedup -W" >>/etc/inetd.conf
59
60
61 %preun
62 rm /etc/xinetd.d/freedup
63 # leave entry in /etc/services
64 # leave entry in /etc/inetd.conf
65
66 %files
67 %defattr(-,root,root)
68 %attr(755,root,root) /usr/bin/freedup
69 %doc {TODO,README,README.SHA,COPYING,verify,ChangeLog,demo,html}
70 %{_mandir}/man1/freedup.1.gz
71
72
73 %changelog
74 * Wed Jan 21 2015 stephane de labrusse <stephdl@de-labrusse.fr> 1.5-3.sme
75 - First release to sme9
76
77 + gui defaults to off, activate and deactivate using "make webon/weboff/state"
78
79 * Thu Mar 06 2008 devel (AN) <AN@freedup.org>
80 - Changes to version 1.5-3
81 + the features provided with option -W are for testing purpose only
82 + basic web interface offered (reply not accepted yet)
83 + changed invisible default option for sorting criteria to '.'
84 - Enhancement in version 1.5-3
85 + automated installation routine for xinetd and inetd
86 + deinstall script for xinetd only
87 + added html pages to rpm package as well
88 - Bugfixes in version 1.5-3
89 + removed a leftover debug command
90
91 * Sun Mar 02 2008 devel (AN) <AN@freedup.org>
92 - Enhancement in version 1.5-2
93 + enable freedup to restore directory time stamp after linking (option -T)
94 + added usage help, man page and syntax web page for option -T
95 + extended test3 in Makefile.tests to check new option -T
96 + streamlined Makefile.tests using for-loops and 'test -ef'(25% reduced size)
97 + Makefile.tests now needs gnu 'test' facility '[' to work correctly
98 - Bugfixes in version 1.5-2
99 + corrected date in copyright notice for -V
100 + added '+' and '-' to -k option in online syntax help
101
102 * Sat Feb 02 2008 devel (AN) <AN@freedup.org>
103 - Enhancement in version 1.5-1
104 + file trees are now scanned by an internal routine, find is called on demand
105 + output during tree scanning changes every 1000 files (i.e. find activity)
106 + updated man page to show how to use find instead of the internal routine
107 + testing did not proof performance gain when using internal routine
108 - Changes in version 1.5-1
109 + first helper routines for web-based GUI
110 + corrected and completed copyright information
111 - Bugfixes in version 1.5-1
112 + minor corrections to freedup man page
113
114 * Mon Dec 31 2007 devel (AN) <AN@freedup.org>
115 - Enhancement in version 1.4-4
116 + report deleted files and the space saved (avail in interactive mode only)
117 + link directions '+'/'-' allow to select source by size (extra style only)
118 - Bugfixes in version 1.4-4
119 + Makefile copies so that rpm cygwin executable is executable under cygwin
120 + initialize all *source variables in dupinfo_entry() to avoid segfaults
121 + do not offer linking when files already linked in interactive mode (w/o -H)
122 + report linked files and bytes in interactive mode for extra styles
123
124 * Fri Dec 28 2007 devel (AN) <AN@freedup.org>
125 - Enhancement in version 1.4-3
126 + one common routine to open config file (simplifies later extensions)
127 + added routine to print existing environments in help (for a test period)
128 - Bugfixes in version 1.4-3
129 + use character instead of ascii code for '-k' in config file
130 + finally fixed missing initialisation to avoid failing (n+m) assertion
131 + if mp4 module is applied on mp3 files no more infinite loops should occur
132
133 * Mon Dec 24 2007 devel (AN) <AN@freedup.org>
134 - Enhancement in version 1.4-2
135 + there are no more restrictions on the number of identical files
136 + added '-H' for the same use as in fdupes: show hardlinked files too
137 + added man page description for '-k' and '-H'
138 - Bugfixes in version 1.4-2
139 + improved test routine for MP3 and JPG Mix
140 + added new line before printing statistics
141 + stop printing interactive selection list, when there are no more letters
142
143 * Sat Dec 21 2007 devel (AN) <AN@freedup.org>
144 - Enhancement in version 1.4-1
145 + '-k' option changed and recognized key pattern (same key as interactive)
146 + '-ni' now reports reliable predictions on linked files and bytes
147 + '-n' is reported (and indicated) to report to much for multiple links.
148 + options '-qin' (add '-q') now print file clusters like "fdupes -r"
149 + erased code that was not active anymore
150 + reduction of qsort calls gave more performance which ate up more lstat()s
151 - Bugfixes in version 1.4-1
152 + '--timediff' is only set to 0 if '--sametime' is disabled
153 + fixed algorithm stability problem, i.e. one qsort run is now sufficient.
154 - New in version 1.3-2
155 + ability set a mask for file permissions if 'same' permission is desired.
156 + group commands in interactive mode
157 - '@' suggests to link all files to entry with maximum link count
158 - '#' suggests to link all files to first entry given on command line
159 - '<' suggests to link all files to the oldest identical entry
160 - '>' suggests to link all files to the newest identical entry
161 + '-k' forces link source by sequence of file naming (compare with '@' above)
162 - Enhancement in version 1.3-2
163 + changed default to NOT to use hash functions
164 + writing also given directories to config file (w/o probing for existance)
165 + first preparations for a netbsd translation
166 - Bugfixes in version 1.3-2
167 + findoptions need not to be defined for reading directories from config file
168 + assertion in compare_..._hash moved into parenthesis where it belongs to.
169
170 * Sat Dec 15 2007 devel (AN) <AN@freedup.org>
171 - New in version 1.3-1
172 + '-#' now requires an integer option (watch out for difficulties!)
173 + advanced hash sum calculation is now usable (nearly no penalty, but gain)
174 + freedup.org is the new website (the old address remains valid)
175 - Enhancement in version 1.3-1
176 + new algorithm calculates internal hash sum during file comparison
177 + defaults to new hash algorithm (use --hash 1 to switch to old behaviour)
178 + more detailed man page sections on -e, -# and -o.
179 - Bugfixes in version 1.3-1
180 + hash sum counter counted double for internal hash algorithm
181
182 * Mon Dec 10 2007 devel (AN) <AN@freedup.org>
183 - New in version 1.2-1
184 + Easy storeing & loading of options using environments (not: -Vhaq? )
185 Options given before are overwritten if present in that environment
186 + option -b to set basedir (may be useful with environments)
187 + option -D allows to set a maximum time difference
188 - Enhancement in version 1.2-1
189 + long options are offered
190 + help screen adopted
191 + added inactive, buggy code for delayed hash calculation ("hi performance")
192 + a test for -D was introduced
193 - Bugfixes in version 1.2-1
194 + ignore failed calls of gethash() (e.g. due to file removal) [rare]
195 + expect that ferror() may be set in case of feof() [not reported yet]
196 + qsort() now gets the difference in contents for files of the same size.[nry]
197
198 * Thu Dec 06 2007 devel (AN) <AN@freedup.org>
199 - Enhancement in version 1.1-3
200 + extended test6 to check for symlinking of full and partial filename
201 + description in spec file renewed
202 - Bugfixes in version 1.1-3
203 + corrected symlinking files with partial filename to those with full
204 + added rules to have html files for rpm with cygwin where they are expected
205
206 * Sun Dec 02 2007 devel (AN) <AN@freedup.org>
207 - Enhancement in version 1.1-2
208 + allow one more start token 'moov' for mp4 style (mov-Suffix)
209 + added -x and -e switch with explanation to man page
210 - Bugfixes in version 1.1-2
211 + corrected MANPAGE definition in spec file for rpm with cygwin
212 + replaced dependencies in Makefile.tests to ensure correct linking
213
214 * Wed Nov 28 2007 devel (AN) <AN@freedup.org>
215 - New in version 1.1-1
216 + header/tail skipping and tag skipping introduced for extra modules
217 + extra modules for mp3, mp4, mpc, ogg and jpeg tags (still beta testing)
218 + the extra module "auto" selects extra modules by their magic automatically
219 + enabled extra modules inhibit external hashing functions
220 + test11 was added to check the extra style modules mp3, mp4 and jpg
221 + extra modules allow to be compiled as individual testing utilities
222 - Enhancement in version 1.1-1
223 + print only available hashmodes and extramodules with help
224 + now using defines for internal hash method (simplifies replacement)
225 + a message is printed if root privileges were missing during tests
226 + using a size that may differ from the file size
227 - Bugfixes in version 1.1-1
228 + test10 now recognizes non-default sort order
229 + correction to help/usage message
230 + added missing stop conditions to byte-by-byte-comparison
231
232 * Sat Nov 10 2007 devel (AN) <AN@freedup.org>
233 - Enhancement in version 1.0-5
234 + now compiles unchanged with Cygwin and Linux
235 + Makefiles were modified to simplify testing and compilation
236 + removed conversion untility "encap"
237 + ignore missing "html2text"
238 + generate a readable plain text README from README.html
239 + more file groups in the header section of Makefile
240 + sha1.c is now taken from and referenced to original source.
241 + added COLLATERAL section to man page
242 + added verification program to distribution
243
244 * Wed Nov 07 2007 devel (AN) <AN@freedup.org>
245 - Enhancement in version 1.0-4
246 + report version and copyright on '-V'
247 + included Allan Saddis SHA1 implementation as found in duff
248 + added more hash functions to default list
249 + use '-t' to select certain hash methods manually
250 + internal hash function is default, external ones require options
251 + introduced colour into Makefile testing routines
252 + Makefile relies on GNU make to auto-include OS specific settings
253 + added rules and other parts to generate debian packages
254 - Bugfixes in version 1.0-4
255 + errors on hash function testing are easier to understand now.
256 + errors on hash function selection are reported only with '-v'
257 + full special character support if internal hash methods chosen
258 + more recent list of files for tarball, clean and distclean
259
260 * Sat Nov 03 2007 devel (AN) <AN@freedup.org>
261 - Enhancement in version 1.0-3
262 + Hash Algorithms now are included and work for cygwin as well
263 + improved interactive dialogues
264 + build symbolic link path in shortest distance to given target path
265 - Bugfixes in version 1.0-3
266 + Successful testing with AIX 5.3
267 + do not stop interactive mode if setting the terminal discipline fails
268 + More intense Testing of comparison function (Makefile)
269 + More reliable testing of interactive mode and relative Path (Makefile)
270 + removed DANGER message due to program improvements
271 + special character support if external hash methods are disabled (-#)
272
273 * Wed Oct 31 2007 devel (AN) <AN@freedup.org>
274 - Enhancement in version 1.0-2
275 + runtime check for one out of three usable external hash methods (SHA1, MD5, SUM)
276 - Bugfixes in version 1.0-2
277 + corrected comparison length when comparing by memcmp() / failed with cygwin
278 + renamed finfo structure to frdinfo to avoid collisions with AIX
279 + added ALLPERMS define for non-Linux systems
280 + added Makefile define for FREEDUPEXE, since cygwin fails on ./freedup
281 + added Makefile define for echo with backslash translation
282 + added Makefile check for valid HASH executables in freedup.h
283 + print "ln -f <file1> <file2>" , so you may execute it without changes
284
285 * Sat Oct 27 2007 devel (AN) <AN@freedup.org>
286 - Enhancements in version 1.0
287 + new interactive mode with full choice list
288 + separated linking task into explicit function
289 + option -i asks for manual replacement selections
290 + options -in print file clusters like "fdupes -r"
291 + partial code clean up
292 - Bugfixes
293 + avoid name collisions by generating temporary filenames
294 + always check files for existance to avoid early termination
295 + previously checked that permissions differ (instead of being identical)
296 + previously checked that groups differ (instead of being identical)
297 + previously checked that users differ (instead of being identical)
298 + previously checked that times differ (instead of being identical)
299
300 * Tue Oct 09 2007 devel (AN) <AN@freedup.org>
301 - Enhancements in version 0.9 freedup.c
302 + added interactive mode (option -i) [this option is still beta]
303 + added delete selections in interactive mode
304 + added html documentation to archive
305 + added tolerance to unavailable files on fopen() [Rel.2]
306 - Enhancements in version 0.9 Makefile
307 + added definitions: INSTALLDIR, MANPAGEDIR, etc
308 + added targets: tarball, install, clean, distclean
309 + version and release are now defined in freedup.spec only
310 + added test that tries all numeric options during interaction [Rel.2]
311 - Enhancements in version 0.9 freedup.spec
312 + use install instead of cp
313
314 * Thu Oct 04 2007 devel (AN) <AN@freedup.org>
315 - Enhancements in version 0.8
316 + avoid linking empty files (new option -0)
317 + avoid printing any information (new option -q)
318 + updated man page to reflect all options
319 + added test7 to check for correct handling of empty files
320 - Bugfixes
321 + use mode instead of size to determine file type
322 + starting with release 1 (not with 0)
323 + added aditional file to distribution
324
325 * Tue Oct 02 2007 devel (AN) <AN@freedup.org>
326 - Enhancements in version 0.7
327 + compiles under cygwin (no hash support with cygwin)
328 + works for NTFS file systems (at least test cases worked)
329
330 * Fri Sep 21 2007 devel (AN) <AN@freedup.org>
331 - Enhancements in version 0.6
332 + MD5 hash scanning may be disabled by options now
333
334 * Wed Sep 12 2007 devel (AN) <AN@freedup.org>
335 - Enhancements in version 0.5
336 + exclude non-regular files from investigation using lstat
337 + error handling for OS functions now with messages instead of asserts
338 + corrected and completed some text messages
339 + Tested 400000 multimedia files in upto 20 trees
340
341 * Wed Aug 29 2007 devel (AN) <AN@freedup.org>
342 - Enhancements in version 0.4
343 + now a single run should be sufficient in most cases
344 + added -w to force symlinks instead of hardlinks
345 + added -l to allow only hardlinks and no symlinks
346 + first test comparing results for different trees
347 + more structured web page
348 - Bugfixes
349 + no more overwriting of previously scanned trees
350 + comparision return values are not zero if additional tests fail
351 + completed bug fixes from version 0.2
352
353 * Fri Aug 24 2007 devel (AN) <AN@freedup.org>
354 - Enhancements in version 0.3
355 + splitted user and group comparison into separate tests
356 - Bugfixes
357 + argument position is now less important than existing link count
358 This was needed to avoid alternating link replacements
359 + stop when number of changes gets constant :-(healing symptoms)
360 + do not reset file counter when deciding to realloc()
361
362 * Tue Aug 21 2007 devel (AN) <AN@freedup.org>
363 - Enhancements in version 0.2
364 + call "find" only once
365 + allow input from stdin
366 + some code cleaning
367 + added man page
368 + added more tests
369 + improved Makefile
370 - Bugfixes
371 + added -a to getopt string
372 + report correct version
373 + corrected basename macro
374
375 * Thu Aug 16 2007 devel (AN) <AN@freedup.org>
376 - Initial Release
377

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed