File libelf0.spec of Package libelf0

#
# spec file for package libelf0 (Version 0.8.12)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libelf0
Summary:        An ELF Object File Access Library
Version:        0.8.12
Release:        1
License:        LGPL v2.1 or later
Group:          System/Libraries
Url:            http://www.mr511.de/software/
Source:         libelf-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# bug437293
%ifarch ppc64
Obsoletes:      libelf-64bit
%endif
#
Provides:       libelf = %{version}
Obsoletes:      libelf <= 0.8.10

%description
The libelf package contains a library for accessing ELF object files.
Libelf allows you to access the internals of the ELF object file
format, so you can see the different sections of an ELF file.



Authors:
--------
    Michael Riepe <michael@stud.uni-hannover.de>

%package devel
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/C and C++
License:        LGPL v2.1 or later
# bug437293
%ifarch ppc64
Obsoletes:      libelf-devel-64bit
%endif
#
Requires:       glibc-devel, %{name} = %{version}
Conflicts:      libelf1-devel

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.



Authors:
--------
    Michael Riepe <michael@stud.uni-hannover.de>

%prep
%setup -q -n libelf-%{version}

%build
%configure
make

%install
make install instroot=$RPM_BUILD_ROOT
# remove the wrapper includes
rm -f $RPM_BUILD_ROOT%{_includedir}/*.h
# remove unneeded *.la and *.a files
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%find_lang libelf

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files -f libelf.lang
%defattr(-,root,root)
%{_libdir}/libelf.so.*

%files devel
%defattr(-,root,root)
%doc README ChangeLog COPYING.LIB VERSION
%{_libdir}/libelf.so
%{_libdir}/libelf.a
%{_libdir}/pkgconfig/libelf.pc
%{_includedir}/libelf

%changelog
openSUSE Build Service is sponsored by