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