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