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