066e71a
#
066e71a
%global mydocs __tmp_docdir
066e71a
#
066e71a
Name:           airrac
ff755af
Version:        1.00.1
ff755af
Release:        1%{?dist}
066e71a
066e71a
Summary:        C++ Simulated Revenue Accounting (RAC) System Library
066e71a
066e71a
Group:          System Environment/Libraries 
066e71a
License:        LGPLv2+
066e71a
URL:            http://sourceforge.net/projects/%{name}/
066e71a
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
066e71a
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
066e71a
066e71a
BuildRequires:  cmake, python-devel
ff755af
BuildRequires:  boost148-devel, soci-mysql-devel, soci-sqlite3-devel
ff755af
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
Group:          Development/Libraries
066e71a
Requires:       %{name}%{?_isa} = %{version}-%{release}
066e71a
Requires:       pkgconfig
066e71a
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
066e71a
Group:          Documentation
ff755af
%if 0%{?fedora} || 0%{?rhel} > 5
ff755af
BuildArch:      noarch
ff755af
%endif
066e71a
BuildRequires:  tex(latex)
f389aa6
BuildRequires:  doxygen, 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
066e71a
%setup -q
066e71a
066e71a
066e71a
%build
ff755af
mkdir -p build
ff755af
pushd build
ff755af
%cmake -DBOOST_LIBRARYDIR=%{_libdir}/boost148 \
ff755af
 -DBOOST_INCLUDEDIR=%{_includedir}/boost148 \
ff755af
 -DBoost_ADDITIONAL_VERSIONS="1.48 1.48.0" ..
066e71a
make %{?_smp_mflags}
ff755af
popd
066e71a
066e71a
%install
066e71a
rm -rf $RPM_BUILD_ROOT
ff755af
pushd build
066e71a
make install DESTDIR=$RPM_BUILD_ROOT
ff755af
popd
066e71a
066e71a
mkdir -p %{mydocs}
ff755af
mv $RPM_BUILD_ROOT%{_docdir}/%{name}/html %{mydocs}
066e71a
rm -f %{mydocs}/html/installdox
066e71a
ff755af
# Remove additional documentation files (those files are already available
ff755af
# in the project top directory)
ff755af
rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/{NEWS,README,AUTHORS}
ff755af
066e71a
%check
ff755af
pushd build
5ee67c7
#ctest
ff755af
popd
066e71a
066e71a
%clean
066e71a
rm -rf $RPM_BUILD_ROOT
066e71a
066e71a
%post -p /sbin/ldconfig
066e71a
066e71a
%postun -p /sbin/ldconfig
066e71a
066e71a
066e71a
%files
066e71a
%defattr(-,root,root,-)
066e71a
%doc AUTHORS ChangeLog COPYING NEWS README
066e71a
%{_bindir}/%{name}
7fd7d9d
%{_libdir}/lib%{name}.so.*
066e71a
%{_mandir}/man1/%{name}.1.*
066e71a
066e71a
%files devel
066e71a
%defattr(-,root,root,-)
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
%defattr(-,root,root,-)
066e71a
%doc %{mydocs}/html
066e71a
%doc COPYING
066e71a
066e71a
066e71a
%changelog
ff755af
* Sun Jun 07 2015 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.1-1
ff755af
- Removed the dependency on ZeroMQ (only AirInv is dependent on it, not StdAir)
ff755af
0829478
* Wed May 22 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.0-2
0829478
- Rebuild for Soci-3.2.1
0829478
3260fdf
* Tue Dec 25 2012 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.0-1
3260fdf
- Upstream update
3260fdf
29fbf58
* Mon Dec 05 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.2.3-1
29fbf58
- Upstream update
29fbf58
f1cf175
* Wed Nov 02 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.2.1-2
f1cf175
- Rebuilt for the new soci-3.1.0 and stdair-0.44.0 packages
f1cf175
6e3e74a
* Wed Oct 19 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.2.1-1
6e3e74a
- Upstream update
6e3e74a
e7ff93a
* Sat Oct 15 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.2.0-1
e7ff93a
- Upstream update
e7ff93a
7fd7d9d
* Tue Aug 30 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.1.2-1
2bb8d53
- Upstream update
e6a7547
7fd7d9d
* Sat Aug 20 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.1.1-1
7fd7d9d
- Removed the need for Graphviz: the class diagrams are no longer
7fd7d9d
  built with it
7fd7d9d
066e71a
* Fri Aug 19 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.1.0-2
066e71a
- Took into account the feedback from the package review (#728649)
066e71a
066e71a
* Fri Aug 05 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.1.0-1
066e71a
- First package