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