Package findutils: Specfile

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
Name: findutils
Version: 4.9.0.0.9.e5c6
Release: alt2.0.port

Summary: The GNU versions of find utilities (find and xargs)
License: GPLv3+
Group: File tools
Url: https://www.gnu.org/software/findutils/

# git://git.altlinux.org/gears/f/findutils.git
Source: %name-%version-%release.tar

%def_disable bootstrap
%if_enabled bootstrap
%def_disable selinux
%def_disable check
%else
%def_enable selinux
%endif

BuildRequires: gnulib >= 0.1.5153.6ef3d7
BuildRequires: glibc-devel-static
BuildRequires: makeinfo
%{?_enable_selinux:BuildRequires: libselinux-devel}
%{?!_without_check:%{?!_disable_check:BuildRequires: dejagnu}}

%package -n find-static
Summary: Static version of the GNU find
Group: File tools
Requires: %name = %version-%release

%description
This package contains programs which will help you locate files on
your system:
+ the find utility searches through a hierarchy of directories
  looking for files which match a certain set of criteria
  (such as a filename pattern);
+ the xargs utility builds and executes command lines from standard
  input arguments (usually lists of file names generated by the find
  command).

%description -n find-static
This package contains statically linked version of the GNU find program.

%prep
%setup -n %name-%version-%release

# Build scripts expect to find findutils version in this file.
echo -n %version > .tarball-version

# git isn't needed for build.
sed -i '/^git[[:space:]]/d' bootstrap.conf

# Do not build locate.
sed -i 's/ locate / /' Makefile*

echo '@set LOCATE_DB /var/lib/locate/locatedb' >locate/dblocation.texi

gzip -9kn NEWS

%build
./bootstrap --skip-po --gnulib-srcdir=%_datadir/gnulib

%define _configure_script ../configure
mkdir dynamic static

pushd dynamic
mkdir locate
echo '@set LOCATE_DB /var/lib/locate/locatedb' >locate/dblocation.texi
# Since find and xargs are not threaded executables,
# configure gnulib with --disable-threads.
%configure --disable-threads --bindir=/bin \
	%{?!_enable_selinux:--without-selinux} \
	%nil
%make_build MAKEINFOFLAGS=--no-split
popd

pushd static
%configure --disable-nls --disable-threads --without-selinux
# Do not build xargs and doc.
sed -i -e 's/ xargs / /' -e 's/ doc / /' Makefile*
%make_build
rm find/find
make -C find find LDFLAGS=-static
popd

%install
%makeinstall_std -C dynamic
mkdir -p %buildroot%_bindir
for n in find xargs; do
	ln -s "../../bin/$n" %buildroot%_bindir/
done

# Install find.static
install -pm755 static/find/find %buildroot%_bindir/find.static

%find_lang %name

%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
# section [ 3] '.rela.plt': relocation 0: invalid symbol index
# ...
# section [ 3] '.rela.plt': relocation 34: invalid symbol index
# verify-elf: ERROR: ./usr/bin/find.static: eu-elflint failed
%set_verify_elf_method strict,lint=relaxed

%check
%make_build -k check -C dynamic
env PATH="%buildroot/bin:$PATH" \
%make_build -k check -C static

%files -f %name.lang
/bin/find
/bin/xargs
%_bindir/find
%_bindir/xargs
%_mandir/man?/find*
%_mandir/man?/xargs*
%_infodir/*.info*
%doc AUTHORS NEWS.gz README THANKS

%files -n find-static
%_bindir/find.static

%changelog
* Thu Apr 06 2023 Alexey Sheplyakov <asheplyakov@altlinux.org> 4.9.0.0.9.e5c6-alt2.0.port
- spec: simplified the bootstrap sequence.

* Mon Apr 25 2022 Dmitry V. Levin <ldv@altlinux.org> 4.9.0.0.9.e5c6-alt1
- findutils: v4.8.0-10-g11576f4e -> v4.9.0-9-ge5c697ec.
- gnulib BR: v0.1-4669-gfed6ffdbb -> v0.1-5153-g6ef3d78333.

* Sun Jun 06 2021 Dmitry V. Levin <ldv@altlinux.org> 4.8.0.0.10.1157-alt1
- findutils: v4.8.0-5-gcaa03867 -> v4.8.0-10-g11576f4e.
- gnulib BR: v0.1-4349-g8ed1d1f9f -> v0.1-4669-gfed6ffdbb.

* Mon Apr 12 2021 Dmitry V. Levin <ldv@altlinux.org> 4.8.0.0.5.caa0-alt1
- findutils: v4.6.0-204-gb23a2693 -> v4.8.0-5-gcaa03867.
- gnulib BR: v0.1-2305-g95c96b6dd -> v0.1-4349-g8ed1d1f9f.

* Wed Dec 26 2018 Dmitry V. Levin <ldv@altlinux.org> 4.6.0.0.204.b23a2-alt1
- findutils: v4.6.0-99-g11a050c -> v4.6.0-204-gb23a2693
- gnulib: v0.1-1209-g24b3216 -> v0.1-2305-g95c96b6dd.

* Tue Mar 21 2017 Dmitry V. Levin <ldv@altlinux.org> 4.6.0.0.99.11a05-alt1
- findutils: v4.6 -> v4.6.0-99-g11a050c.
- gnulib: v0.1-585-g2fda85e -> v0.1-1209-g24b3216.

* Mon Dec 28 2015 Dmitry V. Levin <ldv@altlinux.org> 4.6.0-alt1
- 4.5.19 -> 4.6.0.

* Mon Dec 28 2015 Dmitry V. Levin <ldv@altlinux.org> 4.5.19-alt1
- Updated to v4.5.19.

* Fri Dec 18 2015 Dmitry V. Levin <ldv@altlinux.org> 4.5.15-alt1
- Updated to v4.5.15.

* Wed Oct 07 2015 Dmitry V. Levin <ldv@altlinux.org> 4.5.14.0.33.c631-alt1
- Built with gnulib v0.1-585-g2fda85e.

* Fri Jun 12 2015 Dmitry V. Levin <ldv@altlinux.org> 4.5.14-alt1
- Updated to v4.5.14-33-gc631c8e.
- Built with gnulib v0.1-58-g0f3a662.

* Mon Jan 06 2014 Dmitry V. Levin <ldv@altlinux.org> 4.5.12-alt3
- Updated to v4.5.12-15-g603ccd8.
- Built with gnulib v0.1-58-g0f3a662.

* Mon Oct 28 2013 Dmitry V. Levin <ldv@altlinux.org> 4.5.12-alt2
- Updated to v4.5.12-8-gbd0d840.
- Built with gnulib v0.0-8061-g5191b35.

* Mon Sep 23 2013 Dmitry V. Levin <ldv@altlinux.org> 4.5.12-alt1
- Updated to v4.5.12.

* Wed May 15 2013 Dmitry V. Levin <ldv@altlinux.org> 4.5.11-alt3
- find: fixed potential buffer overflow in -execdir and -okdir.
- Updated to v4.5.11-30-g3d13be5.
- Built with gnulib v0.0-7902-g92f3a4c.

* Mon Apr 08 2013 Dmitry V. Levin <ldv@altlinux.org> 4.5.11-alt2
- Updated to v4.5.11-19-g16e147b.
- Built with gnulib v0.0-7901-g076ac82.

* Sat Feb 02 2013 Dmitry V. Levin <ldv@altlinux.org> 4.5.11-alt1
- Updated to v4.5.11.

* Sat Dec 15 2012 Dmitry V. Levin <ldv@altlinux.org> 4.5.10-alt5
- Updated to v4.5.10-109-gbf5f83a.

* Sun Nov 18 2012 Dmitry V. Levin <ldv@altlinux.org> 4.5.10-alt4
- Fixed build with fresh gnulib.
- Updated to v4.5.10-106-g7cef053.
- Built with gnulib v0.0-7696-gfd9f1ac.

* Fri Aug 24 2012 Dmitry V. Levin <ldv@altlinux.org> 4.5.10-alt3
- Updated documentation about regular expression syntax dialects
  supported by find.
- Built with gnulib v0.0-7591-g898f143.

* Sun Aug 05 2012 Dmitry V. Levin <ldv@altlinux.org> 4.5.10-alt2
- Updated to v4.5.10-100-g003c8e6.
- Built with gnulib v0.0-7557-gee60576.

* Tue Jun 28 2011 Dmitry V. Levin <ldv@altlinux.org> 4.5.10-alt1
- find: updated to v4.5.10-86-g41ebd53.
- gnulib: updated to v0.0-5838-g414111a.

* Wed Aug 18 2010 Dmitry V. Levin <ldv@altlinux.org> 4.5.9-alt1
- find: updated to v4.5.9-18-g107f84e.
- gnulib: updated to v0.0-3865-g09443c2.
- Enabled SELinux support for find and xargs.

* Wed Sep 09 2009 Dmitry V. Levin <ldv@altlinux.org> 4.4.2-alt2
- Moved "make check" to %%check section.

* Sat Jun 06 2009 Dmitry V. Levin <ldv@altlinux.org> 4.4.2-alt1
- Updated to 4.4.2.

* Tue Oct 21 2008 Dmitry V. Levin <ldv@altlinux.org> 4.2.33-alt2
- xargs: Fixed invalid assertion failure.

* Sat Mar 08 2008 Dmitry V. Levin <ldv@altlinux.org> 4.2.33-alt1
- Updated to 4.2.33 (fixes #9419).
- Dropped manually added provides and prereqs.

* Mon Nov 19 2007 Dmitry V. Levin <ldv@altlinux.org> 4.2.31-alt1
- Updated to 4.2.31.

* Sun Nov 26 2006 Dmitry V. Levin <ldv@altlinux.org> 4.2.29-alt1
- Updated to 4.2.29.

* Thu Aug 10 2006 Dmitry V. Levin <ldv@altlinux.org> 4.2.28-alt1
- Updated to 4.2.28.

* Thu Dec 08 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.27-alt2
- Fixed few harmless compilation warnings.

* Wed Dec 07 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.27-alt1
- Updated to 4.2.27.

* Tue Nov 22 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.26-alt1
- Updated to 4.2.26 with fixes from CVS.

* Wed Nov 16 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.25-alt2
- Backported savedir() fix from gnulib CVS.

* Mon Sep 05 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.25-alt1
- Updated to 4.2.25.

* Thu Aug 18 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.24-alt1
- Updated to 4.2.24.
- Removed merged upstream patches.

* Mon Jun 20 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.23-alt1
- Updated to 4.2.23.
- Removed merged upstream patches.

* Thu Jun 16 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.22-alt2
- Fixed few harmless compilation warnings.

* Mon Jun 13 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.22-alt1
- Updated to 4.2.22.

* Fri Jun 10 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.21-alt2
- Rediffed patches.

* Wed Jun 08 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.21-alt1
- Updated to 4.2.21.
- Updated russian translation.

* Tue May 17 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.21-alt0.1
- Updated to cvs cnapshot 200505162154,
  with xargs changes merged upstream.

* Fri May 13 2005 ALT QA Team Robot <qa-robot@altlinux.org> 4.2.20-alt2.1
- Rebuilt with glibc-devel-static-2.3.5-alt2.

* Tue May 10 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.20-alt2
- Rebuilt with glibc-2.3.5-alt1.

* Thu Mar 17 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.20-alt1
- Updated to 4.2.20.

* Tue Mar 08 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.19-alt1
- Updated to 4.2.19.

* Thu Feb 24 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.18-alt3
- Updated to cvs snapshot 20050224.
- Removed already merged upstream patches.

* Tue Feb 22 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.18-alt2
- Ensure that all translations are generated during the build.
- Updated russian translation.
- Fixed check_nofollow bug.
- Fixed new compilation warnings.

* Wed Feb 16 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.18-alt1
- Updated to 4.2.18.

* Tue Feb 08 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.17-alt1
- Updated to 4.2.17.
- Removed already merged upstream patches.

* Mon Feb 07 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.16-alt2
- Applied fix for Savannah bug #11873.

* Sun Feb 06 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.16-alt1
- Updated to 4.2.16.
- Updated alt-find-execdir-okdir patch, to fix new regression
  introduced by upstream.
- Merged upstream patches:
  alt-warnings
  alt-findlib.m4
  alt-subfs
- Optimized process_top_path fix introduced in this version.
- Applied upstream fix for "xargs -i -s" problem,
  added testcase for this issue (closes #6046).

* Mon Jan 31 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.15-alt2
- Fixed -execdir/-okdir regression introduced by upstream.

* Mon Jan 31 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.15-alt1
- Updated to 4.2.15.
- Updated alt-find-execdir-okdir patch, since its most essential
  part was merged to findutils-4.2.12.
- Implemented comprehensive testsuite for xargs and fixed all
  bugs uncovered by the new testsuite.
- Enabled find and xargs autotesting by default.
- Updated russian translation.

* Sat Jan 08 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.11-alt3
- Applied fix for Savannah bug #11517.

* Thu Jan 06 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.11-alt2
- Applied fix for Savannah bug #11495.

* Tue Jan 04 2005 Dmitry V. Levin <ldv@altlinux.org> 4.2.11-alt1
- Updated to 4.2.11.
- Updated patches.
- Updated russian translation.

* Thu Dec 09 2004 Dmitry V. Levin <ldv@altlinux.org> 4.2.10-alt1
- Updated to 4.2.10.
- Updated russian translation.
- Merged upstream patches:
  alt-find-delete-no_default_print
  alt-configure
- Updated patches:
  alt-find-execdir-okdir
  alt-ru.po
- Fixed new compilation warnings, added subfs support.

* Sun Nov 21 2004 Dmitry V. Levin <ldv@altlinux.org> 4.2.5-alt2
- Fixed i18n support which was accidentally disabled in 4.2.5.
- Updated russian translation.

* Sat Nov 20 2004 Dmitry V. Levin <ldv@altlinux.org> 4.2.5-alt1
- Updated to 4.2.5.
- Merged upstream patches:
  alt-xargs-arg_size
- Rediffed patches.

* Tue Nov 09 2004 Dmitry V. Levin <ldv@altlinux.org> 4.2.4-alt1
- Updated to 4.2.4.
- Rediffed patches.

* Sun Nov 07 2004 Dmitry V. Levin <ldv@altlinux.org> 4.2.3-alt3
- In -execdir and -okdir predicates implementation,
  prefix relative paths with "./".

* Sat Nov 06 2004 Dmitry V. Levin <ldv@altlinux.org> 4.2.3-alt2
- Changed -delete to be as silent as -exec again
  (like in 4.2.2-alt1 and before).
- Implemented -execdir and -okdir actions,
  inspired by OpenBSD's "find -execdir".

* Sun Oct 31 2004 Dmitry V. Levin <ldv@altlinux.org> 4.2.3-alt1
- Updated to 4.2.3.
- Merged upstream patches:
  alt-find-FIND_BLOCK_SIZE
  alt-GNU_SOURCE
  owl-alt-delete
  owl-alt-warnings
  rh-alt-regex

* Tue Oct 26 2004 Dmitry V. Levin <ldv@altlinux.org> 4.2.2-alt1
- Updated to 4.2.2.

* Mon Oct 18 2004 Dmitry V. Levin <ldv@altlinux.org> 4.2.1-alt1
- Updated to 4.2.1.
- Reviewed and updated patches.

* Wed Dec 17 2003 Dmitry V. Levin <ldv@altlinux.org> 4.1.20-alt2
- xargs: increased ARG_MAX limit from 20K to 64K, on popular demand.

* Sun Aug 10 2003 Dmitry V. Levin <ldv@altlinux.org> 4.1.20-alt1
- 4.1.20 (upstream changed), regenerated patches.
- Removed alt-process_dir patch.

* Thu Aug 07 2003 Dmitry V. Levin <ldv@altlinux.org> 4.1.7-alt7
- Merged rh patches:
  rh-doc
  rh-xargs-usage
  rh-xargs-i
- Merged owl patches:
  owl-alt-warnings
- Build with -Werror.
- Patched makefiles to avoid build locate subdir.
- Build statically linked version of the GNU find program
  and package it into find-static subpackage.

* Tue Sep 17 2002 Stanislav Ievlev <inger@altlinux.ru> 4.1.7-alt6
- rebuild with gcc3

* Thu Apr 11 2002 Dmitry V. Levin <ldv@altlinux.org> 4.1.7-alt5
- Remove /bin/locate and /bin/updatedb (suddenly appeared in -alt4).

* Sun Apr 07 2002 Dmitry V. Levin <ldv@altlinux.org> 4.1.7-alt4
- Reworked find/process_dir (using fchdir).
- Added "-delete" option (imported from Owl).

* Sat Jan 19 2002 Dmitry V. Levin <ldv@altlinux.org> 4.1.7-alt3
- Relocated utilities from /usr/bin to /bin.

* Thu Jan 03 2002 Stanislav Ievlev <inger@altlinux.ru> 4.1.7-alt2
- removed e2compr support, 'cause goldhead removed it from e2fsprogs.
- fixed bug #0000074

* Thu Jun 28 2001 Stanislav Ievlev <inger@altlinux.ru> 4.1.7-alt1
- 4.1.7

* Fri Nov 24 2000 Dmitry V. Levin <ldv@fandra.org> 4.1.1-ipl7mdk
- FHSification.
- Fixed texinfo documentation.

* Mon May 29 2000 Dmitry V. Levin <ldv@fandra.org> 4.1.1-ipl6mdk
- RE adaptions.

* Sat May 20 2000 Dmitry V. Levin <ldv@fandra.org>
- Merged MDK patches for alpha.

* Sun Apr  2 2000 Dmitry V. Levin <ldv@fandra.org>
- Merged RH patches.

* Thu Sep 23 1999 Dmitry V. Levin <ldv@fandra.org>
- Feature: e2compr patch.
- Fandra adaptions.

* Fri Aug 13 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com>
- 4.1.1

* Mon Apr 12 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Add the xargs patch overflow from RedHat.

* Sat Apr 10 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com>
- Mandrake adaptions
- bzip2 man/info pages
- add de locale

* Mon Feb  8 1999 Jeff Johnson <jbj@redhat.com>
- remove further updatedb remnants (#1072).

* Thu Dec 03 1998 Cristian Gafton <gafton@redhat.com>
- added patch for glibc21

* Mon Nov 16 1998 Erik Troan <ewt@redhat.com>
- removed locate stuff (as we now ship slocate)

* Wed Jun 10 1998 Erik Troan <ewt@redhat.com>
- updated updatedb cron script to not look for $TMPNAME.n (which was
  a relic anyway)
- added -b parameters to all of the patches

* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Mon Mar 09 1998 Michael K. Johnson <johnsonm@redhat.com>
- make updatedb.cron use mktemp correctly
- make updatedb use mktemp

* Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com>
- nobody should own tmpfile
- ignore /net

* Wed Nov 05 1997 Michael K. Johnson <johnsonm@redhat.com>
- made updatedb.cron do a better job of cleaning up after itself.

* Tue Oct 28 1997 Donald Barnes <djb@redhat.com>
- fixed 64 bit-ism in getline.c, patch tacked on to end of glibc one

* Thu Oct 23 1997 Erik Troan <ewt@redhat.com>
- added patch for glibc 2.1

* Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
- added BuildRoot support

* Tue Oct 14 1997 Michael K. Johnson <johnsonm@redhat.com>
- made updatedb.cron work even if "nobody" can't read /root
- use mktemp in updatedb.cron

* Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
- added missing info pages
- uses install-info

* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
- built with glibc

* Mon Apr 21 1997 Michael K. Johnson <johnsonm@redhat.com>
- fixed updatedb.cron