Accepting request 116503 from home:adra:branches:devel:tools
Update to version 1.18.3, Updated License to GPL-3.0+, Updated build dependencies, Use update-alternatives for switching between sysv and tcp ipc OBS-URL: https://build.opensuse.org/request/show/116503 OBS-URL: https://build.opensuse.org/package/show/devel:tools/fakeroot?expand=0&rev=4
This commit is contained in:
parent
6a5a73a0c5
commit
f3fa2031e2
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:fc99ff04f0136b243b4c5e48fa223c2a998a6d990b3fc90a3f89ad99dd9f661d
|
|
||||||
size 298714
|
|
@ -1,4 +0,0 @@
|
|||||||
# This line is mandatory to access the configuration functions
|
|
||||||
from Config import *
|
|
||||||
|
|
||||||
addFilter ("fakeroot.*shlib-policy-name-error")
|
|
@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 29 18:53:40 UTC 2012 - asterios.dramis@gmail.com
|
||||||
|
|
||||||
|
- Update to version 1.18.3:
|
||||||
|
See
|
||||||
|
http://packages.debian.org/changelogs/pool/main/f/fakeroot/fakeroot_1.18.3-1/changelog#version1.18.3-1
|
||||||
|
for changes.
|
||||||
|
- Changes based on spec-cleaner run.
|
||||||
|
- Updated License to GPL-3.0+.
|
||||||
|
- Removed libacl-devel and glibc-devel from build dependencies (not needed).
|
||||||
|
Added gcc-c++ as build dependency.
|
||||||
|
- Install libfakeroot-* libraries in %{_libdir}/libfakeroot/ instead of
|
||||||
|
%{_libdir}/.
|
||||||
|
- Use update-alternatives for switching between sysv and tcp ipc.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Nov 20 22:46:42 UTC 2010 - jw@novell.com
|
Sat Nov 20 22:46:42 UTC 2010 - jw@novell.com
|
||||||
|
|
||||||
|
227
fakeroot.spec
227
fakeroot.spec
@ -1,96 +1,167 @@
|
|||||||
# norootforbuild
|
#
|
||||||
|
# spec file for package fakeroot
|
||||||
|
#
|
||||||
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
Name: fakeroot
|
Name: fakeroot
|
||||||
Group: Development/Languages
|
Version: 1.18.3
|
||||||
Version: 1.9.3
|
Release: 0
|
||||||
Release: 1
|
License: GPL-3.0+
|
||||||
License: UNKNOWN
|
|
||||||
Summary: Gives a fake root environment
|
Summary: Gives a fake root environment
|
||||||
Autoreqprov: on
|
Url: http://fakeroot.alioth.debian.org/
|
||||||
Source0: fakeroot-1.9.3.tar.bz2
|
Group: Development/Tools/Other
|
||||||
BuildRoot:%{_tmppath}/%{name}-%{version}-build
|
Source0: http://ftp.debian.org/debian/pool/main/f/fakeroot/%{name}_%{version}.orig.tar.bz2
|
||||||
# build essentials
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: sharutils
|
BuildRequires: sharutils
|
||||||
BuildRequires: libacl-devel
|
Requires(post): update-alternatives
|
||||||
BuildRequires: glibc-devel
|
Requires(preun): update-alternatives
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
fakeroot runs a command in an environment were it appears to have root
|
fakeroot runs a command in an environment wherein it appears to have
|
||||||
privileges for file manipulation. This is useful for allowing users to
|
root privileges for file manipulation. fakeroot works by replacing the
|
||||||
create archives (tar, ar, .deb etc.) with files in them with root
|
file manipulation library functions (chmod(2), stat(2) etc.) by ones
|
||||||
permissions/ownership. Without fakeroot one would have to have root
|
that simulate the effect the real library functions would have had,
|
||||||
privileges to create the constituent files of the archives with the
|
had the user really been root.
|
||||||
correct permissions and ownership, and then pack them up, or one would
|
|
||||||
have to construct the archives directly, without using the archiver.
|
|
||||||
|
|
||||||
fakeroot works by replacing the file manipulation library functions
|
|
||||||
(chmod(), stat() etc.) by ones that simulate the effect the real
|
|
||||||
library functions would have had, had the user really been root. These
|
|
||||||
wrapper functions are in a shared library libfakeroot.so*, which is
|
|
||||||
loaded through the LD_PRELOAD mechanism of the dynamic loader.
|
|
||||||
|
|
||||||
This package is intended to enable something like:
|
|
||||||
dpkg-buildpackage -rfakeroot
|
|
||||||
i.e. to remove the need to become root for a package build.
|
|
||||||
This is done by setting LD_PRELOAD to libfakeroot.so,
|
|
||||||
which provides wrappers around getuid, chown, chmod, mknod,
|
|
||||||
stat, and so on, thereby creating a fake root environment.
|
|
||||||
|
|
||||||
fakeroot requires SYSV IPC or TCP to operate.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
unset POSIXLY_CORRECT
|
unset POSIXLY_CORRECT
|
||||||
mkdir obj-sysv obj-tcp
|
|
||||||
(
|
for type in sysv tcp; do
|
||||||
cd obj-sysv
|
mkdir obj-$type
|
||||||
CFLAGS="$RPM_OPT_FLAGS" ../configure --prefix=/usr --mandir=/usr/share/man \
|
cd obj-$type
|
||||||
--libdir=%_libdir --program-suffix=-sysv --disable-static
|
cat >> configure << 'EOF'
|
||||||
make
|
#! /bin/sh
|
||||||
)
|
exec ../configure "$@"
|
||||||
(
|
EOF
|
||||||
cd obj-tcp
|
chmod +x configure
|
||||||
CFLAGS="$RPM_OPT_FLAGS" ../configure --prefix=/usr \
|
%configure \
|
||||||
--mandir=/usr/share/man --libdir=%_libdir --with-ipc=tcp \
|
--libdir=%{_libdir}/libfakeroot \
|
||||||
--program-suffix=-tcp --disable-static
|
--disable-static \
|
||||||
make
|
--with-ipc=$type \
|
||||||
)
|
--program-suffix=-$type
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
cd ..
|
||||||
|
done
|
||||||
|
|
||||||
%install
|
%install
|
||||||
unset POSIXLY_CORRECT
|
unset POSIXLY_CORRECT
|
||||||
make -C obj-tcp DESTDIR="$RPM_BUILD_ROOT" install
|
|
||||||
mv $RPM_BUILD_ROOT/%_libdir/libfakeroot-0.so \
|
|
||||||
$RPM_BUILD_ROOT/%_libdir/libfakeroot-tcp.so
|
|
||||||
make -C obj-sysv DESTDIR="$RPM_BUILD_ROOT" install
|
|
||||||
mv $RPM_BUILD_ROOT/%_libdir/libfakeroot-0.so \
|
|
||||||
$RPM_BUILD_ROOT/%_libdir/libfakeroot-sysv.so
|
|
||||||
ln -fs /usr/bin/fakeroot-sysv $RPM_BUILD_ROOT/usr/bin/fakeroot
|
|
||||||
ln -fs /usr/bin/faked $RPM_BUILD_ROOT/usr/bin/faked
|
|
||||||
|
|
||||||
# cleanup
|
for type in sysv tcp; do
|
||||||
rm $RPM_BUILD_ROOT/%_libdir/libfakeroot.*a
|
make -C obj-$type install DESTDIR=%{buildroot}
|
||||||
rm $RPM_BUILD_ROOT/%_libdir/libfakeroot.so
|
mv %{buildroot}%{_libdir}/libfakeroot/libfakeroot-0.so \
|
||||||
rm -fr $RPM_BUILD_ROOT/%{_mandir}/es
|
%{buildroot}%{_libdir}/libfakeroot/libfakeroot-$type.so
|
||||||
rm -fr $RPM_BUILD_ROOT/%{_mandir}/fr
|
rm -f %{buildroot}%{_libdir}/libfakeroot/libfakeroot.so
|
||||||
rm -fr $RPM_BUILD_ROOT/%{_mandir}/sv
|
rm -f %{buildroot}%{_libdir}/libfakeroot/libfakeroot.*a
|
||||||
rm -fr $RPM_BUILD_ROOT/%{_mandir}/nl
|
done
|
||||||
gzip -9 $RPM_BUILD_ROOT/%{_mandir}/man?/*.?
|
|
||||||
|
|
||||||
%files -n fakeroot
|
%fdupes -s %{buildroot}
|
||||||
%defattr(-,root,root)
|
|
||||||
/usr/bin/faked
|
|
||||||
/usr/bin/fakeroot
|
|
||||||
/usr/bin/faked-sysv
|
|
||||||
/usr/bin/faked-tcp
|
|
||||||
/usr/bin/fakeroot-sysv
|
|
||||||
/usr/bin/fakeroot-tcp
|
|
||||||
%_libdir/libfakeroot-sysv.so
|
|
||||||
%_libdir/libfakeroot-tcp.so
|
|
||||||
%doc AUTHORS BUGS COPYING DEBUG INSTALL README
|
|
||||||
%doc %{_mandir}/man?/*
|
|
||||||
|
|
||||||
%clean
|
# Create ghost files for "update-alternatives"
|
||||||
rm -rf $RPM_BUILD_ROOT
|
ln -sf faked-sysv %{buildroot}%{_bindir}/faked
|
||||||
|
ln -sf fakeroot-sysv %{buildroot}%{_bindir}/fakeroot
|
||||||
|
ln -sf faked-sysv.1.gz %{buildroot}%{_mandir}/man1/faked.1.gz
|
||||||
|
ln -sf fakeroot-sysv.1.gz %{buildroot}%{_mandir}/man1/fakeroot.1.gz
|
||||||
|
for i in de es fr nl sv; do
|
||||||
|
ln -sf faked-sysv.1.gz %{buildroot}%{_mandir}/$i/man1/faked.1.gz
|
||||||
|
ln -sf fakeroot-sysv.1.gz %{buildroot}%{_mandir}/$i/man1/fakeroot.1.gz
|
||||||
|
done
|
||||||
|
|
||||||
|
%check
|
||||||
|
for type in sysv tcp; do
|
||||||
|
make -C obj-$type check
|
||||||
|
done
|
||||||
|
|
||||||
|
%post
|
||||||
|
/usr/sbin/update-alternatives --install %{_bindir}/fakeroot fakeroot %{_bindir}/fakeroot-sysv 20 \
|
||||||
|
--slave %{_bindir}/faked faked %{_bindir}/faked-sysv \
|
||||||
|
--slave %{_mandir}/man1/fakeroot.1.gz fakeroot.1.gz %{_mandir}/man1/fakeroot-sysv.1.gz \
|
||||||
|
--slave %{_mandir}/man1/faked.1.gz faked.1.gz %{_mandir}/man1/faked-sysv.1.gz \
|
||||||
|
--slave %{_mandir}/de/man1/fakeroot.1.gz fakeroot.de.1.gz %{_mandir}/de/man1/fakeroot-sysv.1.gz \
|
||||||
|
--slave %{_mandir}/de/man1/faked.1.gz faked.de.1.gz %{_mandir}/de/man1/faked-sysv.1.gz \
|
||||||
|
--slave %{_mandir}/es/man1/fakeroot.1.gz fakeroot.es.1.gz %{_mandir}/es/man1/fakeroot-sysv.1.gz \
|
||||||
|
--slave %{_mandir}/es/man1/faked.1.gz faked.es.1.gz %{_mandir}/es/man1/faked-sysv.1.gz \
|
||||||
|
--slave %{_mandir}/fr/man1/fakeroot.1.gz fakeroot.fr.1.gz %{_mandir}/fr/man1/fakeroot-sysv.1.gz \
|
||||||
|
--slave %{_mandir}/fr/man1/faked.1.gz faked.fr.1.gz %{_mandir}/fr/man1/faked-sysv.1.gz \
|
||||||
|
--slave %{_mandir}/nl/man1/fakeroot.1.gz fakeroot.nl.1.gz %{_mandir}/nl/man1/fakeroot-sysv.1.gz \
|
||||||
|
--slave %{_mandir}/nl/man1/faked.1.gz faked.nl.1.gz %{_mandir}/nl/man1/faked-sysv.1.gz \
|
||||||
|
--slave %{_mandir}/sv/man1/fakeroot.1.gz fakeroot.sv.1.gz %{_mandir}/sv/man1/fakeroot-sysv.1.gz \
|
||||||
|
--slave %{_mandir}/sv/man1/faked.1.gz faked.sv.1.gz %{_mandir}/sv/man1/faked-sysv.1.gz
|
||||||
|
|
||||||
|
/usr/sbin/update-alternatives --install %{_bindir}/fakeroot fakeroot %{_bindir}/fakeroot-tcp 10 \
|
||||||
|
--slave %{_bindir}/faked faked %{_bindir}/faked-tcp \
|
||||||
|
--slave %{_mandir}/man1/fakeroot.1.gz fakeroot.1.gz %{_mandir}/man1/fakeroot-tcp.1.gz \
|
||||||
|
--slave %{_mandir}/man1/faked.1.gz faked.1.gz %{_mandir}/man1/faked-tcp.1.gz \
|
||||||
|
--slave %{_mandir}/de/man1/fakeroot.1.gz fakeroot.de.1.gz %{_mandir}/de/man1/fakeroot-tcp.1.gz \
|
||||||
|
--slave %{_mandir}/de/man1/faked.1.gz faked.de.1.gz %{_mandir}/de/man1/faked-tcp.1.gz \
|
||||||
|
--slave %{_mandir}/es/man1/fakeroot.1.gz fakeroot.es.1.gz %{_mandir}/es/man1/fakeroot-tcp.1.gz \
|
||||||
|
--slave %{_mandir}/es/man1/faked.1.gz faked.es.1.gz %{_mandir}/es/man1/faked-tcp.1.gz \
|
||||||
|
--slave %{_mandir}/fr/man1/fakeroot.1.gz fakeroot.fr.1.gz %{_mandir}/fr/man1/fakeroot-tcp.1.gz \
|
||||||
|
--slave %{_mandir}/fr/man1/faked.1.gz faked.fr.1.gz %{_mandir}/fr/man1/faked-tcp.1.gz \
|
||||||
|
--slave %{_mandir}/nl/man1/fakeroot.1.gz fakeroot.nl.1.gz %{_mandir}/nl/man1/fakeroot-tcp.1.gz \
|
||||||
|
--slave %{_mandir}/nl/man1/faked.1.gz faked.nl.1.gz %{_mandir}/nl/man1/faked-tcp.1.gz \
|
||||||
|
--slave %{_mandir}/sv/man1/fakeroot.1.gz fakeroot.sv.1.gz %{_mandir}/sv/man1/fakeroot-tcp.1.gz \
|
||||||
|
--slave %{_mandir}/sv/man1/faked.1.gz faked.sv.1.gz %{_mandir}/sv/man1/faked-tcp.1.gz
|
||||||
|
|
||||||
|
%preun
|
||||||
|
if [ $1 -eq 0 ]; then
|
||||||
|
/usr/sbin/update-alternatives --remove fakeroot %{_bindir}/fakeroot-sysv
|
||||||
|
/usr/sbin/update-alternatives --remove fakeroot %{_bindir}/fakeroot-tcp
|
||||||
|
fi
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc AUTHORS BUGS COPYING DEBUG README doc/README.saving
|
||||||
|
%ghost %{_bindir}/faked
|
||||||
|
%ghost %{_bindir}/fakeroot
|
||||||
|
%{_bindir}/faked-sysv
|
||||||
|
%{_bindir}/faked-tcp
|
||||||
|
%{_bindir}/fakeroot-sysv
|
||||||
|
%{_bindir}/fakeroot-tcp
|
||||||
|
%{_libdir}/libfakeroot/
|
||||||
|
%ghost %{_mandir}/man1/faked.1%{ext_man}
|
||||||
|
%ghost %{_mandir}/man1/fakeroot.1%{ext_man}
|
||||||
|
%{_mandir}/man1/faked-*.1%{ext_man}
|
||||||
|
%{_mandir}/man1/fakeroot-*.1%{ext_man}
|
||||||
|
%dir %{_mandir}/nl/
|
||||||
|
%dir %{_mandir}/nl/man1/
|
||||||
|
%dir %{_mandir}/sv/
|
||||||
|
%dir %{_mandir}/sv/man1/
|
||||||
|
%ghost %lang(de) %{_mandir}/de/man1/faked.1%{ext_man}
|
||||||
|
%ghost %lang(de) %{_mandir}/de/man1/fakeroot.1%{ext_man}
|
||||||
|
%lang(de) %{_mandir}/de/man1/faked-*.1%{ext_man}
|
||||||
|
%lang(de) %{_mandir}/de/man1/fakeroot-*.1%{ext_man}
|
||||||
|
%ghost %lang(es) %{_mandir}/es/man1/faked.1%{ext_man}
|
||||||
|
%ghost %lang(es) %{_mandir}/es/man1/fakeroot.1%{ext_man}
|
||||||
|
%lang(es) %{_mandir}/es/man1/faked-*.1%{ext_man}
|
||||||
|
%lang(es) %{_mandir}/es/man1/fakeroot-*.1%{ext_man}
|
||||||
|
%ghost %lang(fr) %{_mandir}/fr/man1/faked.1%{ext_man}
|
||||||
|
%ghost %lang(fr) %{_mandir}/fr/man1/fakeroot.1%{ext_man}
|
||||||
|
%lang(fr) %{_mandir}/fr/man1/faked-*.1%{ext_man}
|
||||||
|
%lang(fr) %{_mandir}/fr/man1/fakeroot-*.1%{ext_man}
|
||||||
|
%ghost %lang(nl) %{_mandir}/nl/man1/faked.1%{ext_man}
|
||||||
|
%ghost %lang(nl) %{_mandir}/nl/man1/fakeroot.1%{ext_man}
|
||||||
|
%lang(nl) %{_mandir}/nl/man1/faked-*.1%{ext_man}
|
||||||
|
%lang(nl) %{_mandir}/nl/man1/fakeroot-*.1%{ext_man}
|
||||||
|
%ghost %lang(sv) %{_mandir}/sv/man1/faked.1%{ext_man}
|
||||||
|
%ghost %lang(sv) %{_mandir}/sv/man1/fakeroot.1%{ext_man}
|
||||||
|
%lang(sv) %{_mandir}/sv/man1/faked-*.1%{ext_man}
|
||||||
|
%lang(sv) %{_mandir}/sv/man1/fakeroot-*.1%{ext_man}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
3
fakeroot_1.18.3.orig.tar.bz2
Normal file
3
fakeroot_1.18.3.orig.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7604f7e2e097997f78843982196af54559974a68dd3e8665d22f1883dd6d3ff1
|
||||||
|
size 307252
|
Loading…
Reference in New Issue
Block a user