1 | #
|
---|
2 | # $Id$
|
---|
3 | #
|
---|
4 | # Used if virtual name != real name (perl, ...)
|
---|
5 | #%define srcname PBPKG
|
---|
6 |
|
---|
7 | Summary: Execute commands in a chroot environment
|
---|
8 | Summary(fr): Exécute des commandes dans un environnement chrooté
|
---|
9 |
|
---|
10 | Name: PBREALPKG
|
---|
11 | Version: PBVER
|
---|
12 | Release: PBTAGPBSUF
|
---|
13 | License: PBLIC
|
---|
14 | Group: PBGRP
|
---|
15 | Url: PBURL
|
---|
16 | Source: PBREPO/PBSRC
|
---|
17 | PBPATCHSRC
|
---|
18 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
|
---|
19 | Requires: PBDEP e2fsprogs pam
|
---|
20 | BuildRequires: PBBUILDDEP e2fsprogs-devel e2fsprogs pam-devel gcc-c++
|
---|
21 |
|
---|
22 | %description
|
---|
23 | PBDESC
|
---|
24 |
|
---|
25 | %description -l fr
|
---|
26 | Exécute des commandes dans un environnement chrooté
|
---|
27 |
|
---|
28 | %prep
|
---|
29 | %setup -q
|
---|
30 | # Used if virtual name != real name (perl, ...)
|
---|
31 | #%setup -q -n %{srcname}-%{version}
|
---|
32 | PBPATCHCMD
|
---|
33 |
|
---|
34 | %build
|
---|
35 | %configure UUID_CFLAGS=-I/usr/include UUID_LIBS=-luuid --enable-static --disable-shared --localstatedir=%{_var}
|
---|
36 | #--enable-dchroot --enable-dchroot-dsa
|
---|
37 | make %{?_smp_mflags}
|
---|
38 |
|
---|
39 | %install
|
---|
40 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
41 | make DESTDIR=$RPM_BUILD_ROOT install
|
---|
42 |
|
---|
43 | %clean
|
---|
44 | %{__rm} -rf $RPM_BUILD_ROOT
|
---|
45 |
|
---|
46 | %files
|
---|
47 | %defattr(-,root,root,-)
|
---|
48 | %doc ChangeLog
|
---|
49 | %doc INSTALL THANKS README TODO NEWS
|
---|
50 | %config /etc/pam.d/schroot
|
---|
51 | %config /etc/schroot/*
|
---|
52 | %attr(4755, root, root) %{_bindir}/schroot
|
---|
53 | %{_mandir}/*/*
|
---|
54 | %dir %{_includedir}/sbuild
|
---|
55 | %{_includedir}/sbuild/*
|
---|
56 | %{_libdir}/pkgconfig/sbuild.pc
|
---|
57 | %{_libdir}/libsbuild.a
|
---|
58 | %{_libdir}/libsbuild.la
|
---|
59 | %dir %{_libexecdir}/schroot
|
---|
60 | %{_libexecdir}/schroot/*
|
---|
61 | %{_datadir}/locale/*/*/schroot.mo
|
---|
62 | %dir %{_localstatedir}/schroot
|
---|
63 | %{_localstatedir}/schroot/*
|
---|
64 |
|
---|
65 | %changelog
|
---|
66 | PBLOG
|
---|
67 |
|
---|