Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > bede71aec4a9cf96d6fec3438a4895c6 > files > 3

elfutils-0.176-1.mga7.src.rpm

%define major 1
%define libname	%mklibname %{name} %{major}
%define libnamedevel %mklibname %{name} -d
%define libnamestaticdevel %mklibname %{name} -d -s

%define _program_prefix eu-

Summary:	A collection of utilities and DSOs to handle ELF files and DWARF data
Name:		elfutils
Version:	0.176
Release:	%mkrel 1
License:	GPLv2+
Group:		Development/Other
Url:		http://elfutils.org/
Source0:	https://sourceware.org/elfutils/ftp/%{version}/%{name}-%{version}.tar.bz2
Source1:	https://sourceware.org/elfutils/ftp/%{version}/%{name}-%{version}.tar.bz2.sig

# Mageia patches

# Upstream patches

# Security patches

BuildRequires:	gcc >= 4.4
BuildRequires:	binutils >= 1:2.32-0.1
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	glibc-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	bzip2-devel
BuildRequires:	lzma-devel
BuildRequires:	gettext-devel
Requires:	%{libname} = %{version}-%{release}

%description
Elfutils is a collection of utilities, including stack (to show
backtraces), nm (for listing symbols from object files), size
(for listing the section sizes of an object or archive file),
strip (for discarding symbols), readelf (to see the raw ELF file
structures), elflint (to check for well-formed ELF files) and
elfcompress (to compress or decompress ELF sections).

%package -n	%{libnamedevel}
Summary:	Development libraries to handle compiled objects
Group:		Development/Other
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel
Provides:	lib%{name}-devel
Obsoletes:	libelf-devel < 0.137
Obsoletes:	libelf0-devel < 0.137
Obsoletes:	%{_lib}%{name}1-devel < 0.137
Provides:	libelf-devel libelf0-devel

%description -n	%{libnamedevel}
This package contains the headers and dynamic libraries to create
applications for handling compiled objects.

   * libelf allows you to access the internals of the ELF object file
     format, so you can see the different sections of an ELF file.
   * libebl provides some higher-level ELF access functionality.
   * libasm provides a programmable assembler interface.

%package -n	%{libnamestaticdevel}
Summary:	Static libraries for development with libelfutils
Group:		Development/Other
Requires:	%{libnamedevel} = %{version}-%{release}
Provides:	%{name}-static-devel
Obsoletes:	libelf-static-devel < 0.137
Obsoletes:	libelf0-static-devel < 0.137
Provides:	libelf-static-devel
Provides:	libelf0-static-devel
Obsoletes:	%{_lib}%{name}1-static-devel < 0.137

%description -n	%{libnamestaticdevel}
This package contains the static libraries to create applications for
handling compiled objects.

%package -n	%{libname}
Summary:	Libraries to read and write ELF files
Group:		System/Libraries
Provides:	lib%{name}
Obsoletes:	libelf < 0.137
Obsoletes:	libelf0 < 0.137
Provides:	libelf
Provides:	libelf0
Conflicts:	elfutils <= 0.169-1.mga6

%description -n	%{libname}
This package provides DSOs which allow reading and writing ELF files
on a high level.  Third party programs depend on this package to read
internals of ELF files.  The programs of the elfutils package use it
also to generate new ELF files.

Also included are numerous helper libraries which implement DWARF,
ELF, and machine-specific ELF handling.

%prep
%setup -q

# Mageia patches:

# Upstream patches:

# Security patches:

find . -name \*.sh ! -perm -0100 -print | xargs chmod +x

%build
autoreconf -fiv

# no thread safety please: http://www.mail-archive.com/elfutils-devel@lists.fedorahosted.org/msg01893.html
%configure2_5x \
	%{?_program_prefix: --program-prefix=%{_program_prefix}} \
	--with-zlib \
	--with-bzlib \
	--with-lzma

%make_build

%check
%make_build check

%install
%make_install

chmod +x %{buildroot}%{_libdir}/lib*.so*
chmod +x %{buildroot}%{_libdir}/elfutils/lib*.so*

%find_lang %{name}

%files -f %{name}.lang
%doc NOTES README NEWS TODO
%{_bindir}/eu-*
%dir %{_libdir}/elfutils
%{_libdir}/elfutils/lib*.so

%files -n %{libname}
%license COPYING-GPLV2 COPYING-LGPLV3
%{_libdir}/libelf-%{version}.so
%{_libdir}/libelf*.so.%{major}{,.*}
%{_libdir}/libasm-%{version}.so
%{_libdir}/libasm.so.*
%{_libdir}/libdw-%{version}.so
%{_libdir}/libdw.so.*
%dir %{_libdir}/elfutils
%{_libdir}/elfutils/lib*.so

%files -n %{libnamedevel}
%{_includedir}/dwarf.h
%{_includedir}/libelf.h
%{_includedir}/gelf.h
%{_includedir}/nlist.h
%dir %{_includedir}/elfutils
%{_includedir}/elfutils/*.h
%{_libdir}/libelf.so
%{_libdir}/libdw.so
%{_libdir}/libasm.so
%{_libdir}/pkgconfig/libdw.pc
%{_libdir}/pkgconfig/libelf.pc

%files -n %{libnamestaticdevel}
%{_libdir}/*.a


%changelog
* Fri Mar 15 2019 shlomif <shlomif> 0.176-1.mga7
+ Revision: 1377672
- New version 0.176

* Thu Feb 07 2019 tmb <tmb> 0.175-2.mga7
+ Revision: 1363867
- rebuild with new binutils

* Wed Nov 28 2018 shlomif <shlomif> 0.175-1.mga7
+ Revision: 1336542
- New version 0.175

* Sun Sep 23 2018 umeabot <umeabot> 0.173-2.mga7
+ Revision: 1297584
- Mageia 7 Mass Rebuild

* Sat Jul 07 2018 shlomif <shlomif> 0.173-1.mga7
+ Revision: 1242551
- New version 0.173

* Fri Jun 22 2018 shlomif <shlomif> 0.172-1.mga7
+ Revision: 1238815
- New version 0.172

* Sat Jun 09 2018 shlomif <shlomif> 0.171-1.mga7
+ Revision: 1235699
- New version 0.171

* Thu Sep 21 2017 akien <akien> 0.170-1.mga7
+ Revision: 1156561
- Version 0.170
- Add P0 to workaround failing test-strip-nothing.sh
- Remove (visibly) unnecessary hacks to Makefile and _disable_ld_no_undefined

* Mon Jul 31 2017 tv <tv> 0.169-2.mga7
+ Revision: 1133077
- move some libs in lib pkg so that biarch works regarding lib{,64}gstreamer1.0_0
- make libs executable so that we generate provides
- make all test executables, thus fixing some failures
- drop MIPS/Sparc patches (unsupported arches)

* Tue May 09 2017 luigiwalser <luigiwalser> 0.169-1.mga6
+ Revision: 1099878
- 0.169
- remove upstreamed security patches

* Tue May 02 2017 neoclust <neoclust> 0.168-2.mga6
+ Revision: 1098701
- Add Patches100-106 - Fixes CVE-2017-760[7-9], CVE-2017-761[0-3] (mga#20557)

* Sun Jan 01 2017 luigiwalser <luigiwalser> 0.168-1.mga6
+ Revision: 1078951
- 0.168
- update URLs

* Mon Oct 10 2016 akien <akien> 0.167-2.mga6
+ Revision: 1060007
- Add upstream patch from Mark Wielaard (rhbz#1380961)

* Wed Sep 07 2016 luigiwalser <luigiwalser> 0.167-1.mga6
+ Revision: 1050395
- 0.167
- rediff patch 10

* Fri Apr 15 2016 shlomif <shlomif> 0.166-1.mga6
+ Revision: 1002758
- New version 0.166

* Mon Jan 25 2016 luigiwalser <luigiwalser> 0.165-1.mga6
+ Revision: 927210
- rediff patch 10
- 0.165

* Tue Nov 17 2015 blino <blino> 0.164-1.mga6
+ Revision: 903727
- remove unapplied skip_elflint_self_test patch
- drop old gcc compat and check conditionals (like Fedora)
- 0.164
- fix mips backend to remove old-style function definitions
  (see upstream commits aa1c2ca808a267a5a3c372de5461c1f67f9a8869
   and 1ccdfb683ad6c7e59793136c3a657ddf131cafd1)

* Mon Sep 14 2015 blino <blino> 0.163-1.mga6
+ Revision: 879050
- 0.163
- drop dir traversal patch (merged upstream)
- sync portability patch with upstream
- rediff MIPS patch

* Fri Aug 21 2015 tmb <tmb> 0.160-5.mga6
+ Revision: 867564
- rebuild for new gcc

* Tue Dec 30 2014 luigiwalser <luigiwalser> 0.160-4.mga5
+ Revision: 807228
- add upstream patch to fix ar extraction being able to overwrite
  files in root (CVE-2014-9447)

* Wed Oct 15 2014 umeabot <umeabot> 0.160-3.mga5
+ Revision: 743683
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 0.160-2.mga5
+ Revision: 678987
- Mageia 5 Mass Rebuild

* Sun Aug 31 2014 luigiwalser <luigiwalser> 0.160-1.mga5
+ Revision: 670039
- update patch 10 (mips_backend) for elfutils-0.160
- 0.160
- update portability patch

* Fri May 23 2014 luigiwalser <luigiwalser> 0.159-1.mga5
+ Revision: 625178
- 0.159
- update description (from fedora)
- remove upstreamed patches (CVE-2014-0172, mod-e_type, robustify)
- update portability patch

* Wed Apr 09 2014 luigiwalser <luigiwalser> 0.158-1.mga5
+ Revision: 613059
- 0.158
- rediff patch 10 (mips backend)
- update portability and robustify patches
- remove patch 13 (signed comparison) fixed upstream
- add mod-e_type patch from fedora
- add upstream patch to fix CVE-2014-0172

* Tue Oct 22 2013 umeabot <umeabot> 0.157-3.mga4
+ Revision: 545647
- Mageia 4 Mass Rebuild

* Wed Oct 16 2013 tmb <tmb> 0.157-2.mga4
+ Revision: 501531
- rebuild for new gcc & binutils

* Thu Oct 10 2013 luigiwalser <luigiwalser> 0.157-1.mga4
+ Revision: 494927
- 0.157
- remove upstreamed patches 3 (binutils) and 15 (automake 1.13)
- enable parallel make for make check (necessary fixes made upstream)
- rediff patches 10 (mips backend) and 13 (signed comparison)
- update portability and robustify patches

* Sun Jan 13 2013 cjw <cjw> 0.155-2.mga3
+ Revision: 380039
- patch15: fix tests with automake 1.13
- don't use parallel make for the tests
+ umeabot <umeabot>
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Thu Dec 13 2012 rtp <rtp> 0.155-1.mga3
+ Revision: 330093
- update to 0.155
- refresh mips, robustify, portability patches
- update patch for ld/13621
- drop old patches
- don't apply patch making always succeed elflint patch as it conflicts with
  patch for ld/13621

* Tue Aug 28 2012 tv <tv> 0.154-3.mga3
+ Revision: 284670
+ rebuild (emptylog)

* Tue Aug 28 2012 tv <tv> 0.154-2.mga3
+ Revision: 284669
- resync & reeanble robustify/portability patches from FC
- add patches from FC for dwz support

* Wed Jun 27 2012 tv <tv> 0.154-1.mga3
+ Revision: 264240
- new release

* Sun Jun 03 2012 tv <tv> 0.153-1.mga3
+ Revision: 253626
- new release

* Sat Apr 16 2011 pterjan <pterjan> 0.152-1.mga1
+ Revision: 86612
- Update to 0.152
- Fix Source URL
+ rtp <rtp>
- rediff mips_backend patch (back to a "normal" 40-50k size instead of 600k)
- fix some signed vs unsigned comparisons (appears only on some arches)
- run elflint test but don't make it fail on arm/mips.

* Sat Jan 08 2011 blino <blino> 0.150-1.mga1
+ Revision: 1135
- remove old distro stuff
- imported package elfutils