]>
Commit | Line | Data |
---|---|---|
ebdeba66 | 1 | Summary: env-update - create /etc/profile.env from /etc/env.d files |
c2ad7af2 | 2 | Summary(pl.UTF-8): env-update - tworzenie /etc/profile.env z plików /etc/env.d |
165b9811 | 3 | Name: env-update |
a711773c | 4 | Version: 1.6.14 |
18b7230a | 5 | Release: 4 |
a711773c ER |
6 | License: GPL v2 |
7 | Group: Base | |
8 | Source0: http://distfiles.gentoo.org/distfiles/rc-scripts-%{version}.tar.bz2 | |
9 | # Source0-md5: 3ef9ae479847d474c33d7d54f4912e77 | |
10 | Patch0: %{name}.patch | |
6dcf5444 | 11 | Patch1: %{name}-cflags.patch |
a711773c | 12 | BuildRequires: gawk-devel |
68d97981 | 13 | BuildRequires: rpmbuild(macros) >= 1.316 |
a711773c | 14 | Requires: gawk |
28ffa362 | 15 | Requires: rc-scripts |
a711773c ER |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
86093cc0 | 18 | %define _exec_prefix / |
7634ae3c JB |
19 | %define _libdir /lib |
20 | %define _libexecdir /lib | |
ed2ef7da | 21 | %define _sbindir /sbin |
86093cc0 | 22 | |
a711773c ER |
23 | %description |
24 | This is env-update rip from gentoo's baselayout. | |
25 | ||
68d97981 ER |
26 | env-update creates /etc/profile.env and /etc/csh.env from the contents |
27 | of /etc/env.d/, so your shell is able to read initial env quickly even | |
28 | at high system loads. | |
a711773c | 29 | |
2642e34e JR |
30 | %description -l pl.UTF-8 |
31 | Ten pakiet zawiera narzędzie env-update wyciągnięte z podstawowych | |
32 | narzędzi gentoo. | |
ebdeba66 | 33 | |
2642e34e JR |
34 | env-update tworzy plik /etc/profile.env z plików /etc/env.d, dzięki |
35 | czemu powłoka jest w stanie szybko wczytać początkowe środowisko nawet | |
36 | przy dużym obciążeniu systemu. | |
ebdeba66 | 37 | |
a711773c ER |
38 | %prep |
39 | %setup -q -n rc-scripts-%{version} | |
40 | %patch0 -p1 | |
6dcf5444 | 41 | %patch1 -p1 |
a711773c ER |
42 | |
43 | %build | |
44 | %{__make} -C src/filefuncs \ | |
45 | CC="%{__cc}" \ | |
6dcf5444 | 46 | CFLAGS="%{rpmcflags}" \ |
165b9811 | 47 | LD="%{__ld}" |
a711773c ER |
48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
7005e059 | 51 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_libexecdir},%{_sbindir},%{_sysconfdir},/var/cache} |
a711773c ER |
52 | install src/filefuncs/filefuncs.so $RPM_BUILD_ROOT%{_libdir} |
53 | install -p src/awk/{functions.awk,genenviron.awk} $RPM_BUILD_ROOT%{_libexecdir} | |
54 | install sbin/env-update.sh $RPM_BUILD_ROOT%{_sbindir}/env-update | |
7f3f810b | 55 | touch $RPM_BUILD_ROOT/var/cache/envcache |
dc692797 | 56 | touch $RPM_BUILD_ROOT%{_sysconfdir}/{profile,csh}.env |
a711773c ER |
57 | |
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
3b2e6073 | 61 | %post |
18b7230a | 62 | %{_sbindir}/env-update |
3b2e6073 | 63 | |
a711773c ER |
64 | %files |
65 | %defattr(644,root,root,755) | |
66 | %attr(755,root,root) %{_sbindir}/* | |
ebdeba66 | 67 | %attr(755,root,root) %{_libdir}/filefuncs.so |
a711773c | 68 | %{_libexecdir}/*.awk |
7f3f810b | 69 | %ghost /var/cache/envcache |
7005e059 | 70 | %ghost %{_sysconfdir}/profile.env |
dc692797 | 71 | %ghost %{_sysconfdir}/csh.env |