]> git.pld-linux.org Git - packages/env-update.git/blame - env-update.spec
- pldize
[packages/env-update.git] / env-update.spec
CommitLineData
a711773c
ER
1Summary: env-update
2Name: env-update
3Version: 1.6.14
4Release: 0.2
5License: GPL v2
6Group: Base
7Source0: http://distfiles.gentoo.org/distfiles/rc-scripts-%{version}.tar.bz2
8# Source0-md5: 3ef9ae479847d474c33d7d54f4912e77
9Patch0: %{name}.patch
10BuildRequires: gawk-devel
11Requires: gawk
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14%description
15This is env-update rip from gentoo's baselayout.
16
17env-update creates /etc/profile.env file from /etc/env.d files, so
18your shell is able to read initial env quickly even at high system
19loads.
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
31rm -rf $RPM_BUILD_ROOT
32install -d $RPM_BUILD_ROOT{%{_libdir},%{_libexecdir},%{_sbindir}}
33install src/filefuncs/filefuncs.so $RPM_BUILD_ROOT%{_libdir}
34install -p src/awk/{functions.awk,genenviron.awk} $RPM_BUILD_ROOT%{_libexecdir}
35install sbin/env-update.sh $RPM_BUILD_ROOT%{_sbindir}/env-update
36
37%clean
38rm -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.093916 seconds and 4 git commands to generate.