@ -1,13 +1,18 @@
Summary: Gives a fake root environment
Summary: Gives a fake root environment
Name: fakeroot
Name: fakeroot
Version: 1.20.2
Version: 1.20.2
Release: 1%{?dist}
Release: 2%{?dist}
License: GPL+
# setenv.c: LGPLv2+
# contrib/Fakeroot-Stat-1.8.8: Perl (GPL+ or Artistic)
# the rest: GPLv3+
License: GPLv3+ and LGPLv2+ and (GPL+ or Artistic)
Group: Development/Tools
Group: Development/Tools
URL: http://fakeroot.alioth.debian.org/
URL: http://fakeroot.alioth.debian.org/
Source0: http://ftp.debian.org/debian/pool/main/f/fakeroot/%{name}_%{version}.orig.tar.bz2
Source0: http://ftp.debian.org/debian/pool/main/f/fakeroot/%{name}_%{version}.orig.tar.bz2
# Address some POSIX-types related problems.
# Address some POSIX-types related problems.
Patch0: fakeroot-inttypes.patch
Patch0: fakeroot-inttypes.patch
# Fix LD_LIBRARY_PATH for multilib: https://bugzilla.redhat.com/show_bug.cgi?id=1241527
Patch1: fakeroot-multilib.patch
BuildRequires: /usr/bin/getopt
BuildRequires: /usr/bin/getopt
BuildRequires: libcap-devel
BuildRequires: libcap-devel
# uudecode used by tests/tartest
# uudecode used by tests/tartest
@ -36,9 +41,10 @@ This package contains the libraries required by %{name}.
%prep
%prep
%setup -q
%setup -q
%patch0 -p1 -b .inttypes
%patch0 -p1 -b .inttypes
%patch1 -p1 -b .multilib
for file in ./doc/*/*.1; do
for file in ./doc/*/*.1; do
iconv -f latin1 -t utf8 < $file > $file.new
iconv -f latin1 -t utf8 < $file > $file.new && \
mv -f $file.new $file
mv -f $file.new $file
done
done
@ -64,10 +70,8 @@ done
%install
%install
for type in sysv tcp; do
for type in sysv tcp; do
make -C obj-$type install libdir=%{_libdir}/libfakeroot DESTDIR=%{buildroot}
make -C obj-$type install libdir=%{_libdir}/libfakeroot DESTDIR=%{buildroot}
chmod 644 %{buildroot}%{_libdir}/libfakeroot/libfakeroot-0.so
mv %{buildroot}%{_libdir}/libfakeroot/libfakeroot-0.so \
mv %{buildroot}%{_libdir}/libfakeroot/libfakeroot-0.so \
%{buildroot}%{_libdir}/libfakeroot/libfakeroot-$type.so
%{buildroot}%{_libdir}/libfakeroot/libfakeroot-$type.so
strip -s %{buildroot}%{_libdir}/libfakeroot/libfakeroot-$type.so
rm -f %{buildroot}%{_libdir}/libfakeroot/libfakeroot.so
rm -f %{buildroot}%{_libdir}/libfakeroot/libfakeroot.so
rm -f %{buildroot}%{_libdir}/libfakeroot/libfakeroot.*la
rm -f %{buildroot}%{_libdir}/libfakeroot/libfakeroot.*la
%find_lang faked-$type --without-mo --with-man
%find_lang faked-$type --without-mo --with-man
@ -172,6 +176,13 @@ fi
%ghost %{_libdir}/libfakeroot/libfakeroot-0.so
%ghost %{_libdir}/libfakeroot/libfakeroot-0.so
%changelog
%changelog
* Mon Sep 28 2015 Dominik Mierzejewski <rpm@greysector.net> - 1.20.2-2
- fix LD_LIBRARY_PATH for multilib environment (bug 1241527)
- update License: tag
- don't strip the libraries in install, just keep the executable bit
- when converting from latin1 to utf8, don't use the converted file
if the conversion failed: the pt manpage is already utf8
* Thu Jun 18 2015 Dominik Mierzejewski <rpm@greysector.net> - 1.20.2-1
* Thu Jun 18 2015 Dominik Mierzejewski <rpm@greysector.net> - 1.20.2-1
- update to 1.20.2
- update to 1.20.2
- alternativize libfakeroot and faked as well (bug 817088)
- alternativize libfakeroot and faked as well (bug 817088)