be854aa
#
be854aa
%global mydocs __tmp_docdir
be854aa
#
be854aa
Name:           airrac
835ae21
Version:        1.00.3
5450cc1
Release:        2%{?dist}
be854aa
be854aa
Summary:        C++ Simulated Revenue Accounting (RAC) System Library
be854aa
be854aa
License:        LGPLv2+
82842f0
URL:            http://github.com/airsim/%{name}
09d6726
Source0:        %{url}/archive/%{name}-%{version}.tar.gz
066e71a
Igor Gnatenko c868975
BuildRequires:  gcc-c++
7e620a6
%if 0%{?fedora} || 0%{?rhel} > 7
09d6726
BuildRequires:  cmake
7e620a6
%else
7e620a6
BuildRequires:  cmake3
7e620a6
%endif
09d6726
BuildRequires:  python3-devel
09d6726
BuildRequires:  boost-devel
2a64121
%if 0%{?fedora} || 0%{?rhel} > 7
82842f0
BuildRequires:  boost-python3-devel
2a64121
%else
2a64121
BuildRequires:  boost-python36-devel
2a64121
%endif
09d6726
BuildRequires:  soci-mysql-devel
09d6726
BuildRequires:  soci-sqlite3-devel
be854aa
BuildRequires:  readline-devel
be854aa
BuildRequires:  stdair-devel
be854aa
be854aa
be854aa
%description
be854aa
%{name} is a C++ library of airline revenue accounting classes and
be854aa
functions, mainly targeting simulation purposes.
be854aa
be854aa
%{name} makes an extensive use of existing open-source libraries for
be854aa
increased functionality, speed and accuracy. In particular the
be854aa
Boost (C++ Standard Extensions: http://www.boost.org) library is used.
be854aa
be854aa
Install the %{name} package if you need a library of basic C++ objects
be854aa
for Airline Revenue Accounting, mainly for simulation purpose.
be854aa
be854aa
%package        devel
be854aa
Summary:        Header files, libraries and development helper tools for %{name}
be854aa
Requires:       %{name}%{?_isa} = %{version}-%{release}
be854aa
Requires:       pkgconfig
be854aa
febba1d
# The cmake files have Python version backed in them
7e620a6
#Requires:       (python(abi) = %%{python3_version} if python3-devel)
febba1d
be854aa
%description    devel
be854aa
This package contains the header files, shared libraries and
be854aa
development helper tools for %{name}. If you would like to develop
be854aa
programs using %{name}, you will need to install %{name}-devel.
be854aa
be854aa
%package        doc
be854aa
Summary:        HTML documentation for the %{name} library
be854aa
BuildArch:      noarch
be854aa
BuildRequires:  tex(latex)
09d6726
BuildRequires:  doxygen
09d6726
BuildRequires:  ghostscript
be854aa
be854aa
%description    doc
be854aa
This package contains HTML pages, as well as a PDF reference manual,
be854aa
for %{name}. All that documentation is generated thanks to Doxygen
be854aa
(http://doxygen.org). The content is the same as what can be browsed
be854aa
online (http://%{name}.org).
be854aa
be854aa
be854aa
%prep
82842f0
%autosetup -n %{name}-%{name}-%{version} 
be854aa
be854aa
be854aa
%build
7e620a6
%if 0%{?fedora} || 0%{?rhel} > 7
be854aa
%cmake .
7e620a6
%else
7e620a6
if [ -d /usr/lib64 ]; then LIBSUFFIX="64"; fi
7e620a6
export LIBSUFFIX_4_CMAKE="-DLIB_SUFFIX=$LIBSUFFIX"
7e620a6
cmake3 ${LIBSUFFIX_4_CMAKE} .
7e620a6
%endif
09d6726
%make_build
be854aa
be854aa
%install
09d6726
%make_install
be854aa
be854aa
mkdir -p %{mydocs}
be854aa
mv $RPM_BUILD_ROOT%{_docdir}/%{name}/html %{mydocs}
be854aa
rm -f %{mydocs}/html/installdox
be854aa
be854aa
# Remove additional documentation files (those files are already available
be854aa
# in the project top directory)
09d6726
rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/{NEWS,README.md,AUTHORS}
be854aa
be854aa
%check
7e620a6
%if 0%{?fedora} || 0%{?rhel} > 7
be854aa
ctest
7e620a6
%else
7e620a6
ctest3
7e620a6
%endif
be854aa
be854aa
be854aa
%files
82842f0
%doc AUTHORS ChangeLog COPYING NEWS README.md
be854aa
%{_bindir}/%{name}
be854aa
%{_libdir}/lib%{name}.so.*
be854aa
%{_mandir}/man1/%{name}.1.*
be854aa
be854aa
%files devel
be854aa
%{_includedir}/%{name}
be854aa
%{_bindir}/%{name}-config
be854aa
%{_libdir}/lib%{name}.so
be854aa
%{_libdir}/pkgconfig/%{name}.pc
be854aa
%{_datadir}/aclocal/%{name}.m4
be854aa
%dir %{_datadir}/%{name}
be854aa
%{_datadir}/%{name}/CMake
be854aa
%{_mandir}/man1/%{name}-config.1.*
be854aa
%{_mandir}/man3/%{name}-library.3.*
be854aa
be854aa
%files doc
be854aa
%doc %{mydocs}/html
be854aa
%doc COPYING
be854aa
be854aa
be854aa
%changelog
5450cc1
* Fri May 08 2020 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.3-2
5450cc1
- Rebuild for SOCI 4.0.0
5450cc1
5c12ff5
* Mon Oct 28 2019 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.3-1
5c12ff5
- First build for EPEL 8
1964fcd
be854aa
* Sun Jun 07 2015 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.1-1
be854aa
- Removed the dependency on ZeroMQ (only AirInv is dependent on it, not StdAir)
be854aa
be854aa
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.00.0-12
be854aa
- Rebuilt for GCC 5 C++11 ABI change
be854aa
be854aa
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 1.00.0-11
be854aa
- Rebuild for boost 1.57.0
be854aa
- Cmake should look for zmq.h, not zmq.hpp (stdair-1.00.1-cmake.patch)
be854aa
be854aa
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00.0-10
be854aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
be854aa
be854aa
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00.0-9
be854aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
be854aa
be854aa
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 1.00.0-8
be854aa
- rebuild for boost 1.55.0
be854aa
be854aa
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00.0-7
be854aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
be854aa
be854aa
* Mon Jul 29 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.0-6
be854aa
- Fixed the docdir issue, following the F20 System Wide Change
be854aa
be854aa
* Sun Jul 28 2013 Petr Machata <pmachata@redhat.com> - 1.00.0-5
be854aa
- Rebuild for boost 1.54.0
be854aa
be854aa
* Wed May 22 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.0-4
be854aa
- Rebuild for Soci-3.2.1
be854aa
be854aa
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.0-3
be854aa
- Rebuild for Boost-1.53.0
be854aa
be854aa
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.0-2
be854aa
- Rebuild for Boost-1.53.0
be854aa
be854aa
* Tue Dec 25 2012 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.0-1
be854aa
- Upstream update
be854aa
be854aa
* Sun Aug 12 2012 Kevin Fenzi <kevin@scrye.com> - 0.2.3-5
be854aa
- Rebuild for new boost
be854aa
be854aa
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-4
be854aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
be854aa
be854aa
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-3
be854aa
- Rebuilt for c++ ABI breakage
be854aa
be854aa
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-2
be854aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
be854aa
be854aa
* Mon Dec 05 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.2.3-1
be854aa
- Upstream update
be854aa
be854aa
* Sun Nov 20 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.2.1-2
be854aa
- Rebuild for the new Boost-1.48.0
be854aa
be854aa
* Wed Nov 02 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.2.1-1
be854aa
- Upstream update
be854aa
be854aa
* Wed Nov 02 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.2.0-3
be854aa
- Rebuilt for the new soci-3.1.0 and stdair-0.44.0 packages
be854aa
be854aa
* Sat Oct 15 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.2.0-1
be854aa
- Upstream update
be854aa
be854aa
* Tue Aug 30 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.1.2-1
be854aa
- Upstream update
be854aa
be854aa
* Sat Aug 20 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.1.1-1
be854aa
- Removed the need for Graphviz: the class diagrams are no longer
be854aa
  built with it
be854aa
be854aa
* Fri Aug 19 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.1.0-2
be854aa
- Took into account the feedback from the package review (#728649)
be854aa
be854aa
* Fri Aug 05 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.1.0-1
be854aa
- First package
7e620a6