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