File elfio.spec of Package elfio
#
# spec file for package elfio
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: elfio
Version: 3.9
Release: 0
Summary: C++ library for reading and generating ELF files
License: MIT
URL: http://elfio.sourceforge.net/
Source0: https://downloads.sf.net/elfio/elfio-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
%description
ELFIO is a small, header-only C++ library that provides a simple interface for
reading and generating files in ELF binary format.
It is used as a standalone library - it is not dependent on any other product
or project. Adhering to ISO C++, it compiles on a wide variety of
architectures and compilers.
While the library is easy to use, some basic knowledge of the ELF binary
format is required. Such Information can easily be found on the Web.
%package devel
Summary: C++ library for reading and generating ELF files
BuildArch: noarch
%description devel
ELFIO is a small, header-only C++ library that provides a simple interface for
reading and generating files in ELF binary format.
It is used as a standalone library - it is not dependent on any other product
or project. Adhering to ISO C++, it compiles on a wide variety of
architectures and compilers.
While the library is easy to use, some basic knowledge of the ELF binary
format is required. Such Information can easily be found on the Web.
%prep
%autosetup -p1
%build
%cmake \
-DELFIO_BUILD_EXAMPLES=OFF
%cmake_build
%install
%cmake_install
%files devel
%license COPYING
%doc AUTHORS doc/elfio.pdf README
%{_datadir}/%{name}
%{_includedir}/%{name}
%changelog