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