Summary: Gives a fake root environment Summary(pl.UTF-8): "Podrobione" środowiska roota Summary(pt_BR.UTF-8): Cria um falso ambiente de root Name: fakeroot Version: 1.26 Release: 1 License: GPL v3+ Group: Development/Tools Source0: http://ftp.debian.org/debian/pool/main/f/fakeroot/%{name}_%{version}.orig.tar.gz # Source0-md5: cb1c68f2597f0a064232a841050eb6f2 BuildRequires: acl-devel BuildRequires: autoconf >= 2.61 BuildRequires: automake BuildRequires: libtool >= 2:2.2 BuildRequires: po4a Requires: util-linux BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define pkglibdir %{_libdir}/libfakeroot %description fakeroot runs a command in an environment were it appears to have root privileges for file manipulation. This is useful for allowing users to create archives (tar, ar, .deb etc.) with files in them with root permissions/ownership. Without fakeroot one would have to have root privileges to create the constituent files of the archives with the correct permissions and ownership, and then pack them up, or one would have to construct the archives directly, without using the archiver. fakeroot works by replacing the file manipulation library functions (chmod(), stat() etc.) by ones that simulate the effect the real library functions would have had, had the user really been root. These wrapper functions are in a shared library libfakeroot.so*, which is loaded through the LD_PRELOAD mechanism of the dynamic loader. %description -l pl.UTF-8 Program fakeroot uruchamia polecenia w środowisku, gdzie wydaje im się, że mają uprawnienia roota przy operacjach na plikach. Jest to przydatne, aby umożliwić użytkownikom na tworzenie archiwów (tar, ar, deb) z plikami mającymi będącymi własnością roota. Bez fakeroota do tworzenia takich plików z właściwymi uprawnieniami potrzebne byłyby uprawnienia roota lub bezpośrednie tworzenie archiwów bez użycia normalnego archiwizera. fakeroot działa poprzez podmianę funkcji bibliotecznych operujących na plikach (chmod(), stat() itp.) na takie, które symulują efekt prawdziwych funkcji gdyby były uruchamiane z uprawnieniami roota. Te specjalne funkcje znajdują się w bibliotece dzielonej libfakeroot.so* ładowanej poprzez mechanizm LD_PRELOAD. %description -l pt_BR.UTF-8 Este pacote permite a construção de pacotes por usuários sem privilégios de root. Isso e' feito utilizando libfakeroot.so com LD_PRELOAD, que prove implementacoes de getuid, chown, chmod, mknod, stat e outros, criando um falso ambiente de root. %prep %setup -q %build %{__libtoolize} %{__aclocal} %{__autoconf} %{__autoheader} %{__automake} %configure \ --libdir=%{pkglibdir} \ --disable-static cd doc po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg cd .. %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %{__rm} $RPM_BUILD_ROOT%{pkglibdir}/libfakeroot.la %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc AUTHORS BUGS DEBUG README %attr(755,root,root) %{_bindir}/faked %attr(755,root,root) %{_bindir}/fakeroot %dir %{pkglibdir} %attr(755,root,root) %{pkglibdir}/libfakeroot*.so %{_mandir}/man1/faked.1* %{_mandir}/man1/fakeroot.1* %lang(de) %{_mandir}/de/man1/* %lang(es) %{_mandir}/es/man1/* %lang(fr) %{_mandir}/fr/man1/* %lang(nl) %{_mandir}/nl/man1/* %lang(pt) %{_mandir}/pt/man1/* %lang(sv) %{_mandir}/sv/man1/*