]> git.pld-linux.org Git - packages/fakeroot.git/blobdiff - fakeroot.spec
hide debug errors with glibc 2.24
[packages/fakeroot.git] / fakeroot.spec
index 194c4bdef831879b6c24f8eeaf04780648850a6a..bfbbb5371ebe6593178959a122e55dceacb77874 100644 (file)
@@ -1,22 +1,27 @@
+# TODO
+# - why the library can't be in standard %{_libdir}?
+
 Summary:       Gives a fake root environment
 Summary(pl.UTF-8):     "Podrobione" środowiska roota
 Summary(pt_BR.UTF-8):  Cria um falso ambiente de root
 Name:          fakeroot
-Version:       1.20.2
-Release:       1
+Version:       1.21
+Release:       2
 License:       GPL v3+
 Group:         Development/Tools
-Source0:       ftp://ftp.debian.org/debian/pool/main/f/fakeroot/%{name}_%{version}.orig.tar.bz2
-# Source0-md5: a4b4564a75024aa96c86e4d1017ac786
+Source0:       ftp://ftp.debian.org/debian/pool/main/f/fakeroot/%{name}_%{version}.orig.tar.gz
+# Source0-md5: be5c9a0e516869fca4a6758105968e5a
+Patch0:                hide-dlsym-error.patch
 URL:           http://fakeroot.alioth.debian.org/
 BuildRequires: acl-devel
 BuildRequires: autoconf >= 2.61
 BuildRequires: automake
 BuildRequires: libtool >= 2:2.2
+BuildRequires: po4a
 Requires:      util-linux
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _libdir         %{_prefix}/%{_lib}/libfakeroot
+%define                _libexecdir             %{_prefix}/%{_lib}/libfakeroot
 
 %description
 fakeroot runs a command in an environment were it appears to have root
@@ -56,6 +61,7 @@ stat e outros, criando um falso ambiente de root.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -64,16 +70,21 @@ stat e outros, criando um falso ambiente de root.
 %{__autoheader}
 %{__automake}
 %configure \
+       --libdir=%{_libexecdir} \
        --disable-static
+
+cd doc
+po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg
+cd ..
+
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/libfakeroot.la
+%{__rm} $RPM_BUILD_ROOT%{_libexecdir}/libfakeroot.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -86,8 +97,8 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS BUGS DEBUG README
 %attr(755,root,root) %{_bindir}/faked
 %attr(755,root,root) %{_bindir}/fakeroot
-%dir %{_libdir}
-%attr(755,root,root) %{_libdir}/libfakeroot*.so
+%dir %{_libexecdir}
+%attr(755,root,root) %{_libexecdir}/libfakeroot*.so
 %{_mandir}/man1/faked.1*
 %{_mandir}/man1/fakeroot.1*
 %lang(de) %{_mandir}/de/man1/*
This page took 0.141069 seconds and 4 git commands to generate.