]>
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 |
fbc16365 AM |
5 | Version: 1.23 |
6 | Release: 1 | |
0f0ec730 | 7 | License: GPL v3+ |
35e12584 | 8 | Group: Development/Tools |
fbc16365 AM |
9 | Source0: http://ftp.debian.org/debian/pool/main/f/fakeroot/%{name}_%{version}.orig.tar.xz |
10 | # Source0-md5: b82c5e99b6365a838e73d05718083f6a | |
6bc5834b | 11 | Patch0: hide-dlsym-error.patch |
e264c59f | 12 | BuildRequires: acl-devel |
73357782 JB |
13 | BuildRequires: autoconf >= 2.61 |
14 | BuildRequires: automake | |
15 | BuildRequires: libtool >= 2:2.2 | |
94c3bd58 | 16 | BuildRequires: po4a |
bb6b43bc | 17 | Requires: util-linux |
35e12584 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2f07d362 | 19 | |
0466826c | 20 | %define pkglibdir %{_libdir}/libfakeroot |
b90629cc | 21 | |
2f07d362 | 22 | %description |
b90629cc JB |
23 | fakeroot runs a command in an environment were it appears to have root |
24 | privileges for file manipulation. This is useful for allowing users to | |
25 | create archives (tar, ar, .deb etc.) with files in them with root | |
26 | permissions/ownership. Without fakeroot one would have to have root | |
27 | privileges to create the constituent files of the archives with the | |
28 | correct permissions and ownership, and then pack them up, or one would | |
29 | have to construct the archives directly, without using the archiver. | |
2f07d362 | 30 | |
b90629cc JB |
31 | fakeroot works by replacing the file manipulation library functions |
32 | (chmod(), stat() etc.) by ones that simulate the effect the real | |
33 | library functions would have had, had the user really been root. These | |
34 | wrapper functions are in a shared library libfakeroot.so*, which is | |
35 | loaded through the LD_PRELOAD mechanism of the dynamic loader. | |
2f07d362 | 36 | |
a0c9a688 JR |
37 | %description -l pl.UTF-8 |
38 | Program fakeroot uruchamia polecenia w środowisku, gdzie wydaje im | |
39 | się, że mają uprawnienia roota przy operacjach na plikach. Jest to | |
40 | przydatne, aby umożliwić użytkownikom na tworzenie archiwów (tar, ar, | |
41 | deb) z plikami mającymi będącymi własnością roota. Bez fakeroota do | |
42 | tworzenia takich plików z właściwymi uprawnieniami potrzebne byłyby | |
43 | uprawnienia roota lub bezpośrednie tworzenie archiwów bez użycia | |
b90629cc | 44 | normalnego archiwizera. |
562c57eb | 45 | |
a0c9a688 JR |
46 | fakeroot działa poprzez podmianę funkcji bibliotecznych operujących na |
47 | plikach (chmod(), stat() itp.) na takie, które symulują efekt | |
48 | prawdziwych funkcji gdyby były uruchamiane z uprawnieniami roota. Te | |
49 | specjalne funkcje znajdują się w bibliotece dzielonej libfakeroot.so* | |
50 | ładowanej poprzez mechanizm LD_PRELOAD. | |
562c57eb | 51 | |
a0c9a688 JR |
52 | %description -l pt_BR.UTF-8 |
53 | Este pacote permite a construção de pacotes por usuários sem | |
54 | privilégios de root. Isso e' feito utilizando libfakeroot.so com | |
0fa81aee PG |
55 | LD_PRELOAD, que prove implementacoes de getuid, chown, chmod, mknod, |
56 | stat e outros, criando um falso ambiente de root. | |
57 | ||
2f07d362 | 58 | %prep |
7d9ddc0c | 59 | %setup -q |
6bc5834b | 60 | %patch0 -p1 |
2f07d362 | 61 | |
62 | %build | |
73357782 JB |
63 | %{__libtoolize} |
64 | %{__aclocal} | |
65 | %{__autoconf} | |
66 | %{__autoheader} | |
67 | %{__automake} | |
b90629cc | 68 | %configure \ |
0466826c | 69 | --libdir=%{pkglibdir} \ |
b90629cc | 70 | --disable-static |
9ad58498 | 71 | |
94c3bd58 JB |
72 | cd doc |
73 | po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg | |
74 | cd .. | |
9ad58498 | 75 | |
35e12584 | 76 | %{__make} |
2f07d362 | 77 | |
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
0737423d PG |
80 | %{__make} install \ |
81 | DESTDIR=$RPM_BUILD_ROOT | |
35e12584 | 82 | |
0466826c | 83 | %{__rm} $RPM_BUILD_ROOT%{pkglibdir}/libfakeroot.la |
b90629cc | 84 | |
2f07d362 | 85 | %clean |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
dd43f5d6 JB |
88 | %post -p /sbin/ldconfig |
89 | %postun -p /sbin/ldconfig | |
1c78e63d | 90 | |
2f07d362 | 91 | %files |
35e12584 | 92 | %defattr(644,root,root,755) |
0f0ec730 | 93 | %doc AUTHORS BUGS DEBUG README |
e264c59f JB |
94 | %attr(755,root,root) %{_bindir}/faked |
95 | %attr(755,root,root) %{_bindir}/fakeroot | |
0466826c JB |
96 | %dir %{pkglibdir} |
97 | %attr(755,root,root) %{pkglibdir}/libfakeroot*.so | |
e264c59f JB |
98 | %{_mandir}/man1/faked.1* |
99 | %{_mandir}/man1/fakeroot.1* | |
96b70856 | 100 | %lang(de) %{_mandir}/de/man1/* |
b90629cc JB |
101 | %lang(es) %{_mandir}/es/man1/* |
102 | %lang(fr) %{_mandir}/fr/man1/* | |
773d56ea | 103 | %lang(nl) %{_mandir}/nl/man1/* |
35215a63 | 104 | %lang(pt) %{_mandir}/pt/man1/* |
b90629cc | 105 | %lang(sv) %{_mandir}/sv/man1/* |