]> git.pld-linux.org Git - packages/env-update.git/blob - env-update.spec
490c3ff9326d68c0c463459de68cc177abb91a7d
[packages/env-update.git] / env-update.spec
1 Summary:        env-update - create /etc/profile.env from /etc/env.d files
2 Summary(pl.UTF-8):      env-update - tworzenie /etc/profile.env z plików /etc/env.d
3 Name:           env-update
4 Version:        1.6.14
5 Release:        4
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
11 Patch1:         %{name}-cflags.patch
12 BuildRequires:  gawk-devel
13 BuildRequires:  rpmbuild(macros) >= 1.316
14 Requires:       gawk
15 Requires:       rc-scripts
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _exec_prefix    /
19 %define         _libdir         /lib
20 %define         _libexecdir     /lib
21 %define         _sbindir        /sbin
22
23 %description
24 This is env-update rip from gentoo's baselayout.
25
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.
29
30 %description -l pl.UTF-8
31 Ten pakiet zawiera narzędzie env-update wyciągnięte z podstawowych
32 narzędzi gentoo.
33
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.
37
38 %prep
39 %setup -q -n rc-scripts-%{version}
40 %patch0 -p1
41 %patch1 -p1
42
43 %build
44 %{__make} -C src/filefuncs \
45         CC="%{__cc}" \
46         CFLAGS="%{rpmcflags}" \
47         LD="%{__ld}"
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT{%{_libdir},%{_libexecdir},%{_sbindir},%{_sysconfdir},/var/cache}
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
55 touch $RPM_BUILD_ROOT/var/cache/envcache
56 touch $RPM_BUILD_ROOT%{_sysconfdir}/{profile,csh}.env
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %post
62 %{_sbindir}/env-update
63
64 %files
65 %defattr(644,root,root,755)
66 %attr(755,root,root) %{_sbindir}/*
67 %attr(755,root,root) %{_libdir}/filefuncs.so
68 %{_libexecdir}/*.awk
69 %ghost /var/cache/envcache
70 %ghost %{_sysconfdir}/profile.env
71 %ghost %{_sysconfdir}/csh.env
This page took 0.040562 seconds and 2 git commands to generate.