]> git.pld-linux.org Git - packages/elfutils.git/blobdiff - elfutils.spec
- updated pl.po-update and inline patches
[packages/elfutils.git] / elfutils.spec
index 753856d6859d22a0b540dbb0aab4eb1e61b697f0..18f7179f3560feaa4b5f9b8dfbe8fc22255972a7 100644 (file)
@@ -5,13 +5,12 @@
 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.135
+Version:       0.157
 Release:       1
-License:       GPL v2 with OSL linking exception
+License:       GPL v2+ or LGPL v3+ (libraries), GPL v3+ (programs)
 Group:         Development/Tools
-# http://ftp.fi.muni.cz/pub/linux/fedora/linux/development/source/SRPMS/
-Source0:       %{name}-%{version}.tar.gz
-# Source0-md5: 2fb0d3d9cdb22f71ad0df91d676bb2eb
+Source0:       https://fedorahosted.org/releases/e/l/elfutils/%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5: 0f6746a55f0bc26558f0c162fe137fa1
 Patch0:                %{name}-pl.po.patch
 Patch1:                %{name}-debian-manpages.patch
 Patch2:                %{name}-portability.patch
@@ -20,10 +19,11 @@ Patch4:             %{name}-align.patch
 Patch5:                %{name}-paxflags.patch
 Patch6:                %{name}-sparc.patch
 Patch7:                %{name}-inline.patch
-Patch8:                %{name}-Werror.patch
-#URL:          file://home/devel/drepper
-BuildRequires: autoconf >= 2.59
-BuildRequires: automake >= 1:1.7
+Patch8:                %{name}-scanf.patch
+Patch9:                %{name}-strings_c.patch
+URL:           https://fedorahosted.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
@@ -43,6 +43,10 @@ BuildRoot:   %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # fails to build with -Wl,-s
 %define                filterout_ld    (-Wl,)?-[sS] (-Wl,)?--strip.*
+%if %{with tests} && 0%(echo %{rpmcflags} | grep -q '\<-g' ; echo $?)
+# tests require debug symbols
+%define                specflags       -g
+%endif
 
 %define                programprefix   eu-
 
@@ -143,23 +147,25 @@ programowalny interfejs asemblera.
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p0
 
-rm -f po/stamp-po
+%{__rm} po/stamp-po
 
 # temporarily disable test failing on specific archs
-%ifarch alpha
-%{__perl} -pi -e 's/run-elflint-self.sh//' tests/Makefile
-%endif
+# - as for 0.155/binutils-2.23.52.0.1 this fails also on x86
+#ifarch alpha
+%{__perl} -pi -e 's/run-elflint-self.sh//' tests/Makefile.am
+#endif
 
 %build
 #%%{__gettextize}
-%{__aclocal}
+%{__aclocal} -I m4
 %{__autoheader}
 %{__autoconf}
 %{__automake}
 %configure \
-       --program-prefix=%{programprefix} \
-       --enable-shared
+       --disable-werror \
+       --program-prefix=%{programprefix}
 
 # make check depends on test-nlist not stripped
 %{__perl} -pi -e 's/^(LDFLAGS =.*)-s/$1/' tests/Makefile
@@ -199,12 +205,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %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
-%ghost %attr(755,root,root) %{_libdir}/libasm.so.*
+%attr(755,root,root) %ghost %{_libdir}/libasm.so.1
 %attr(755,root,root) %{_libdir}/libdw-*.so
-%ghost %attr(755,root,root) %{_libdir}/libdw.so.*
+%attr(755,root,root) %ghost %{_libdir}/libdw.so.1
 %dir %{_libdir}/elfutils
 %attr(755,root,root) %{_libdir}/elfutils/lib*.so
 %{_mandir}/man1/eu-*.1*
@@ -224,7 +230,7 @@ rm -rf $RPM_BUILD_ROOT
 %files libelf -f %{name}.lang
 %defattr(644,root,root,755)
 %attr(755,root,root) /%{_lib}/libelf-*.so
-%ghost %attr(755,root,root) /%{_lib}/libelf.so.*
+%attr(755,root,root) %ghost /%{_lib}/libelf.so.1
 
 %files static
 %defattr(644,root,root,755)
This page took 0.053161 seconds and 4 git commands to generate.