File fakechroot.spec of Package fakechroot

# norootforbuild

Name: fakechroot
Group: Development/Languages
Version: 2.6
Release: 1.3
License: UNKNOWN
Summary: gives a fake chroot environment
Autoreqprov: on
Source0: fakechroot-2.6.tar.bz2
Patch0:  basefixes.diff
BuildRoot:%{_tmppath}/%{name}-%{version}-build

%description
This package provides a library which overrides libc functions, so
it is possible to use root-specific tools without root privileges.

In fake chroot you can install i.e. Debian bootstrap, create developer's
environment and build packages inside chroot'ed system using standard
non-root user account.


%prep
%setup -n %{name}-%{version}
%patch0 -p1

%build
unset POSIXLY_CORRECT
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./configure --prefix=/usr \
    --mandir=/usr/share/man --libdir=/usr/lib --disable-static
make

%install
unset POSIXLY_CORRECT
make DESTDIR="$RPM_BUILD_ROOT" install
libtool --finish $RPM_BUILD_ROOT/usr/lib/fakechroot
rm -f $RPM_BUILD_ROOT/usr/lib/fakechroot/libfakechroot.la

%files -n fakechroot
%defattr(-,root,root)
/usr/bin/fakechroot
%dir /usr/lib/fakechroot
/usr/lib/fakechroot/libfakechroot.so
%doc %{_mandir}/man?/*

%clean
rm -rf $RPM_BUILD_ROOT

%changelog
openSUSE Build Service is sponsored by