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