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
-Version: 0.153
-Release: 1
-License: GPL v2 with OSL linking exception
+Version: 0.177
+Release: 0.1
+License: GPL v2+ or LGPL v3+ (libraries), GPL v3+ (programs)
Group: Development/Tools
-Source0: https://fedorahosted.org/releases/e/l/elfutils/%{version}/%{name}-%{version}.tar.bz2
-# Source0-md5: 289a146182bc29f0236eaa15d8ebdf98
+Source0: https://sourceware.org/elfutils/ftp/%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5: 0b583722f911e1632544718d502aab87
Patch0: %{name}-pl.po.patch
Patch1: %{name}-debian-manpages.patch
-Patch2: %{name}-portability.patch
-Patch3: %{name}-robustify.patch
-Patch4: %{name}-align.patch
-Patch5: %{name}-paxflags.patch
-Patch6: %{name}-sparc.patch
-Patch7: %{name}-inline.patch
-Patch8: %{name}-scanf.patch
-Patch9: %{name}-strings_c.patch
-Patch10: %{name}-upstream.patch
-URL: https://fedorahosted.org/elfutils/
+Patch2: %{name}-awk.patch
+Patch3: %{name}-align.patch
+Patch4: %{name}-paxflags.patch
+Patch5: %{name}-sparc.patch
+URL: https://sourceware.org/elfutils/
BuildRequires: autoconf >= 2.63
-BuildRequires: automake >= 1:1.8
-BuildRequires: gcc >= 5:3.4
-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: automake >= 1:1.11
+BuildRequires: bzip2-devel
+BuildRequires: gawk
+BuildRequires: gcc >= 6:4.3
+BuildRequires: gettext-tools
+BuildRequires: glibc-devel >= 6:2.7
+BuildRequires: libstdc++-devel
BuildRequires: perl-tools-pod
BuildRequires: rpmbuild(macros) >= 1.315
BuildRequires: sharutils
+BuildRequires: xz-devel
+BuildRequires: zlib-devel
%if %{with tests} && %(test -d /proc/self ; echo $?)
# native test needs proc (for libdwfl -p PID to work)
BuildRequires: MOUNTED_PROC
Summary(pl.UTF-8): Część programistyczna bibliotek do obsługi skompilowanych obiektów
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: bzip2-devel
+Requires: xz-devel
+Requires: zlib-devel
Obsoletes: libelf-devel
%description devel
%patch3 -p1
%patch4 -p1
%patch5 -p1
-%patch6 -p1
-%patch7 -p1
-%patch8 -p1
-%patch9 -p0
-%patch10 -p1
%{__rm} po/stamp-po
-# temporarily disable test failing on specific archs
-%ifarch alpha
-%{__perl} -pi -e 's/run-elflint-self.sh//' tests/Makefile
+# temporarily disable failing tests (depending on arch)
+%ifarch x32
+%{__sed} -i -e 's/run-backtrace-native-biarch.sh//' tests/Makefile.am
%endif
%build
%{__autoconf}
%{__automake}
%configure \
+ --disable-silent-rules \
--disable-werror \
--program-prefix=%{programprefix}
install debian/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
-mv $RPM_BUILD_ROOT%{_libdir}/{libelf-*.so,libelf.so.*} $RPM_BUILD_ROOT/%{_lib}
+%{__mv} $RPM_BUILD_ROOT%{_libdir}/{libelf-*.so,libelf.so.*} $RPM_BUILD_ROOT/%{_lib}
ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libelf-*.so) \
- $RPM_BUILD_ROOT%{_libdir}/libelf.so
+ $RPM_BUILD_ROOT%{_libdir}/libelf.so
%find_lang %{name}
%files
%defattr(644,root,root,755)
-%doc AUTHORS EXCEPTION NEWS NOTES README THANKS TODO
+%doc AUTHORS CONTRIBUTING ChangeLog NEWS NOTES README THANKS TODO
%attr(755,root,root) %{_bindir}/eu-*
%attr(755,root,root) %{_libdir}/libasm-*.so
%attr(755,root,root) %ghost %{_libdir}/libasm.so.1
%{_includedir}/gelf.h
%{_includedir}/libelf.h
%{_includedir}/nlist.h
+%{_pkgconfigdir}/libdw.pc
+%{_pkgconfigdir}/libelf.pc
%files libelf -f %{name}.lang
%defattr(644,root,root,755)