066e71a
#
066e71a
%global mydocs __tmp_docdir
066e71a
#
066e71a
Name:           airrac
835ae21
Version:        1.00.3
5c12ff5
Release:        1%{?dist}
066e71a
066e71a
Summary:        C++ Simulated Revenue Accounting (RAC) System Library
066e71a
066e71a
License:        LGPLv2+
82842f0
URL:            http://github.com/airsim/%{name}
09d6726
Source0:        %{url}/archive/%{name}-%{version}.tar.gz
066e71a
Igor Gnatenko c868975
BuildRequires:  gcc-c++
09d6726
BuildRequires:  cmake
09d6726
BuildRequires:  python3-devel
09d6726
BuildRequires:  boost-devel
82842f0
BuildRequires:  boost-python3-devel
09d6726
BuildRequires:  soci-mysql-devel
09d6726
BuildRequires:  soci-sqlite3-devel
ae3e4ee
BuildRequires:  readline-devel
066e71a
BuildRequires:  stdair-devel
066e71a
066e71a
066e71a
%description
066e71a
%{name} is a C++ library of airline revenue accounting classes and
066e71a
functions, mainly targeting simulation purposes.
066e71a
066e71a
%{name} makes an extensive use of existing open-source libraries for
066e71a
increased functionality, speed and accuracy. In particular the
066e71a
Boost (C++ Standard Extensions: http://www.boost.org) library is used.
066e71a
066e71a
Install the %{name} package if you need a library of basic C++ objects
066e71a
for Airline Revenue Accounting, mainly for simulation purpose.
066e71a
066e71a
%package        devel
7fd7d9d
Summary:        Header files, libraries and development helper tools for %{name}
066e71a
Requires:       %{name}%{?_isa} = %{version}-%{release}
066e71a
Requires:       pkgconfig
066e71a
febba1d
# The cmake files have Python version backed in them
febba1d
Requires:       (python(abi) = %{python3_version} if python3-devel)
febba1d
066e71a
%description    devel
7fd7d9d
This package contains the header files, shared libraries and
7fd7d9d
development helper tools for %{name}. If you would like to develop
066e71a
programs using %{name}, you will need to install %{name}-devel.
066e71a
7fd7d9d
%package        doc
066e71a
Summary:        HTML documentation for the %{name} library
62ef3a1
BuildArch:      noarch
066e71a
BuildRequires:  tex(latex)
09d6726
BuildRequires:  doxygen
09d6726
BuildRequires:  ghostscript
066e71a
7fd7d9d
%description    doc
7fd7d9d
This package contains HTML pages, as well as a PDF reference manual,
7fd7d9d
for %{name}. All that documentation is generated thanks to Doxygen
7fd7d9d
(http://doxygen.org). The content is the same as what can be browsed
7fd7d9d
online (http://%{name}.org).
066e71a
066e71a
066e71a
%prep
82842f0
%autosetup -n %{name}-%{name}-%{version} 
066e71a
066e71a
066e71a
%build
066e71a
%cmake .
09d6726
%make_build
066e71a
066e71a
%install
09d6726
%make_install
066e71a
066e71a
mkdir -p %{mydocs}
ae3e4ee
mv $RPM_BUILD_ROOT%{_docdir}/%{name}/html %{mydocs}
066e71a
rm -f %{mydocs}/html/installdox
066e71a
8aa9b28
# Remove additional documentation files (those files are already available
8aa9b28
# in the project top directory)
09d6726
rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/{NEWS,README.md,AUTHORS}
8aa9b28
066e71a
%check
066e71a
ctest
066e71a
066e71a
066e71a
%files
82842f0
%doc AUTHORS ChangeLog COPYING NEWS README.md
066e71a
%{_bindir}/%{name}
7fd7d9d
%{_libdir}/lib%{name}.so.*
066e71a
%{_mandir}/man1/%{name}.1.*
066e71a
066e71a
%files devel
066e71a
%{_includedir}/%{name}
066e71a
%{_bindir}/%{name}-config
066e71a
%{_libdir}/lib%{name}.so
066e71a
%{_libdir}/pkgconfig/%{name}.pc
066e71a
%{_datadir}/aclocal/%{name}.m4
066e71a
%dir %{_datadir}/%{name}
066e71a
%{_datadir}/%{name}/CMake
066e71a
%{_mandir}/man1/%{name}-config.1.*
066e71a
%{_mandir}/man3/%{name}-library.3.*
066e71a
066e71a
%files doc
066e71a
%doc %{mydocs}/html
066e71a
%doc COPYING
066e71a
066e71a
066e71a
%changelog
5c12ff5
* Mon Oct 28 2019 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.3-1
5c12ff5
- First build for EPEL 8
1964fcd