-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutil-linux.spec
More file actions
2954 lines (2627 loc) · 96.6 KB
/
util-linux.spec
File metadata and controls
2954 lines (2627 loc) · 96.6 KB
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
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# TODO
# - remote chfn/chsh (BR: libuser >= 0.58)? - but PLD uses pwdutils/shadow implementation currently
# - verify initrd tools set:
# - I've taken list from 2.21.3 package, but there was no explicit list, so
# there are probably some unneeded tools
# - chrt is not built now (because of --disable-schedutils), but it's probably not needed
# - fsck is not built now (because of --disable-libmount)
# - maybe we want some more now?
# - agetty: Documentation/releases/v2.32-ReleaseNotes:54: - add support for /etc/issue.d [Karel Zak]
# https://github.com/karelzak/util-linux/commit/1fc82a1360305f696dc1be6105c9c56a9ea03f52#diff-d7efd2b3dbb10e54185f001dc21d43db
#
# Conditional build:
%bcond_with initrd # initrd version
%bcond_with uClibc # link initrd version with static glibc instead of uClibc
%bcond_without dietlibc # link initrd version with dietlibc instead of uClibc
%bcond_without apidocs # API documentation for libraries
%bcond_without selinux # SELinux support
%bcond_without su # su/runuser programs
%bcond_without systemd # systemd support
%bcond_without lastlog2 # y2038 safe lastlog
%define pam_ver 1:1.1.8-5
Summary: Collection of basic system utilities for Linux
Summary(de.UTF-8): Sammlung von grundlegenden Systemdienstprogrammen für Linux
Summary(es.UTF-8): Colectánea de utilitarios básicos de sistema para Linux
Summary(fr.UTF-8): Ensemble d'utilitaires système de base pour Linux
Summary(pl.UTF-8): Zbiór podstawowych narzędzi systemowych dla Linuksa
Summary(pt_BR.UTF-8): Coletânea de utilitários básicos de sistema para Linux
Summary(ru.UTF-8): Набор базовых системных утилит для Linux
Summary(tr.UTF-8): Temel sistem araçları
Summary(uk.UTF-8): Набір базових системних утиліт для Linux
Name: util-linux
Version: 2.41.4
Release: 1
License: GPL v2+, GPL v3 (hwclock)
Group: Applications/System
# https://github.com/karelzak/util-linux (GitHub backup)
Source0: https://www.kernel.org/pub/linux/utils/util-linux/v2.41/%{name}-%{version}.tar.xz
# Source0-md5: 3a9cb8f3e1957c867d80b77b3daeb311
Source1: %{name}-non-english-man-pages.tar.bz2
# Source1-md5: 3c940c7e7fe699eaa2ddb1bffb3de2fe
Source2: login.pamd
Source3: %{name}-blockdev.init
Source4: %{name}-blockdev.sysconfig
Source6: su.pamd
Source7: su-l.pamd
Source8: runuser.pamd
Source9: runuser-l.pamd
Source12: blockdev.service
Source13: blockdev.sh
Patch0: %{name}-fdformat-ide.patch
Patch1: %{name}-fhs.patch
Patch2: %{name}-login-lastlog.patch
Patch6: %{name}-diet.patch
Patch7: %{name}-man-asciidoctor.patch
URL: https://github.com/karelzak/util-linux
BuildRequires: audit-libs-devel >= 1.0.6
BuildRequires: autoconf >= 2.64
BuildRequires: automake >= 1:1.10
BuildRequires: gettext-tools >= 0.21
# for fallocate
BuildRequires: glibc-devel >= 6:2.11
%if %{with lastlog2}
# _TIME_BITS=64
BuildRequires: glibc-devel >= 6:2.34
%endif
%if %{with apidocs}
BuildRequires: gtk-doc >= 1.10
BuildRequires: gtk-doc-automake >= 1.10
%endif
BuildRequires: libcap-ng-devel
%ifarch ppc ppc64
# for lscpu
BuildRequires: librtas-devel
%endif
%{?with_selinux:BuildRequires: libselinux-devel >= 2.5}
%{?with_selinux:BuildRequires: libsepol-devel}
BuildRequires: libtool >= 2:2.2
BuildRequires: linux-libc-headers >= 7:2.6.27
BuildRequires: ncurses-devel >= 5.0
BuildRequires: pam-devel >= %{pam_ver}
BuildRequires: pkgconfig
BuildRequires: po4a >= 0.56
BuildRequires: python3-devel
BuildRequires: python3-modules
%if %{_ver_ge %py3_ver 3.12}
BuildRequires: python3-setuptools
%endif
BuildRequires: readline-devel
BuildRequires: rpm >= 4.4.9-56
BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 1.752
BuildRequires: ruby-asciidoctor
BuildRequires: sed >= 4.0
%{?with_lastlog2:BuildRequires: sqlite3-devel >= 3}
%{?with_systemd:BuildRequires: systemd-devel >= 1:209}
BuildRequires: tar >= 1:1.22
BuildRequires: udev-devel
BuildRequires: xz
BuildRequires: zlib-devel
%if %{with initrd}
%if %{with uClibc}
BuildRequires: uClibc-static >= 2:0.9.29
%else
%if %{with dietlibc}
BuildRequires: dietlibc-static >= 2:0.32-14
%else
BuildRequires: glibc-static
%endif
%endif
%endif
Requires: libblkid%{?_isa} = %{version}-%{release}
Requires: libfdisk%{?_isa} = %{version}-%{release}
Requires: libmount%{?_isa} = %{version}-%{release}
%{?with_selinux:Requires: libselinux%{?_isa} >= 2.5}
Requires: libsmartcols%{?_isa} = %{version}-%{release}
# for uuidparse
Requires: libuuid%{?_isa} = %{version}-%{release}
Requires: pam%{?_isa} >= %{pam_ver}
Provides: eject = %{version}-%{release}
Provides: fdisk
Provides: hardlink
Provides: linux32
Provides: sparc32
Obsoletes: cramfs < 1.2
Obsoletes: eject < 2.2
Obsoletes: hardlink < 1.1
Obsoletes: ionice < 0.2
Obsoletes: linux32 < 1.1
Obsoletes: rawdevices < 2.14
Obsoletes: rfkill < 1.1
Obsoletes: schedutils < 1.4
Obsoletes: setarch < 1.8
Obsoletes: sparc32 < 1.2
Obsoletes: util-linux-chkdupexe < 2.23
Obsoletes: util-linux-ng < 2.20-1
Obsoletes: util-linux-suid < 2.9o-10
Conflicts: SysVinit-tools < 2.88-15
Conflicts: e2fsprogs < 1.41.8-5
Conflicts: rc-scripts < 0.4.9-2
Conflicts: shadow-extras < 1:4.0.3-6
%if %{with su}
Conflicts: coreutils < 8.19
%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define debugcflags -O1 -g
# for some reason known only to rpm there must be "\\|" not "\|" here
%define dietarch %(echo %{_target_cpu} | sed -e 's/i.86\\|pentium.\\|athlon/i386/;s/amd64/x86_64/;s/armv.*/arm/')
%define dietlibdir %{_prefix}/lib/dietlibc/lib-%{dietarch}
%ifarch ppc ppc64
# for dietlibc
%define filterout_ld -Wl,-z,relro
%endif
%description
util-linux contains a large variety of low-level system utilities
necessary for a functional Linux system. This includes, among other
things, configuration tools such as fdisk and system programs such as
logger.
%description -l de.UTF-8
util-linux enthält eine große Anzahl an
low-level-Systemdienstprogrammen, die für ein funktionierendes
Linux-System erforderlich sind. Dazu gehören Konfigurationstools wie
'fdisk' und Systemprogramme wie 'logger'.
%description -l es.UTF-8
util-linux contiene una gran variedad de utilitarios de sistema de
bajo nivel necesarios a un sistema Linux funcional. Esto incluye,
entre otras cosas, herramientas de configuración como fdisk y
programas de sistema como logger.
%description -l fr.UTF-8
util-linux contient une grande variété d'utilitaire système bas niveau
nécessaires au fonctionnement d'un système Linux. Cela comprend, entre
autres, les outils de configuration comme fdisk et des programmes
systèmes comme logger.
%description -l pl.UTF-8
util-linux zawiera wiele różnych, niskopoziomowych narzędzi
systemowych niezbędnych do prawidłowego działania Linuksa. W pakiecie
znajdują się między innymi narzędzia konfiguracyjne, takie jak fdisk i
programy systemowe, takie jak logger.
%description -l pt_BR.UTF-8
util-linux contém uma grande variedade de utilitários de sistema de
baixo-nível necessários para um sistema Linux funcional. Isso inclui,
entre outras coisas, ferramentas de configuração como fdisk e
programas de sistema como logger.
%description -l ru.UTF-8
Этот пакет содержит большой набор системных утилит низкого уровня,
которые необходимы для функционирования системы Linux. Он включает, в
числе прочих, инструменты конфигурации, такие как fdisk, и системные
программы, такие как logger.
%description -l tr.UTF-8
şlevsel durumdaki bir Linux sistemi için gerekli birçok alt düzey
sistem araçlarını içerir. Bunlar arasında fdisk gibi yapılandırma
uygulamaları ve logger gibi sistem programları sayılabilir.
%description -l uk.UTF-8
Цей пакет містить великий набір системних утиліт низького рівня, які
необхідні для функціонування системи Linux. Він містить, окрім інших,
конфігураційні інструменти (такі як fdisk) та системні програми (такі
як logger).
%package -n blockdev
Summary: Support for blockdev
Summary(pl.UTF-8): Obsługa blockdev
License: GPL v2+
Group: Applications/System
Requires(post,preun): /sbin/chkconfig
Requires(post,preun,postun): systemd-units >= 38
Requires: coreutils
Requires: rc-scripts >= 0.4.3.0
Requires: systemd-units >= 38
%description -n blockdev
The utility blockdev allows one to call block device ioctls from the
command line. This package also includes initscript to set blockdev
parameters at system startup.
%description -n blockdev -l pl.UTF-8
Narzędzie blockdev pozwala na wywołania ioctl dla urządzeń blokowych z
linii poleceń. Ten pakiet zawiera także skrypt inicjalizacyjny do
ustawiania parametrów blockdev przy starcie systemu.
%package -n losetup
Summary: Programs for setting up and configuring loopback devices
Summary(de.UTF-8): Programme zum Einrichten und Konfigurieren von Loopback-Geräten
Summary(fr.UTF-8): Programmes pour mettre en place et configurer les loopback
Summary(pl.UTF-8): Program do konfiguracji urządzenia blokowego loopback
Summary(ru.UTF-8): Программы для настройки loopback-устройств
Summary(tr.UTF-8): Yerel-çevrim aygıtlarının kurulması ve ayarlanması için programlar
Summary(uk.UTF-8): Програми для конфігурації loopback-пристроїв
License: GPL v2+
Group: Applications/System
Requires: libsmartcols%{?_isa} = %{version}-%{release}
%description -n losetup
Linux supports a special block device called the loopback device,
which maps a normal file onto a virtual block device. This package
contains programs for setting up and removing the mapping between
files and loopback devices.
Block loopback devices should not be confused with the networking
loopback device, which is configured with the normal ifconfig command.
%description -n losetup -l de.UTF-8
Linux unterstützt ein spezielles Blockgerät, das sogenannte Loopback,
das eine normale Datei auf ein virtuelles Blockgerät abbildet. Das
Paket enthält Programme zum Einrichten und Entfernen der Zuordnung
zwischen Dateien und Loopback-Geräten.
%description -n losetup -l fr.UTF-8
Linux gère un périphérique bloc spécial appelé « loopback », qui
correspond à un fichier normal sur un périphérique bloc virtuel. Ce
paquetage contient les programmes pour configurer et supprimer la
correspondance entre les fichiers et les périphériques loopback.
Les périphériques bloc loopback ne doivent pas être confondus avec le
périphérique loopback du réseau, configuré avec la commande ifconfig
normale.
%description -n losetup -l pl.UTF-8
Linux wspiera specjalne urządzenie blokowe loopback, które mapuje
normalny plik w wirtualne urządzenie blokowe. Pakiet ten zawiera
program, przy pomocy którego będziesz mógł je skonfigurować.
Urządzenie blokowe loopback nie powinno być mylone z sieciowym
interfejsem loopback, który jest konfigurowany przy pomocy polecenia
ifconfig.
%description -n losetup -l ru.UTF-8
Linux поддерживает специальное блочное устройство, называемое
loopback, которое отображает обычный файл в виртуальное блочное
устройство. Это позволяет использовать файл как виртуальную файловую
систему. Losetup используется для связи loopback-устройств с обычными
файлами или блочными устройствами, для отсоединения loopback-устройств
и запросов их статуса.
%description -n losetup -l tr.UTF-8
Linux özel bir blok aygıt olan yerel-çevrim aygıtını (loopback device)
destekler. Bu aygıt normal bir dosyanın sanal bir blok aygıtı üzerine
haritasını çıkarır. Bu paket, dosyalar ve yerel-çevrim aygıtları
arasındaki haritalama işleminin kurulması ve kaldırılması için
programlar içerir. Blok yerel-çevrim aygıtı ifconfig komutu ile
yapılandırılan ağ yerel-çevrim aygıtı ile karıştırılmamalıdır.
%description -n losetup -l uk.UTF-8
Linux підтримує спеціальний блочний пристрій, loopback, який
відображує звичайний файл у віртуальний блочний пристрій. Це дозволяє
використовувати файл як віртуальну файлову систему. Losetup
використовують для зв'язку loopback-пристроїв зі звичайними файлами
або блочними пристроями, для від'єднання loopback-пристроїв та
запросів їх стану.
%package -n mount
Summary: Programs for mounting and unmounting filesystems
Summary(de.UTF-8): Programme zum montieren und abmontieren von Dateisystemen
Summary(fr.UTF-8): Programme pour monter et démonter des systèmes de fichiers
Summary(pl.UTF-8): Programy do montowania i odmontowywania systemów plików
Summary(ru.UTF-8): Программы для монтирования и размонтирования файловых систем
Summary(tr.UTF-8): Dosya sistemlerini bağlamak ve çözmek için programlar
Summary(uk.UTF-8): Програми для монтування та розмонтування файлових систем
License: GPL v2+
Group: Applications/System
Requires: libmount%{?_isa} = %{version}-%{release}
Requires: libsmartcols%{?_isa} = %{version}-%{release}
Conflicts: SysVinit < 2.86-26
# C: nfs-utils-common is opposite to http://cvs.pld-linux.org/packages/nfs-utils/nfs-utils.spec?r1=1.165&r2=1.166
Conflicts: nfs-utils-common < 1.1.3-3
%description -n mount
mount is used for adding new filesystems, both local and networked, to
your current directory structure. The filesystems must already exist
for this to work. It can also be used to change the access types the
kernel uses for already-mounted filesystems.
This package is critical for the functionality of your system.
%description -n mount -l de.UTF-8
mount wird zum Hinzufügen neuer Dateisysteme (lokal und im Netzwerk)
zu Ihrer aktuellen Verzeichnisstruktur verwendet. Die Dateisysteme
müssen bereits existieren. Außerdem können die Zugriffstypen geändert
werden, die der Kernel für bereits montierte Dateisysteme verwendet.
Dieses Paket ist für Ihr System unbedingt erforderlich.
%description -n mount -l fr.UTF-8
mount sert à ajouter de nouveaux systèmes de fichiers, locaux ou
réseaux, à votre structure de répertoire. Les systèmes de fichiers
doivent déjà exister pour que cela fonctionne. Il peut aussi servir à
changer les types d'accès pour les systèmes de fichiers déjà montés.
Ce paquetage est critique pour le fonctionnement de votre système.
%description -n mount -l pl.UTF-8
Program mount jest używany przez system do montowania systemów plików,
zarówno lokalnych jak i sieciowych (np. NFS).
Pakiet ten jest niezbędny do prawidłowej pracy twojego Linuksa.
%description -n mount -l ru.UTF-8
Пакет mount содержит программы mount, umount, swapon и swapoff. Файлы
в вашей системе организованы в виде одного большого дерева или
иерархии. Эти файлы могут быть размещены на разных устройствах.
Команда mount присоединяет файловую систему на некотором устройстве к
дереву файлов вашей системы. Команда umount отсоединяет файловую
систему от дерева. Swapon и swapoff, соответственно, разрешает и
запрещает своппинг в определенные файлы и устройства.
%description -n mount -l tr.UTF-8
mount, hem yerel hem de ağ dosya sistemlerinin dizin yapısına
eklenmesi için kullanılır. Bunun için bağlanacak dosya sisteminin
önceden hazırlanmış olması gerekir. Aynı zamanda çekirdeğin bağlanmış
dosya sistemlerine erişimini değiştirmek için de kullanılır. Bu paket
sisteminizin işlevselliği açısından kritiktir.
%description -n mount -l uk.UTF-8
Пакет mount містить програми mount, umount, swapon та swapoff. Файли у
вашій системі організовані у вигляді одного великого дерева або
ієрархії. Ці файли можуть бути розташовані на різних пристроях.
Команда mount під'єднує файлову систему на деякому пристрої до дерева
файлів вашої системи. Команда umount від'єднує файлову систему від
дерева. Swapon та swapoff, відповідно, дозволяє та заборонює свопінг у
визначені файли або пристрої.
%package -n tunelp
Summary: Configures kernel parallel port driver
Summary(de.UTF-8): Konfiguriert den Kerneltreiber für den parallelen Port
Summary(fr.UTF-8): Configure le pilote du port parallèle dans le noyau
Summary(pl.UTF-8): Program do konfigurowania sterownika portu równoległego
Summary(tr.UTF-8): Çekirdeğin paralel bağlantı noktası sürücüsünü ayarlar
License: GPL v2+
Group: Applications/System
%description -n tunelp
tunelp aids in configuring the kernel parallel port driver.
%description -n tunelp -l de.UTF-8
tunelp hilft bei der Konfiguration des Kernel-Parallelport-Treibers.
%description -n tunelp -l fr.UTF-8
« tunelp » aide à configurer le pilote du noyau pour le port
parallèle.
%description -n tunelp -l pl.UTF-8
Program do konfigurowania sterownika portu równoległego.
%description -n tunelp -l tr.UTF-8
Paralel bağlantı noktası sürücüsünü ayarlar.
%package -n login
Summary: login is used when signing onto a system
Summary(pl.UTF-8): login jest używany do rozpoczęcia pracy w systemie
License: GPL v2+
Group: Applications/System
Requires: pam%{?_isa} >= %{pam_ver}
Obsoletes: heimdal-login
%description -n login
login is used when signing onto a system. It can also be used to
switch from one user to another at any time (most modern shells have
support for this feature built into them, however).
%description -n login -l pl.UTF-8
login jest używany do rozpoczęcia pracy w systemie. Może być używany
do przełączania z jednego użytkownika na innego w każdym momencie
(jednak większość nowoczesnych powłok ma takie funkcje wbudowane).
%package -n agetty
Summary: Alternative Linux getty
Summary(pl.UTF-8): Alternatywny getty
License: GPL v2+
Group: Applications/System
Requires: login
%description -n agetty
agetty is simple Linux getty with serial support.
%description -n agetty -l pl.UTF-8
agetty jest prostym linuksowym getty z obsługą portu szeregowego.
%package -n libblkid
Summary: Library to handle device identification and token extraction
Summary(pl.UTF-8): Biblioteka do obsługi identyfikacji urządzeń
License: LGPL v2.1+
Group: Libraries
Obsoletes: util-linux-ng-libs < 2.20-1
%description -n libblkid
Library to handle device identification and token extraction.
%description -n libblkid -l pl.UTF-8
Biblioteka do obsługi identyfikacji urządzeń i wydobywania tokenów.
%package -n libblkid-devel
Summary: Header files for blkid library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki blkid
License: LGPL v2.1+
Group: Development/Libraries
Requires: libblkid%{?_isa} = %{version}-%{release}
Obsoletes: util-linux-ng-devel < 2.20-1
%description -n libblkid-devel
Header files for blkid library.
%description -n libblkid-devel -l pl.UTF-8
Pliki nagłówkowe biblioteki blkid.
%package -n libblkid-static
Summary: Static library to handle device identification and token extraction
Summary(pl.UTF-8): Statyczna biblioteka do obsługi identyfikacji urządzeń
License: LGPL v2.1+
Group: Development/Libraries
Requires: libblkid-devel%{?_isa} = %{version}-%{release}
Obsoletes: util-linux-ng-static < 2.20-1
%description -n libblkid-static
Static library to handle device identification and token extraction.
%description -n libblkid-static -l pl.UTF-8
Statyczna biblioteka do obsługi identyfikacji urządzeń i wydobywania
tokenów.
%package -n libblkid-dietlibc
Summary: Static dietlibc library to handle device identification and token extraction
Summary(pl.UTF-8): Statyczna biblioteka dietlibc do obsługi identyfikacji urządzeń
License: LGPL v2.1+
Group: Development/Libraries
Requires: libblkid-devel%{?_isa} = %{version}-%{release}
%description -n libblkid-dietlibc
Library to handle device identification and token extraction - static
dietlibc version.
%description -n libblkid-dietlibc -l pl.UTF-8
Biblioteka do obsługi identyfikacji urządzeń i wydobywania tokenów -
wersja statyczna dla dietlibc.
%package -n libblkid-apidocs
Summary: libblkid API documentation
Summary(pl.UTF-8): Dokumentacja API libblkid
Group: Documentation
Requires: gtk-doc-common
BuildArch: noarch
%description -n libblkid-apidocs
libblkid API documentation.
%description -n libblkid-apidocs -l pl.UTF-8
Dokumentacja API libblkid.
%package -n libuuid
Summary: Library for accessing and manipulating UUID
Summary(pl.UTF-8): Biblioteka umożliwiająca dostęp i zmiany UUID
License: BSD
Group: Libraries
Conflicts: e2fsprogs < 1.34-3
%description -n libuuid
Library for accessing and manipulating UUID.
%description -n libuuid -l pl.UTF-8
Biblioteka umożliwiająca dostęp i zmiany UUID.
%package -n libuuid-devel
Summary: Header files for library for accessing and manipulating UUID
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki umożliwiającej dostęp i zmiany UUID
License: BSD
Group: Development/Libraries
Requires: libuuid%{?_isa} = %{version}-%{release}
Conflicts: e2fsprogs-devel < 1.34-3
%description -n libuuid-devel
Library for accessing and manipulating UUID - development files.
%description -n libuuid-devel -l pl.UTF-8
Biblioteka umożliwiająca dostęp i zmiany UUID - pliki dla
programistów.
%package -n libuuid-static
Summary: Static library for accessing and manipulating UUID
Summary(pl.UTF-8): Statyczna biblioteka umożliwiająca dostęp i zmiany UUID
License: BSD
Group: Development/Libraries
Requires: libuuid-devel%{?_isa} = %{version}-%{release}
Conflicts: e2fsprogs-static < 1.34-3
%description -n libuuid-static
Library for accessing and manipulating UUID - static version.
%description -n libuuid-static -l pl.UTF-8
Biblioteka umożliwiająca dostęp i zmiany UUID - wersja statyczna.
%package -n libuuid-dietlibc
Summary: Static dietlibc library for accessing and manipulating UUID
Summary(pl.UTF-8): Statyczna biblioteka dietlibc umożliwiająca dostęp i zmiany UUID
License: BSD
Group: Development/Libraries
Requires: libuuid-devel%{?_isa} = %{version}-%{release}
Conflicts: e2fsprogs-static < 1.34-3
%description -n libuuid-dietlibc
Library for accessing and manipulating UUID - static dietlibc version.
%description -n libuuid-dietlibc -l pl.UTF-8
Biblioteka umożliwiająca dostęp i zmiany UUID - wersja statyczna dla
dietlibc.
%package -n uuidd
Summary: Helper daemon to guarantee uniqueness of time-based UUIDs
Summary(pl.UTF-8): Pomocniczy demon gwarantujący unikalność UUID-ów opartych na czasie
License: GPL v2+
Group: Daemons
Requires(postun): /usr/sbin/groupdel
Requires(postun): /usr/sbin/userdel
Requires(pre): /bin/id
Requires(pre): /usr/bin/getgid
Requires(pre): /usr/sbin/groupadd
Requires(pre): /usr/sbin/groupmod
Requires(pre): /usr/sbin/useradd
Requires(pre): /usr/sbin/usermod
Requires(post,preun,postun): systemd-units >= 38
Requires: libuuid%{?_isa} = %{version}-%{release}
Requires: systemd-units >= 38
Provides: group(uuidd)
Provides: user(uuidd)
Conflicts: libuuid < 1.40.5-0.1
%description -n uuidd
The uuidd package contains a userspace daemon (uuidd) which guarantees
uniqueness of time-based UUID generation even at very high rates on
SMP systems.
%description -n uuidd -l pl.UTF-8
Ten pakiet zawiera działającego w przestrzeni użytkownika demona
(uuidd) gwarantującego unikalność generowania UUID-ów opartych na
czasie nawet przy bardzo dużej częstotliwości na systemach SMP.
%package -n libfdisk
Summary: fdisk library
Summary(pl.UTF-8): Biblioteka fdisk
License: LGPL v2.1+
Group: Libraries
Requires: libblkid%{?_isa} = %{version}-%{release}
Requires: libuuid%{?_isa} = %{version}-%{release}
%description -n libfdisk
fdisk library.
%description -n libfdisk -l pl.UTF-8
Biblioteka fdisk.
%package -n libfdisk-devel
Summary: Header files for fdisk library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki fdisk
License: LGPL v2.1+
Group: Development/Libraries
Requires: libblkid-devel%{?_isa} = %{version}-%{release}
Requires: libfdisk%{?_isa} = %{version}-%{release}
Requires: libuuid-devel%{?_isa} = %{version}-%{release}
%description -n libfdisk-devel
Header files for fdisk library.
%description -n libfdisk-devel -l pl.UTF-8
Pliki nagłówkowe biblioteki fdisk.
%package -n libfdisk-static
Summary: Static version of fdisk library
Summary(pl.UTF-8): Statyczna wersja biblioteki fdisk
License: LGPL v2.1+
Group: Development/Libraries
Requires: libfdisk-devel%{?_isa} = %{version}-%{release}
%description -n libfdisk-static
Static version of fdisk library.
%description -n libfdisk-static -l pl.UTF-8
Statyczna wersja biblioteki fdisk.
%package -n libfdisk-apidocs
Summary: libfdisk API documentation
Summary(pl.UTF-8): Dokumentacja API libfdisk
Group: Documentation
Requires: gtk-doc-common
BuildArch: noarch
%description -n libfdisk-apidocs
libfdisk API documentation.
%description -n libfdisk-apidocs -l pl.UTF-8
Dokumentacja API libfdisk.
%package -n libmount
Summary: Library to handle mounting-related tasks
Summary(pl.UTF-8): Biblioteka obsługująca zadania związane z montowaniem
License: LGPL v2.1+
Group: Libraries
Requires: libblkid%{?_isa} = %{version}-%{release}
%description -n libmount
Library to handle mounting-related tasks.
%description -n libmount -l pl.UTF-8
Biblioteka obsługująca zadania związane z montowaniem.
%package -n libmount-devel
Summary: Header files for mount library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki mount
License: LGPL v2.1+
Group: Development/Libraries
Requires: libblkid-devel%{?_isa} = %{version}-%{release}
Requires: libmount%{?_isa} = %{version}-%{release}
%description -n libmount-devel
Header files for mount library.
%description -n libmount-devel -l pl.UTF-8
Pliki nagłówkowe biblioteki mount.
%package -n libmount-static
Summary: Static version of mount library
Summary(pl.UTF-8): Statyczna wersja biblioteki mount
License: LGPL v2.1+
Group: Development/Libraries
Requires: libmount-devel%{?_isa} = %{version}-%{release}
%description -n libmount-static
Static version of mount library.
%description -n libmount-static -l pl.UTF-8
Statyczna wersja biblioteki mount.
%package -n libmount-apidocs
Summary: libmount API documentation
Summary(pl.UTF-8): Dokumentacja API libmount
Group: Documentation
Requires: gtk-doc-common
BuildArch: noarch
%description -n libmount-apidocs
libmount API documentation.
%description -n libmount-apidocs -l pl.UTF-8
Dokumentacja API libmount.
%package -n python3-libmount
Summary: Python 3.x libmount bindings
Summary(pl.UTF-8): Wiązania Pythona 3.x do biblioteki libmount
License: LGPL v3+
Group: Libraries/Python
Requires: libmount%{?_isa} = %{version}-%{release}
%description -n python3-libmount
Python 3.x libmount bindings.
%description -n python3-libmount -l pl.UTF-8
Wiązania Pythona 3.x do biblioteki libmount.
%package -n fsck
Summary: Check and repair a Linux file system
Summary(pl.UTF-8): Sprawdzanie i naprawa linuksowego systemu plików
License: GPL v2+
Group: Applications/System
Requires: libblkid%{?_isa} = %{version}-%{release}
%description -n fsck
Check and repair a Linux file system.
%description -n fsck -l pl.UTF-8
Sprawdzanie i naprawa linuksowego systemu plików.
%package -n libsmartcols
Summary: Library to handle tables and trees
Summary(pl.UTF-8): Biblioteka do obsługi tabelek i drzewek
License: LGPL v2+
Group: Libraries
%description -n libsmartcols
Library to handle tables and trees.
%description -n libsmartcols -l pl.UTF-8
Biblioteka do obsługi tabelek i drzewek.
%package -n libsmartcols-devel
Summary: Header files for smartcols library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki smartcols
License: LGPL v2+
Group: Development/Libraries
Requires: libsmartcols%{?_isa} = %{version}-%{release}
%description -n libsmartcols-devel
Header files for smartcols library.
%description -n libsmartcols-devel -l pl.UTF-8
Pliki nagłówkowe biblioteki smartcols.
%package -n libsmartcols-static
Summary: Static version of smartcols library
Summary(pl.UTF-8): Statyczna wersja biblioteki smartcols
License: LGPL v2+
Group: Development/Libraries
Requires: libsmartcols-devel%{?_isa} = %{version}-%{release}
%description -n libsmartcols-static
Static version of smartcols library.
%description -n libsmartcols-static -l pl.UTF-8
Statyczna wersja biblioteki smartcols.
%package -n libsmartcols-apidocs
Summary: libsmartcols API documentation
Summary(pl.UTF-8): Dokumentacja API libsmartcols
Group: Documentation
Requires: gtk-doc-common
BuildArch: noarch
%description -n libsmartcols-apidocs
libsmartcols API documentation.
%description -n libsmartcols-apidocs -l pl.UTF-8
Dokumentacja API libsmartcols.
%package -n lastlog2
Summary: Y2038 safe version of lastlog
Summary(pl.UTF-8): Wersja usługi lastlog bezpieczna pod kątem Y2038
Group: Libraries
%description -n lastlog2
The standard /var/log/lastlog implementation using lastlog.h from
glibc uses a 32bit time_t in struct lastlog on bi-arch systems like
x86-64 (so which can execute 64bit and 32bit binaries). So even if you
have a pure 64bit system, on many architectures using glibc you have a
Y2038 problem.
Additional, /var/log/lastlog can become really huge if there are big
UIDs in use on the system. Since it is a sparse file, this is normally
not a problem, but depending on the filesystem or the tools used for
backup, this can become a real problem.
Since there are only few applications which really support lastlog,
the data is also not always correct.
lastlog2 tries to solve this problems:
- It's using sqlite3 as database backend.
- Data is only collected via a PAM module, so that every tools can
make use of it, without modifying existing packages.
- The output is as compatible as possible with the old lastlog
implementation.
- The old /var/log/lastlog file can be imported into the new database.
- The size of the database depends on the amount of users, not how big
the biggest UID is.
%description -n lastlog2 -l pl.UTF-8
Standardowa implementacja /var/log/lastlog z użyciem lastlog.h z glibc
wykorzystuje 32-bitowy time_t w strukturze lastlog na systemach
wieloarchitekturowych, takich jak x86-64 (który może wykonywać binaria
64- i 32-bitowe). Przez to nawet na czysto 64-bitowym systemie, na
wielu architekturach wykorzystujących glibc można napotkać problem
roku 2038.
Ponadto /var/log/lastlog może stać się bardzo duży, jeśli w systemie
używane są duże UID-y. Ponieważ jest to plik rzadki, zwykle nie jest
to problem, ale może być w zależności od używanego systemu plików i
narzędzi do wykonywania kopii zapasowych.
Ponieważ tylko kilka aplikacji tak naprawdę obsługuje lastlog, dane
nie muszą być zawsze poprawne.
lastlog2 próbuje rozwiązać te problemy:
- wykorzystuje sqlite3 jako backend bazy danych
- dane są zbierane tylko przez moduł PAM, więc wszystkie narzędzia
mogą go używać bez dodatkowych modyfikacji
- wyjście jest zgodne ze starą implementacją lastlog na ile to możliwe
- stary plik /var/log/lastlog można zaimportować do nowej bazy danych
- rozmiar bazy danych zależy od liczby użytkowników, a nie najwyższej
wartości UID-a
%package -n lastlog2-devel
Summary: Header files for lastlog2 library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki lastlog2
Group: Development/Libraries
Requires: lastlog2%{?_isa} = %{version}-%{release}
%description -n lastlog2-devel
Header files for lastlog2 library.
%description -n lastlog2-devel -l pl.UTF-8
Pliki nagłówkowe biblioteki lastlog2.
%package -n lastlog2-static
Summary: Static lastlog2 library
Summary(pl.UTF-8): Statyczna biblioteka lastlog2
Group: Development/Libraries
Requires: lastlog2-devel%{?_isa} = %{version}-%{release}
%description -n lastlog2-static
Static lastlog2 library.
%description -n lastlog2-static -l pl.UTF-8
Statyczna biblioteka lastlog2.
%package -n pam-pam_lastlog2
Summary: PAM module to display date of last login
Summary(pl.UTF-8): Moduł PAM do wyświetlania daty ostatniego logowania
Group: Base
Requires: lastlog2%{?_isa} = %{version}-%{release}
%description -n pam-pam_lastlog2
PAM module to display date of last login.
%description -n pam-pam_lastlog2 -l pl.UTF-8
Moduł PAM do wyświetlania daty ostatniego logowania.
%package initrd
Summary: blkid - initrd version
Summary(pl.UTF-8): blkid - wersja dla initrd
License: GPL v2+
Group: Base
Obsoletes: util-linux-ng-initrd < 2.20-1
Conflicts: geninitrd < 10000.10
%description initrd
This package includes a blkid utility to recognize partitions by label
or UUID - staticaly linked for initrd.
%description initrd -l pl.UTF-8
Pakiet ten zawiera narzędzie blkid do rozpoznawania partycji przez
etykietę lub UUID - statycznie skonsolidowane na potrzeby initrd.
%package -n bash-completion-util-linux
Summary: bash completion for util-linux commands
Summary(pl.UTF-8): Bashowe dopełnianie parametrów dla poleceń z pakietu util-linux
License: GPL v2+
Group: Applications/Shells
Requires: %{name} = %{version}-%{release}
Requires: bash-completion >= 1:2.0
Requires: gawk
BuildArch: noarch
%description -n bash-completion-util-linux
Bash completion for util-linux commands.
%description -n bash-completion-util-linux -l pl.UTF-8
Bashowe dopełnianie parametrów dla poleceń z pakietu util-linux.
%prep
%setup -q -a1
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
%patch -P7 -p1
%{?with_initrd:%patch -P6 -p1}
# obsolete programs, remove non-english man pages
%{__rm} man/*/man1/{arch,chkdupexe,ddate,reset}.1 \
man/*/man5/nfs.5 \
man/*/man8/{cytune,elvtune,setfdprm,sln,ramsize,rdev,rootflags,vidmode}.8
# adjust page numbers
for d in fr ja ko pl ; do
%{__mv} man/$d/man8/dmesg.8 man/$d/man1/dmesg.1
%{__sed} -i -e 's/DMESG 8/DMESG 1/' man/$d/man1/dmesg.1
done
for d in es fr ja ko pl ; do
%{__mv} man/$d/man8/ipcrm.8 man/$d/man1/ipcrm.1
%{__sed} -i -e 's/IPCRM 8/IPCRM 1/;s/ipcs (8)/ipcs (1)/' man/$d/man1/ipcrm.1
%{__mv} man/$d/man8/ipcs.8 man/$d/man1/ipcs.1
%{__sed} -i -e 's/IPCS 8/IPCS 1/;s/ipcrm (8)/ipcrm (1)/' man/$d/man1/ipcs.1
done
for d in es ja ko pl ; do
%{__mv} man/$d/man8/renice.8 man/$d/man1/renice.1
%{__sed} -i -e 's/RENICE 8/RENICE 1/' man/$d/man1/renice.1
done
for d in es fr it ja ko ; do
%{__mv} man/$d/man8/setsid.8 man/$d/man1/setsid.1
%{__sed} -i -e 's/SETSID 8/SETSID 1/' man/$d/man1/setsid.1
done
for d in es ja ko ; do
%{__mv} man/$d/man1/readprofile.1 man/$d/man8/readprofile.8
%{__sed} -i -e 's/READPROFILE 1/READPROFILE 8/' man/$d/man8/readprofile.8
done
%{__rm} po/stamp-po
%build
%{__gettextize}
%{__libtoolize}
%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
export CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses -DHAVE_LSEEK64_PROTOTYPE -DHAVE_LLSEEK_PROTOTYPE"
%if %{with initrd}
%{?with_uClibc:xCC="%{_target_cpu}-uclibc-gcc"}
%{?with_dietlibc:xCC="%{__cc}"; xCC="diet ${xCC#*ccache }"}
%configure \
%if %{with dietlibc}
ac_cv_header_crypt_h=no \
ac_cv_header_stdio_ext_h=no \
%endif
CC="$xCC" \
%if "%{?configure_cache}" == "1"
--cache-file=%{?configure_cache_file}%{!?configure_cache_file:configure}-initrd.cache \
%endif
--exec-prefix= \
--bindir=/bin \
--sbindir=/sbin \
--libdir=/%{_lib} \
--disable-shared \
--enable-static \
--enable-libmount-force-mountinfo \
--disable-agetty \
--disable-chfn-chsh \
--disable-cramfs \
--disable-kill \
--disable-ldattach \
--disable-liblastlog2 \
--disable-libmount \
--disable-login \
--disable-losetup \
--disable-makeinstall-chown \
--disable-makeinstall-setuid \
--disable-minix \
--disable-newgrp \
--disable-partx \
--disable-raw \
--disable-runuser \
--disable-schedutils \
--disable-setarch \
--disable-silent-rules \
--disable-su \
--disable-sulogin \
--disable-tunelp \
--disable-use-tty-group \
--disable-utmpdump \
--disable-uuidd \
--disable-vipw \
--disable-wall \
--without-audit \
--without-ncurses \
--without-selinux \
--without-smack
# configure gets it unconditionally wrong
%{__sed} -i -e 's/#define HAVE_WIDECHAR 1//' config.h
%{__make} \
%if %{with uClibc}
LDFLAGS="-Wl,-static"
%endif