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
8 Group: Development/Tools
9 Source0: ftp://ftp.debian.org/debian/pool/main/f/fakeroot/%{name}_%{version}.orig.tar.bz2
10 # Source0-md5: ef246a7cadf85282180a1e27f7377a26
11 URL: http://fakeroot.alioth.debian.org/
12 BuildRequires: acl-devel
13 BuildRequires: autoconf >= 2.61
14 BuildRequires: automake
15 BuildRequires: libtool >= 2:2.2
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _libdir %{_prefix}/%{_lib}/libfakeroot
22 fakeroot runs a command in an environment were it appears to have root
23 privileges for file manipulation. This is useful for allowing users to
24 create archives (tar, ar, .deb etc.) with files in them with root
25 permissions/ownership. Without fakeroot one would have to have root
26 privileges to create the constituent files of the archives with the
27 correct permissions and ownership, and then pack them up, or one would
28 have to construct the archives directly, without using the archiver.
30 fakeroot works by replacing the file manipulation library functions
31 (chmod(), stat() etc.) by ones that simulate the effect the real
32 library functions would have had, had the user really been root. These
33 wrapper functions are in a shared library libfakeroot.so*, which is
34 loaded through the LD_PRELOAD mechanism of the dynamic loader.
36 %description -l pl.UTF-8
37 Program fakeroot uruchamia polecenia w środowisku, gdzie wydaje im
38 się, że mają uprawnienia roota przy operacjach na plikach. Jest to
39 przydatne, aby umożliwić użytkownikom na tworzenie archiwów (tar, ar,
40 deb) z plikami mającymi będącymi własnością roota. Bez fakeroota do
41 tworzenia takich plików z właściwymi uprawnieniami potrzebne byłyby
42 uprawnienia roota lub bezpośrednie tworzenie archiwów bez użycia
43 normalnego archiwizera.
45 fakeroot działa poprzez podmianę funkcji bibliotecznych operujących na
46 plikach (chmod(), stat() itp.) na takie, które symulują efekt
47 prawdziwych funkcji gdyby były uruchamiane z uprawnieniami roota. Te
48 specjalne funkcje znajdują się w bibliotece dzielonej libfakeroot.so*
49 ładowanej poprzez mechanizm LD_PRELOAD.
51 %description -l pt_BR.UTF-8
52 Este pacote permite a construção de pacotes por usuários sem
53 privilégios de root. Isso e' feito utilizando libfakeroot.so com
54 LD_PRELOAD, que prove implementacoes de getuid, chown, chmod, mknod,
55 stat e outros, criando um falso ambiente de root.
71 rm -rf $RPM_BUILD_ROOT
74 DESTDIR=$RPM_BUILD_ROOT
76 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfakeroot.la
79 rm -rf $RPM_BUILD_ROOT
81 %post -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
85 %defattr(644,root,root,755)
86 %doc AUTHORS BUGS DEBUG README
87 %attr(755,root,root) %{_bindir}/faked
88 %attr(755,root,root) %{_bindir}/fakeroot
90 %attr(755,root,root) %{_libdir}/libfakeroot*.so
91 %{_mandir}/man1/faked.1*
92 %{_mandir}/man1/fakeroot.1*
93 %lang(de) %{_mandir}/de/man1/*
94 %lang(es) %{_mandir}/es/man1/*
95 %lang(fr) %{_mandir}/fr/man1/*
96 %lang(nl) %{_mandir}/nl/man1/*
97 %lang(sv) %{_mandir}/sv/man1/*