]> git.pld-linux.org Git - packages/env-update.git/blame_incremental - env-update.spec
- up to 1.6.15
[packages/env-update.git] / env-update.spec
... / ...
CommitLineData
1Summary: env-update - create /etc/profile.env from /etc/env.d files
2Summary(pl.UTF-8): env-update - tworzenie /etc/profile.env z plików /etc/env.d
3Name: env-update
4Version: 1.6.15
5Release: 1
6License: GPL v2
7Group: Base
8Source0: http://distfiles.gentoo.org/distfiles/rc-scripts-%{version}.tar.bz2
9# Source0-md5: e3dd64c9b45454a99ce51ee2ec4b1fd5
10Patch0: %{name}.patch
11Patch1: %{name}-cflags.patch
12BuildRequires: gawk-devel
13BuildRequires: rpmbuild(macros) >= 1.316
14Requires: gawk
15Requires: rc-scripts
16BuildRoot: %{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
24This is env-update rip from gentoo's baselayout.
25
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.
29
30%description -l pl.UTF-8
31Ten pakiet zawiera narzędzie env-update wyciągnięte z podstawowych
32narzędzi gentoo.
33
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.
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
50rm -rf $RPM_BUILD_ROOT
51install -d $RPM_BUILD_ROOT{%{_libdir},%{_libexecdir},%{_sbindir},%{_sysconfdir},/var/cache}
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
55touch $RPM_BUILD_ROOT/var/cache/envcache
56touch $RPM_BUILD_ROOT%{_sysconfdir}/{profile,csh}.env
57
58%clean
59rm -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.087834 seconds and 4 git commands to generate.