]> git.pld-linux.org Git - packages/env-update.git/blob - env-update.spec
- port to pld
[packages/env-update.git] / env-update.spec
1 Summary:        env-update
2 Name:           env-update
3 Version:        1.6.14
4 Release:        0.2
5 License:        GPL v2
6 Group:          Base
7 Source0:        http://distfiles.gentoo.org/distfiles/rc-scripts-%{version}.tar.bz2
8 # Source0-md5:  3ef9ae479847d474c33d7d54f4912e77
9 Patch0:         %{name}.patch
10 BuildRequires:  gawk-devel
11 Requires:       gawk
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 This is env-update rip from gentoo's baselayout.
16
17 env-update creates /etc/profile.env file from /etc/env.d files, so
18 your shell is able to read initial env quickly even at high system
19 loads.
20
21 %prep
22 %setup -q -n rc-scripts-%{version}
23 %patch0 -p1
24
25 %build
26 %{__make} -C src/filefuncs \
27         CC="%{__cc}" \
28         LD="%{__ld}"
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT{%{_libdir},%{_libexecdir},%{_sbindir}}
33 install src/filefuncs/filefuncs.so $RPM_BUILD_ROOT%{_libdir}
34 install -p src/awk/{functions.awk,genenviron.awk} $RPM_BUILD_ROOT%{_libexecdir}
35 install sbin/env-update.sh $RPM_BUILD_ROOT%{_sbindir}/env-update
36
37 %clean
38 rm -rf $RPM_BUILD_ROOT
39
40 %files
41 %defattr(644,root,root,755)
42 %attr(755,root,root) %{_sbindir}/*
43 %{_libdir}/filefuncs.so
44 %{_libexecdir}/*.awk
This page took 0.151756 seconds and 4 git commands to generate.