809e0b4
#
809e0b4
%global mydocs __tmp_docdir
809e0b4
%global version_main 1.01
809e0b4
%global name_cap AirTSP
809e0b4
#
809e0b4
Name:           airtsp
809e0b4
Version:        %{version_main}.2
Igor Gnatenko 2ccf31d
Release:        9%{?dist}
809e0b4
Obsoletes:      airsched < %{version_main}.1-1
809e0b4
809e0b4
Summary:        C++ Simulated Airline Travel Solution Provider Library
809e0b4
809e0b4
Group:          System Environment/Libraries 
809e0b4
License:        LGPLv2+
809e0b4
URL:            http://sourceforge.net/projects/%{name}/
809e0b4
Source0:        http://downloads.sourceforge.net/project/%{name_cap}/%{version_main}/%{name}-%{version}.tar.bz2
f23c724
Patch0:         0001-Fix-for-Boost-1.59.0-compatibility.patch
809e0b4
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
809e0b4
809e0b4
BuildRequires:  cmake, python-devel, boost-devel
809e0b4
BuildRequires:  soci-mysql-devel, soci-sqlite3-devel, readline-devel
809e0b4
BuildRequires:  stdair-devel
809e0b4
809e0b4
809e0b4
%description
809e0b4
%{name} aims at providing a clean API and a simple implementation, as
809e0b4
a C++ library, of an Airline Schedule Management System. It is intended
809e0b4
to be used in simulated environments only: it is not designed to work
809e0b4
in the real-world of Airline IT operations.
809e0b4
809e0b4
%{name} makes an extensive use of existing open-source libraries for
809e0b4
increased functionality, speed and accuracy. In particular the
809e0b4
Boost (C++ Standard Extensions: http://www.boost.org) library is used.
809e0b4
809e0b4
Install the %{name} package if you need a library of basic C++ objects
809e0b4
for Airline Schedule Management, mainly for simulation purpose.
809e0b4
809e0b4
%package        devel
809e0b4
Summary:        Header files, libraries and development helper tools for %{name}
809e0b4
Group:          Development/Libraries
809e0b4
Requires:       %{name}%{?_isa} = %{version}-%{release}
809e0b4
Requires:       pkgconfig
809e0b4
809e0b4
%description    devel
809e0b4
This package contains the header files, shared libraries and
809e0b4
development helper tools for %{name}. If you would like to develop
809e0b4
programs using %{name}, you will need to install %{name}-devel.
809e0b4
809e0b4
%package        doc
809e0b4
Summary:        HTML documentation for the %{name} library
809e0b4
Group:          Documentation
809e0b4
%if 0%{?fedora} || 0%{?rhel} > 5
809e0b4
BuildArch:      noarch
809e0b4
%endif
809e0b4
BuildRequires:  tex(latex), tex(sectsty.sty), tex(tocloft.sty), tex(xtab.sty)
809e0b4
BuildRequires:  doxygen, ghostscript, graphviz
809e0b4
809e0b4
%description    doc
809e0b4
This package contains HTML pages, as well as a PDF reference manual,
809e0b4
for %{name}. All that documentation is generated thanks to Doxygen
809e0b4
(http://doxygen.org). The content is the same as what can be browsed
809e0b4
online (http://%{name}.org).
809e0b4
809e0b4
809e0b4
%prep
809e0b4
%setup -q
f23c724
%patch0 -p1
809e0b4
809e0b4
809e0b4
%build
809e0b4
mkdir -p build
809e0b4
pushd build
809e0b4
%cmake -DBOOST_LIBRARYDIR=%{_libdir}/boost148 \
809e0b4
 -DBOOST_INCLUDEDIR=%{_includedir}/boost148 \
809e0b4
 -DBoost_ADDITIONAL_VERSIONS="1.48 1.48.0" ..
809e0b4
make %{?_smp_mflags}
809e0b4
popd
809e0b4
809e0b4
%install
809e0b4
rm -rf $RPM_BUILD_ROOT
809e0b4
pushd build
809e0b4
make install DESTDIR=$RPM_BUILD_ROOT
809e0b4
popd
809e0b4
809e0b4
mkdir -p %{mydocs}
6d64832
mv $RPM_BUILD_ROOT%{_docdir}/%{name}/html %{mydocs}
809e0b4
rm -f %{mydocs}/html/installdox
809e0b4
809e0b4
# Remove additional documentation files (those files are already available
809e0b4
# in the project top directory)
6d64832
rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/{NEWS,README,AUTHORS}
809e0b4
809e0b4
%check
809e0b4
#ctest
809e0b4
809e0b4
%clean
809e0b4
rm -rf $RPM_BUILD_ROOT
809e0b4
809e0b4
%post -p /sbin/ldconfig
809e0b4
809e0b4
%postun -p /sbin/ldconfig
809e0b4
809e0b4
809e0b4
%files
809e0b4
%defattr(-,root,root,-)
809e0b4
%doc AUTHORS ChangeLog COPYING NEWS README
809e0b4
%{_bindir}/%{name}
809e0b4
%{_libdir}/lib%{name}.so.*
809e0b4
%{_mandir}/man1/%{name}.1.*
809e0b4
809e0b4
%files devel
809e0b4
%defattr(-,root,root,-)
809e0b4
%{_includedir}/%{name}
809e0b4
%{_bindir}/%{name}-config
809e0b4
%{_libdir}/lib%{name}.so
809e0b4
%{_libdir}/pkgconfig/%{name}.pc
809e0b4
%{_datadir}/aclocal/%{name}.m4
809e0b4
%dir %{_datadir}/%{name}
809e0b4
%{_datadir}/%{name}/CMake
809e0b4
%{_mandir}/man1/%{name}-config.1.*
809e0b4
%{_mandir}/man3/%{name}-library.3.*
809e0b4
809e0b4
%files doc
809e0b4
%defattr(-,root,root,-)
809e0b4
%doc %{mydocs}/html
809e0b4
%doc COPYING
809e0b4
809e0b4
809e0b4
%changelog
Igor Gnatenko 2ccf31d
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.01.2-9
Igor Gnatenko 2ccf31d
- Rebuild for readline 7.x
Igor Gnatenko 2ccf31d
d1628c1
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.01.2-8
d1628c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d1628c1
38c455a
* Mon Jan 18 2016 Jonathan Wakely <jwakely@redhat.com> - 1.01.2-7
38c455a
- Rebuilt for Boost 1.60
38c455a
f23c724
* Sun Aug 30 2015 Jonathan Wakely <jwakely@redhat.com> 1.01.2-6
f23c724
- Patched and rebuilt for Boost 1.59
f23c724
6b99167
* Sat Aug 29 2015 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.01.2-5
6b99167
- Mass rebuild
6b99167
dcdde19
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01.2-4
dcdde19
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
dcdde19
24f401e
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 1.01.2-3
24f401e
- rebuild for Boost 1.58
24f401e
d0e6ad8
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01.2-2
d0e6ad8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d0e6ad8
809e0b4
* Sat Jun 13 2015 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.01.2-1
809e0b4
- Aligned on StdAir for the CMake helper files.
809e0b4
809e0b4
* Sat Apr 18 2015 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.01.1-2
809e0b4
- On Fedora 22+, ZeroMQ v2 is no longer the default.
809e0b4
809e0b4
* Mon Aug 12 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.01.1-1
809e0b4
- Took into account feedback from review request (BZ#972431):
809e0b4
  airtsp-config now supports multilib (32 and 64bit versions).
809e0b4
- Upstream update
809e0b4
809e0b4
* Mon Jul 29 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.01.0-3
809e0b4
- Fixed the docdir issue, following the F20 System Wide Change
809e0b4
- Rebuild for boost 1.54.0
809e0b4
809e0b4
* Wed Jun 12 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> 1.01.0-2
809e0b4
- Added a dependency on graphviz and texlive-utils (epstopdf), so as
809e0b4
  build the documentation with figures
809e0b4
809e0b4
* Sat Jun 08 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> 1.01.0-1
809e0b4
- Renamed the package, from AirSched to AirTSP, due to trademark issue
809e0b4
  with Plancor
809e0b4
809e0b4
* Wed Oct 26 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.1.2-1
809e0b4
- Upstream update
809e0b4
809e0b4
* Sat Aug 20 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.1.1-1
809e0b4
- Upstream update
809e0b4
- Took into account the feedback from various review requests (bugs #732205,
809e0b4
  #728649, #732218)
809e0b4
809e0b4
* Sat Aug 20 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.1.0-1
809e0b4
- First RPM release
809e0b4