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