4694f2e
#
4694f2e
Name:           sevmgr
e873ba3
Version:        1.00.9
4ca5cc3
Release:        %autorelease
4694f2e
4694f2e
Summary:        C++ Simulation-Oriented Discrete Event Management Library
4694f2e
4ca5cc3
License:        LGPL-2.1-or-later
a0e5c35
URL:            https://github.com/airsim/%{name}
4ca5cc3
Source0:        %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
faa211e
Igor Gnatenko 5ed02d1
BuildRequires:  gcc-c++
122c14a
BuildRequires:  cmake
a0e5c35
BuildRequires:  boost-devel
4ca5cc3
BuildRequires:  soci-mysql-devel
4ca5cc3
BuildRequires:  soci-sqlite3-devel
4ca5cc3
BuildRequires:  pkgconfig(readline)
4ca5cc3
BuildRequires:  pkgconfig(stdair)
4694f2e
4694f2e
%description
4694f2e
%{name} is a C++ library of discrete event queue management classes and
4694f2e
functions, exclusively targeting simulation purposes.
4694f2e
4694f2e
%{name} makes an extensive use of existing open-source libraries for
4694f2e
increased functionality, speed and accuracy. In particular the
54bde1e
Boost (C++ Standard Extensions: https://www.boost.org) library is used.
4694f2e
4694f2e
Install the %{name} package if you need a library of basic C++ objects
4694f2e
for the discrete event queue management of your simulation project.
4694f2e
4694f2e
%package        devel
4694f2e
Summary:        Header files, libraries and development helper tools for %{name}
4694f2e
Requires:       %{name}%{?_isa} = %{version}-%{release}
4694f2e
Requires:       pkgconfig
4694f2e
4694f2e
%description    devel
4694f2e
This package contains the header files, shared libraries and
4694f2e
development helper tools for %{name}. If you would like to develop
4694f2e
programs using %{name}, you will need to install %{name}-devel.
4694f2e
4694f2e
%package        doc
4694f2e
Summary:        HTML documentation for the %{name} library
4694f2e
BuildArch:      noarch
4694f2e
BuildRequires:  tex(latex)
05785a7
BuildRequires:  texlive-epstopdf
20797d8
BuildRequires:  doxygen
20797d8
BuildRequires:  ghostscript
4694f2e
4694f2e
%description    doc
4694f2e
This package contains HTML pages, as well as a PDF reference manual,
4694f2e
for %{name}. All that documentation is generated thanks to Doxygen
4ca5cc3
(https://doxygen.org). The content is the same as what can be browsed
4ca5cc3
online (https://github.com/airsim/%{name}).
4694f2e
4694f2e
4694f2e
%prep
4ca5cc3
%autosetup
4694f2e
4694f2e
%build
698ef08
%cmake 
698ef08
%cmake_build
4694f2e
4694f2e
%install
698ef08
%cmake_install
4694f2e
54bde1e
# Remove the Doxygen installer
54bde1e
rm -f %{buildroot}%{_docdir}/%{name}/html/installdox
4694f2e
bdf31d9
# Remove additional documentation files (those files are already available
bdf31d9
# in the project top directory)
54bde1e
rm -f %{buildroot}%{_docdir}/%{name}/{NEWS,README.md,AUTHORS}
bdf31d9
4694f2e
%check
fb4bad1
#ctest
4694f2e
4694f2e
4694f2e
%files
54bde1e
%doc AUTHORS ChangeLog NEWS README.md
54bde1e
%license COPYING
4694f2e
%{_bindir}/%{name}
4694f2e
%{_bindir}/%{name}_demo
4694f2e
%{_libdir}/lib%{name}.so.*
4694f2e
%{_mandir}/man1/%{name}.1.*
4694f2e
%{_mandir}/man1/%{name}_demo.1.*
4694f2e
4694f2e
%files devel
4ca5cc3
%{_includedir}/%{name}/
4694f2e
%{_bindir}/%{name}-config
4694f2e
%{_libdir}/lib%{name}.so
4694f2e
%{_libdir}/pkgconfig/%{name}.pc
4694f2e
%{_datadir}/aclocal/%{name}.m4
4694f2e
%dir %{_datadir}/%{name}
4ca5cc3
%{_datadir}/%{name}/CMake/
4694f2e
%{_mandir}/man1/%{name}-config.1.*
4694f2e
%{_mandir}/man3/%{name}-library.3.*
4694f2e
4694f2e
%files doc
4ca5cc3
%doc %{_docdir}/%{name}/
54bde1e
%license COPYING
4694f2e
4694f2e
4694f2e
%changelog
024d0f8
%autochangelog
73a18a6