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