Summary: A collection of utilities and DSOs to handle compiled objects
Summary(pl.UTF-8): Zestaw narzędzi i bibliotek do obsługi skompilowanych obiektów
Name: elfutils
Summary: A collection of utilities and DSOs to handle compiled objects
Summary(pl.UTF-8): Zestaw narzędzi i bibliotek do obsługi skompilowanych obiektów
Name: elfutils
-# http://download.fedora.redhat.com/pub/fedora/linux/core/development/source/SRPMS/
-# or abuse systemtap to get .tar.gz directly
-Source0: ftp://sources.redhat.com/pub/systemtap/elfutils/%{name}-%{version}.tar.gz
-# Source0-md5: 4da87e49616101ec256e313218c421ef
+Source0: https://fedorahosted.org/releases/e/l/elfutils/%{name}-%{version}.tar.bz2
+# Source0-md5: 2d0fe5651c0de1fd28e7dd006effe7d1
Patch0: %{name}-pl.po.patch
Patch1: %{name}-debian-manpages.patch
Patch2: %{name}-portability.patch
Patch0: %{name}-pl.po.patch
Patch1: %{name}-debian-manpages.patch
Patch2: %{name}-portability.patch
Patch4: %{name}-align.patch
Patch5: %{name}-paxflags.patch
Patch6: %{name}-sparc.patch
Patch4: %{name}-align.patch
Patch5: %{name}-paxflags.patch
Patch6: %{name}-sparc.patch
-Patch7: %{name}-strip-copy-symtab.patch
-Patch8: %{name}-gcc4.patch
-Patch9: %{name}-inline.patch
-Patch10: %{name}-Werror.patch
-#URL: file://home/devel/drepper
+Patch7: %{name}-inline.patch
+Patch8: %{name}-Werror.patch
+Patch9: %{name}-bashism.patch
+Patch10: %{name}-scanf.patch
+URL: https://fedorahosted.org/elfutils/
BuildRequires: gettext-devel
%ifarch %{x8664} alpha ia64 ppc64 s390x sparc64
# PR*FAST{8,16} in <inttypes.h> were broken for 64-bit archs in older versions
# also needed for nanosecond timestamps on alpha
BuildRequires: glibc-devel >= 6:2.3.4
%endif
BuildRequires: gettext-devel
%ifarch %{x8664} alpha ia64 ppc64 s390x sparc64
# PR*FAST{8,16} in <inttypes.h> were broken for 64-bit archs in older versions
# also needed for nanosecond timestamps on alpha
BuildRequires: glibc-devel >= 6:2.3.4
%endif
# fails to build with -Wl,-s
%define filterout_ld (-Wl,)?-[sS] (-Wl,)?--strip.*
# fails to build with -Wl,-s
%define filterout_ld (-Wl,)?-[sS] (-Wl,)?--strip.*
-# strip-test5 needs adjusting for strip-copy-symtab patch (already in FC, but not worth bothering)
-sed -i -e 's/ run-strip-test5\.sh / /' tests/Makefile.am
+# temporarily disable test failing on specific archs
+%ifarch alpha
+%{__perl} -pi -e 's/run-elflint-self.sh//' tests/Makefile
+%endif
# make check depends on test-nlist not stripped
%{__perl} -pi -e 's/^(LDFLAGS =.*)-s/$1/' tests/Makefile
# make check depends on test-nlist not stripped
%{__perl} -pi -e 's/^(LDFLAGS =.*)-s/$1/' tests/Makefile
-mv $RPM_BUILD_ROOT%{_libdir}/libelf-*.so $RPM_BUILD_ROOT/%{_lib}
-ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib} ; echo libelf-*.so) \
+mv $RPM_BUILD_ROOT%{_libdir}/{libelf-*.so,libelf.so.*} $RPM_BUILD_ROOT/%{_lib}
+ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libelf-*.so) \
%files
%defattr(644,root,root,755)
%doc AUTHORS EXCEPTION NEWS NOTES README THANKS TODO
%files
%defattr(644,root,root,755)
%doc AUTHORS EXCEPTION NEWS NOTES README THANKS TODO
%attr(755,root,root) %{_libdir}/libasm-*.so
%ghost %attr(755,root,root) %{_libdir}/libasm.so.*
%attr(755,root,root) %{_libdir}/libdw-*.so
%ghost %attr(755,root,root) %{_libdir}/libdw.so.*
%dir %{_libdir}/elfutils
%attr(755,root,root) %{_libdir}/elfutils/lib*.so
%attr(755,root,root) %{_libdir}/libasm-*.so
%ghost %attr(755,root,root) %{_libdir}/libasm.so.*
%attr(755,root,root) %{_libdir}/libdw-*.so
%ghost %attr(755,root,root) %{_libdir}/libdw.so.*
%dir %{_libdir}/elfutils
%attr(755,root,root) %{_libdir}/elfutils/lib*.so
%files devel
%defattr(644,root,root,755)
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libdw.so
%attr(755,root,root) %{_libdir}/libelf.so
%{_libdir}/libebl.a
%attr(755,root,root) %{_libdir}/libdw.so
%attr(755,root,root) %{_libdir}/libelf.so
%{_libdir}/libebl.a
%files libelf -f %{name}.lang
%defattr(644,root,root,755)
%files libelf -f %{name}.lang
%defattr(644,root,root,755)