074ceba
#
074ceba
%global mydocs __tmp_docdir
074ceba
#
074ceba
Name:           airrac
3260fdf
Version:        1.00.0
29fbf58
Release:        1%{?dist}
074ceba
074ceba
Summary:        C++ Simulated Revenue Accounting (RAC) System Library
074ceba
074ceba
Group:          System Environment/Libraries 
074ceba
License:        LGPLv2+
074ceba
URL:            http://sourceforge.net/projects/%{name}/
074ceba
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
074ceba
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
074ceba
56ef42b
BuildRequires:  cmake, python26-devel
56ef42b
BuildRequires:  boost141-devel, soci-mysql-devel, zeromq-devel
56ef42b
BuildRequires:  readline-devel, ncurses-devel, stdair-devel
074ceba
074ceba
074ceba
%description
074ceba
%{name} is a C++ library of airline revenue accounting classes and
074ceba
functions, mainly targeting simulation purposes.
074ceba
074ceba
%{name} makes an extensive use of existing open-source libraries for
074ceba
increased functionality, speed and accuracy. In particular the
074ceba
Boost (C++ Standard Extensions: http://www.boost.org) library is used.
074ceba
074ceba
Install the %{name} package if you need a library of basic C++ objects
074ceba
for Airline Revenue Accounting, mainly for simulation purpose.
074ceba
074ceba
%package        devel
7fd7d9d
Summary:        Header files, libraries and development helper tools for %{name}
074ceba
Group:          Development/Libraries
074ceba
Requires:       %{name}%{?_isa} = %{version}-%{release}
074ceba
Requires:       pkgconfig
074ceba
074ceba
%description    devel
7fd7d9d
This package contains the header files, shared libraries and
7fd7d9d
development helper tools for %{name}. If you would like to develop
074ceba
programs using %{name}, you will need to install %{name}-devel.
074ceba
7fd7d9d
%package        doc
074ceba
Summary:        HTML documentation for the %{name} library
074ceba
Group:          Documentation
074ceba
%{?fedora:BuildArch:      noarch}
074ceba
BuildRequires:  tex(latex)
f389aa6
BuildRequires:  doxygen, ghostscript
074ceba
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).
074ceba
074ceba
074ceba
%prep
074ceba
%setup -q
074ceba
074ceba
074ceba
%build
56ef42b
mkdir -p build
56ef42b
pushd build
56ef42b
%cmake -DBOOST_LIBRARYDIR=%{_libdir}/boost141 \
56ef42b
 -DBOOST_INCLUDEDIR=%{_includedir}/boost141 \
56ef42b
 -DBoost_ADDITIONAL_VERSIONS="1.41 1.41.0" ..
074ceba
make %{?_smp_mflags}
56ef42b
popd
074ceba
074ceba
%install
074ceba
rm -rf $RPM_BUILD_ROOT
56ef42b
pushd build
074ceba
make install DESTDIR=$RPM_BUILD_ROOT
56ef42b
popd
074ceba
074ceba
mkdir -p %{mydocs}
074ceba
mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{mydocs}
074ceba
rm -f %{mydocs}/html/installdox
074ceba
074ceba
%check
56ef42b
pushd build
5ee67c7
#ctest
56ef42b
popd
074ceba
074ceba
%clean
074ceba
rm -rf $RPM_BUILD_ROOT
074ceba
074ceba
%post -p /sbin/ldconfig
074ceba
074ceba
%postun -p /sbin/ldconfig
074ceba
074ceba
074ceba
%files
074ceba
%defattr(-,root,root,-)
074ceba
%doc AUTHORS ChangeLog COPYING NEWS README
074ceba
%{_bindir}/%{name}
7fd7d9d
%{_libdir}/lib%{name}.so.*
074ceba
%{_mandir}/man1/%{name}.1.*
074ceba
074ceba
%files devel
074ceba
%defattr(-,root,root,-)
074ceba
%{_includedir}/%{name}
074ceba
%{_bindir}/%{name}-config
074ceba
%{_libdir}/lib%{name}.so
074ceba
%{_libdir}/pkgconfig/%{name}.pc
074ceba
%{_datadir}/aclocal/%{name}.m4
074ceba
%dir %{_datadir}/%{name}
074ceba
%{_datadir}/%{name}/CMake
074ceba
%{_mandir}/man1/%{name}-config.1.*
074ceba
%{_mandir}/man3/%{name}-library.3.*
074ceba
074ceba
%files doc
074ceba
%defattr(-,root,root,-)
074ceba
%doc %{mydocs}/html
074ceba
%doc COPYING
074ceba
074ceba
074ceba
%changelog
3260fdf
* Tue Dec 25 2012 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.0-1
074ceba
- First package