]> git.pld-linux.org Git - packages/setup.git/blame - setup.spec
Up to 2.10.2
[packages/setup.git] / setup.spec
CommitLineData
bf515c7b
PG
1# TODO:
2# - make some README.PLD with system features description
86056b15 3#
ba725839 4%bcond_without diet # compile binaries with diet cc
878a6b3b 5
f97bd99d 6Summary: Simple setup files
8551200d
ER
7Summary(de.UTF-8): Einfache Setup-Dateien
8Summary(es.UTF-8): Varios archivos básicos de configuración
9Summary(fr.UTF-8): Fichiers de configuration simples
10Summary(ja.UTF-8): サンプルセットアップファイル
11Summary(pl.UTF-8): Podstawowe pliki systemu Linux
12Summary(pt_BR.UTF-8): Vários arquivos básicos de configuração
13Summary(tr.UTF-8): Basit kurulum dosyaları
f97bd99d 14Name: setup
04e5766c 15Version: 2.10.2
b1e86f8f 16Release: 1
bf515c7b 17License: Public Domain, partially BSD-like
f97bd99d 18Group: Base
dc79bfc1 19Source0: %{name}-%{version}.tar.bz2
04e5766c 20# Source0-md5: 81fc61ad47ce7de1db3f170260e282cd
cee0beed
MK
21Source1: protocols.gawk
22Source2: services.gawk
23Source3: https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xml
04e5766c 24# Source3-md5: 3d3cbb61e8740139a8dc544c8f1173f0
cee0beed 25Source4: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml
04e5766c 26# Source4-md5: 60e71c8c6187fe639312be02e26443af
cee0beed 27Patch0: %{name}-services.patch
a0098a54 28%if %{with diet}
fe293510 29BuildRequires: dietlibc-static
a0098a54
AM
30%else
31BuildRequires: glibc-static
32%endif
36832d85 33BuildRequires: gawk
00ef0f6f 34BuildRequires: glibc-misc
f2dcd3fa 35Requires: FHS >= 2.3-24.1
39438d8e 36Provides: group(fuse)
2b40f793 37Conflicts: PowerChutePlus < 4.5.3-2
ee80b4de 38Conflicts: glibc < 6:2.4-4.1
f1b9589b
JR
39# tape,dialout and cdrom groups support
40Conflicts: dev < 3.4-4
41Conflicts: udev < 1:138-5
6480c437
AM
42# /etc/mtab being symlink to /proc/self/mounts
43Conflicts: rc-scripts < 0.4.5.1-3
50ba189c 44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
6be1ce2e 45
3d5c2a8f 46%define _sbindir /sbin
878a6b3b 47%undefine with_ccache
3d5c2a8f 48
ba725839
ER
49%ifnarch x32
50# not on x32, see 02e9d04
51%define specflags -Os
52%endif
53
6be1ce2e 54%description
7a8444bd
SZ
55This package contains a number of very important configuration and
56setup files, including the passwd, group, profile files, etc.
6be1ce2e 57
2f487416
JR
58%description -l de.UTF-8
59Dieses Paket enthält wichtige Konfigurations- und Setup-Dateien, u.a.
a9f190e7 60passwd-, group-, profile-Dateien usw.
6be1ce2e 61
2f487416
JR
62%description -l es.UTF-8
63Este paquete contiene una variedad de archivos de configuración y
05f14211
TP
64setup muy importantes, incluyendo el passwd, group, archivos de
65"perfil", etc.
66
2f487416
JR
67%description -l fr.UTF-8
68Ce paquetage contient un nombre de fichiers de configuration très
6be1ce2e 69importants, comme passwd, group, les fichiers profile, etc.
70
2f487416
JR
71%description -l ja.UTF-8
72このsetupパッケージには、passwd, group, profile などの、
73重要なシステム設定ファイルが含まれてます。
05f14211 74
2f487416
JR
75%description -l pl.UTF-8
76Pakiet ten zawiera wiele bardzo ważnych plików konfiguracyjnych dla
a6f7ca8d 77Twojego systemu.
87946706 78
2f487416
JR
79%description -l pt_BR.UTF-8
80Este pacote contém uma variedade de arquivos de configuração e setup
ea4c6647
JB
81muito importantes, incluindo o passwd, group, arquivos de "perfil",
82etc.
d0944bc6 83
2f487416
JR
84%description -l tr.UTF-8
85Bu paket, passwd, group, profile gibi çok önemli ayar ve kurulum
86dosyalarını içerir.
d0944bc6 87
6be1ce2e 88%prep
cee0beed
MK
89%setup -q
90%{SOURCE1} %{SOURCE3} > etc/protocols
91%{SOURCE2} %{SOURCE4} > etc/services
1244ac5c 92%patch0 -p1
bf515c7b
PG
93
94%build
150c6f35 95# kill trailing spaces/tabs
cee0beed 96%{__sed} -i -e 's,[ \t]\+$,,' etc/{services,protocols}
0b6becf4 97
bf515c7b 98%{__make} \
a0098a54 99 CC="%{?with_diet:diet }%{__cc}" \
02e9d04f 100 OPT_FLAGS="%{rpmcflags} -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64" \
3aa38c78
AM
101 LDFLAGS="%{rpmcflags} %{rpmldflags} -static"
102
7a3e4d83 103ldd postshell 2>&1 | grep "not a dynamic executable" || exit 1
6be1ce2e 104
105%install
797d0215 106rm -rf $RPM_BUILD_ROOT
93f8153d 107install -d $RPM_BUILD_ROOT%{_sysconfdir}/shrc.d
bf515c7b
PG
108%{__make} install \
109 DESTDIR=$RPM_BUILD_ROOT
0b6becf4 110
f2dcd3fa 111# not packaged
ea53b031 112%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/{netgroup,suid_profile}
f2dcd3fa 113
6be1ce2e 114%clean
797d0215 115rm -rf $RPM_BUILD_ROOT
6be1ce2e 116
ba725839 117# trigger to ensure /etc/mtab is symlink
c06b68d0
ER
118%triggerprein -p /sbin/postshell -- %{name} < %{version}-%{release}
119-/bin/sh -c '/usr/bin/test -L /etc/mtab || /bin/mv -v /etc/mtab /etc/mtab.rpmsave'
120
778eea73 121%triggerpostun -p /sbin/postshell -- %{name} < %{version}-%{release}
778eea73 122%{_sbindir}/delpasswd -g ttyS cdwrite
81b992a1 123
7cf4e42c 124%triggerin -p %{_sbindir}/update-fstab -- %{name} < 2.4.10-1
a2b3dd01 125
544edbb0
ER
126%post -p /sbin/postshell
127-/sbin/env-update -u
841dc2f5 128%{_sbindir}/joinpasswd
544edbb0
ER
129
130%postun -p /sbin/postshell
131-/sbin/env-update -u
132
6be1ce2e 133%files
f97bd99d 134%defattr(644,root,root,755)
bf515c7b 135%doc ChangeLog
778eea73 136%attr(755,root,root) %{_sbindir}/delpasswd
bf515c7b 137%attr(755,root,root) %{_sbindir}/joinpasswd
47f42bc8 138%attr(755,root,root) %{_sbindir}/postshell
7cf4e42c 139%attr(755,root,root) %{_sbindir}/update-fstab
bf515c7b 140%dir /etc/profile.d
9bee86ed
AM
141%config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) /etc/profile.d/00-tmp-dir.sh
142%config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) /etc/profile.d/00-tmp-dir.csh
4db3fb34 143%dir %{_sysconfdir}/env.d
ea53b031
JB
144%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/EDITOR
145%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/HISTFILESIZE
146%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/HOME_ETC
147%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/MAILCHECK
148%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/MAILPATH
149%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/NNTPSERVER
150%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/ORGANIZATION
151%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/TMOUT
152%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/VISUAL
4db3fb34 153%dir %{_sysconfdir}/shrc.d
391e8940
JR
154%config(noreplace) %verify(not md5 mtime size) /etc/shrc.d/256term.sh
155%config(noreplace) %verify(not md5 mtime size) /etc/shrc.d/256term.csh
9310ed4f
ER
156%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fstab
157%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/group
158%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/host.conf
159%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hosts
160%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/passwd
161%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/profile
162%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/protocols
1244ac5c
ER
163%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/subgid
164%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/subuid
ea53b031 165%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/securetty
9310ed4f
ER
166%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/services
167%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/filesystems
168%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/motd
169%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/resolv.conf
bf515c7b 170%ghost %{_sysconfdir}/shells
59e09c3d
AM
171# symlink to /proc/self/mounts
172%{_sysconfdir}/mtab
1244ac5c
ER
173
174
This page took 0.073868 seconds and 5 git commands to generate.