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