]>
Commit | Line | Data |
---|---|---|
35e12584 | 1 | Summary: Gives a fake root environment |
0f0ec730 | 2 | Summary(pl.UTF-8): "Podrobione" środowiska roota |
38cc73b7 | 3 | Summary(pt_BR.UTF-8): Cria um falso ambiente de root |
35e12584 | 4 | Name: fakeroot |
e6def714 | 5 | Version: 1.26 |
fbc16365 | 6 | Release: 1 |
0f0ec730 | 7 | License: GPL v3+ |
35e12584 | 8 | Group: Development/Tools |
e6def714 AM |
9 | Source0: http://ftp.debian.org/debian/pool/main/f/fakeroot/%{name}_%{version}.orig.tar.gz |
10 | # Source0-md5: cb1c68f2597f0a064232a841050eb6f2 | |
e264c59f | 11 | BuildRequires: acl-devel |
73357782 JB |
12 | BuildRequires: autoconf >= 2.61 |
13 | BuildRequires: automake | |
14 | BuildRequires: libtool >= 2:2.2 | |
94c3bd58 | 15 | BuildRequires: po4a |
bb6b43bc | 16 | Requires: util-linux |
35e12584 | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2f07d362 | 18 | |
0466826c | 19 | %define pkglibdir %{_libdir}/libfakeroot |
b90629cc | 20 | |
2f07d362 | 21 | %description |
b90629cc JB |
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. | |
2f07d362 | 29 | |
b90629cc JB |
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. | |
2f07d362 | 35 | |
a0c9a688 JR |
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 | |
b90629cc | 43 | normalnego archiwizera. |
562c57eb | 44 | |
a0c9a688 JR |
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. | |
562c57eb | 50 | |
a0c9a688 JR |
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 | |
0fa81aee PG |
54 | LD_PRELOAD, que prove implementacoes de getuid, chown, chmod, mknod, |
55 | stat e outros, criando um falso ambiente de root. | |
56 | ||
2f07d362 | 57 | %prep |
7d9ddc0c | 58 | %setup -q |
2f07d362 | 59 | |
60 | %build | |
73357782 JB |
61 | %{__libtoolize} |
62 | %{__aclocal} | |
63 | %{__autoconf} | |
64 | %{__autoheader} | |
65 | %{__automake} | |
b90629cc | 66 | %configure \ |
0466826c | 67 | --libdir=%{pkglibdir} \ |
b90629cc | 68 | --disable-static |
9ad58498 | 69 | |
94c3bd58 JB |
70 | cd doc |
71 | po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg | |
72 | cd .. | |
9ad58498 | 73 | |
35e12584 | 74 | %{__make} |
2f07d362 | 75 | |
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
0737423d PG |
78 | %{__make} install \ |
79 | DESTDIR=$RPM_BUILD_ROOT | |
35e12584 | 80 | |
0466826c | 81 | %{__rm} $RPM_BUILD_ROOT%{pkglibdir}/libfakeroot.la |
b90629cc | 82 | |
2f07d362 | 83 | %clean |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
dd43f5d6 JB |
86 | %post -p /sbin/ldconfig |
87 | %postun -p /sbin/ldconfig | |
1c78e63d | 88 | |
2f07d362 | 89 | %files |
35e12584 | 90 | %defattr(644,root,root,755) |
0f0ec730 | 91 | %doc AUTHORS BUGS DEBUG README |
e264c59f JB |
92 | %attr(755,root,root) %{_bindir}/faked |
93 | %attr(755,root,root) %{_bindir}/fakeroot | |
0466826c JB |
94 | %dir %{pkglibdir} |
95 | %attr(755,root,root) %{pkglibdir}/libfakeroot*.so | |
e264c59f JB |
96 | %{_mandir}/man1/faked.1* |
97 | %{_mandir}/man1/fakeroot.1* | |
96b70856 | 98 | %lang(de) %{_mandir}/de/man1/* |
b90629cc JB |
99 | %lang(es) %{_mandir}/es/man1/* |
100 | %lang(fr) %{_mandir}/fr/man1/* | |
773d56ea | 101 | %lang(nl) %{_mandir}/nl/man1/* |
35215a63 | 102 | %lang(pt) %{_mandir}/pt/man1/* |
b90629cc | 103 | %lang(sv) %{_mandir}/sv/man1/* |