- up to 1.6.15
[packages/env-update.git] / env-update.spec
CommitLineData
ebdeba66 1Summary: env-update - create /etc/profile.env from /etc/env.d files
c2ad7af2 2Summary(pl.UTF-8): env-update - tworzenie /etc/profile.env z plików /etc/env.d
165b9811 3Name: env-update
4b28b2e4 4Version: 1.6.15
5Release: 1
a711773c
ER
6License: GPL v2
7Group: Base
8Source0: http://distfiles.gentoo.org/distfiles/rc-scripts-%{version}.tar.bz2
4b28b2e4 9# Source0-md5: e3dd64c9b45454a99ce51ee2ec4b1fd5
a711773c 10Patch0: %{name}.patch
6dcf5444 11Patch1: %{name}-cflags.patch
a711773c 12BuildRequires: gawk-devel
68d97981 13BuildRequires: rpmbuild(macros) >= 1.316
a711773c 14Requires: gawk
28ffa362 15Requires: rc-scripts
a711773c
ER
16BuildRoot: %{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
24This is env-update rip from gentoo's baselayout.
25
68d97981
ER
26env-update creates /etc/profile.env and /etc/csh.env from the contents
27of /etc/env.d/, so your shell is able to read initial env quickly even
28at high system loads.
a711773c 29
2642e34e
JR
30%description -l pl.UTF-8
31Ten pakiet zawiera narzędzie env-update wyciągnięte z podstawowych
32narzędzi gentoo.
ebdeba66 33
2642e34e
JR
34env-update tworzy plik /etc/profile.env z plików /etc/env.d, dzięki
35czemu powłoka jest w stanie szybko wczytać początkowe środowisko nawet
36przy 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
50rm -rf $RPM_BUILD_ROOT
7005e059 51install -d $RPM_BUILD_ROOT{%{_libdir},%{_libexecdir},%{_sbindir},%{_sysconfdir},/var/cache}
a711773c
ER
52install src/filefuncs/filefuncs.so $RPM_BUILD_ROOT%{_libdir}
53install -p src/awk/{functions.awk,genenviron.awk} $RPM_BUILD_ROOT%{_libexecdir}
54install sbin/env-update.sh $RPM_BUILD_ROOT%{_sbindir}/env-update
7f3f810b 55touch $RPM_BUILD_ROOT/var/cache/envcache
dc692797 56touch $RPM_BUILD_ROOT%{_sysconfdir}/{profile,csh}.env
a711773c
ER
57
58%clean
59rm -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
This page took 0.076648 seconds and 4 git commands to generate.