]> git.pld-linux.org Git - packages/env-update.git/blob - env-update.spec
- rel 1
[packages/env-update.git] / env-update.spec
1 Summary:        env-update - create /etc/profile.env from /etc/env.d files
2 Summary(pl):    env-update - tworzenie /etc/profile.env z plików /etc/env.d
3 Name:           env-update
4 Version:        1.6.14
5 Release:        1
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 Requires:       gawk
14 Requires:       rc-scripts
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _exec_prefix    /
18 %define         _libdir         /lib
19 %define         _libexecdir     /lib
20 %define         _sbindir        /sbin
21
22 %description
23 This is env-update rip from gentoo's baselayout.
24
25 env-update creates /etc/profile.env file from /etc/env.d files, so
26 your shell is able to read initial env quickly even at high system
27 loads.
28
29 %description -l pl
30 Ten pakiet zawiera narzêdzie env-update wyci±gniête z podstawowych
31 narzêdzi gentoo.
32
33 env-update tworzy plik /etc/profile.env z plików /etc/env.d, dziêki
34 czemu pow³oka jest w stanie szybko wczytaæ pocz±tkowe ¶rodowisko nawet
35 przy du¿ym obci±¿eniu systemu.
36
37 %prep
38 %setup -q -n rc-scripts-%{version}
39 %patch0 -p1
40 %patch1 -p1
41
42 %build
43 %{__make} -C src/filefuncs \
44         CC="%{__cc}" \
45         CFLAGS="%{rpmcflags}" \
46         LD="%{__ld}"
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_libdir},%{_libexecdir},%{_sbindir},%{_sysconfdir},/var/cache}
51 install src/filefuncs/filefuncs.so $RPM_BUILD_ROOT%{_libdir}
52 install -p src/awk/{functions.awk,genenviron.awk} $RPM_BUILD_ROOT%{_libexecdir}
53 install sbin/env-update.sh $RPM_BUILD_ROOT%{_sbindir}/env-update
54 touch $RPM_BUILD_ROOT/var/cache/envcache
55 touch $RPM_BUILD_ROOT%{_sysconfdir}/profile.env
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %post
61 %{_sbindir}/env-update
62
63 %files
64 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_sbindir}/*
66 %attr(755,root,root) %{_libdir}/filefuncs.so
67 %{_libexecdir}/*.awk
68 %ghost /var/cache/envcache
69 %ghost %{_sysconfdir}/profile.env
This page took 0.053302 seconds and 4 git commands to generate.