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