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