]> git.pld-linux.org Git - packages/fakeroot.git/blob - fakeroot.spec
- updated to 1.17
[packages/fakeroot.git] / fakeroot.spec
1 Summary:        Gives a fake root environment
2 Summary(pl.UTF-8):      "Podrobione" środowiska roota
3 Summary(pt_BR.UTF-8):   Cria um falso ambiente de root
4 Name:           fakeroot
5 Version:        1.17
6 Release:        1
7 License:        GPL v3+
8 Group:          Development/Tools
9 Source0:        ftp://ftp.debian.org/debian/pool/main/f/fakeroot/%{name}_%{version}.orig.tar.bz2
10 # Source0-md5:  1adc603cc18eedee11d9889798c863db
11 URL:            http://fakeroot.alioth.debian.org/
12 BuildRequires:  acl-devel
13 Requires:       util-linux
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _libdir         %{_prefix}/%{_lib}/libfakeroot
17
18 %description
19 fakeroot runs a command in an environment were it appears to have root
20 privileges for file manipulation. This is useful for allowing users to
21 create archives (tar, ar, .deb etc.) with files in them with root
22 permissions/ownership. Without fakeroot one would have to have root
23 privileges to create the constituent files of the archives with the
24 correct permissions and ownership, and then pack them up, or one would
25 have to construct the archives directly, without using the archiver.
26
27 fakeroot works by replacing the file manipulation library functions
28 (chmod(), stat() etc.) by ones that simulate the effect the real
29 library functions would have had, had the user really been root. These
30 wrapper functions are in a shared library libfakeroot.so*, which is
31 loaded through the LD_PRELOAD mechanism of the dynamic loader.
32
33 %description -l pl.UTF-8
34 Program fakeroot uruchamia polecenia w środowisku, gdzie wydaje im
35 się, że mają uprawnienia roota przy operacjach na plikach. Jest to
36 przydatne, aby umożliwić użytkownikom na tworzenie archiwów (tar, ar,
37 deb) z plikami mającymi będącymi własnością roota. Bez fakeroota do
38 tworzenia takich plików z właściwymi uprawnieniami potrzebne byłyby
39 uprawnienia roota lub bezpośrednie tworzenie archiwów bez użycia
40 normalnego archiwizera.
41
42 fakeroot działa poprzez podmianę funkcji bibliotecznych operujących na
43 plikach (chmod(), stat() itp.) na takie, które symulują efekt
44 prawdziwych funkcji gdyby były uruchamiane z uprawnieniami roota. Te
45 specjalne funkcje znajdują się w bibliotece dzielonej libfakeroot.so*
46 ładowanej poprzez mechanizm LD_PRELOAD.
47
48 %description -l pt_BR.UTF-8
49 Este pacote permite a construção de pacotes por usuários sem
50 privilégios de root. Isso e' feito utilizando libfakeroot.so com
51 LD_PRELOAD, que prove implementacoes de getuid, chown, chmod, mknod,
52 stat e outros, criando um falso ambiente de root.
53
54 %prep
55 %setup -q
56
57 %build
58 %configure \
59         --disable-static
60 %{__make}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 rm -f $RPM_BUILD_ROOT%{_libdir}/libfakeroot.la
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %post   -p /sbin/ldconfig
74 %postun -p /sbin/ldconfig
75
76 %files
77 %defattr(644,root,root,755)
78 %doc AUTHORS BUGS DEBUG README
79 %attr(755,root,root) %{_bindir}/faked
80 %attr(755,root,root) %{_bindir}/fakeroot
81 %dir %{_libdir}
82 %attr(755,root,root) %{_libdir}/libfakeroot*.so
83 %{_mandir}/man1/faked.1*
84 %{_mandir}/man1/fakeroot.1*
85 %lang(es) %{_mandir}/es/man1/*
86 %lang(fr) %{_mandir}/fr/man1/*
87 %lang(nl) %{_mandir}/nl/man1/*
88 %lang(sv) %{_mandir}/sv/man1/*
This page took 0.373193 seconds and 3 git commands to generate.