|
|
074ceba |
#
|
|
|
074ceba |
%global mydocs __tmp_docdir
|
|
|
074ceba |
#
|
|
|
074ceba |
Name: airrac
|
|
|
bce4164 |
Version: 1.00.1
|
|
|
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
|
|
|
bce4164 |
BuildRequires: boost148-devel, soci-mysql-devel, soci-sqlite3-devel
|
|
|
bce4164 |
BuildRequires: readline-devel, ncurses-devel
|
|
|
bce4164 |
BuildRequires: 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
|
|
|
bce4164 |
%if 0%{?fedora} || 0%{?rhel} > 5
|
|
|
bce4164 |
BuildArch: noarch
|
|
|
bce4164 |
%endif
|
|
|
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
|
|
|
bce4164 |
%cmake -DBOOST_LIBRARYDIR=%{_libdir}/boost148 \
|
|
|
bce4164 |
-DBOOST_INCLUDEDIR=%{_includedir}/boost148 \
|
|
|
bce4164 |
-DBoost_ADDITIONAL_VERSIONS="1.48 1.48.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}
|
|
|
bce4164 |
mv $RPM_BUILD_ROOT%{_docdir}/%{name}/html %{mydocs}
|
|
|
074ceba |
rm -f %{mydocs}/html/installdox
|
|
|
074ceba |
|
|
|
bce4164 |
# Remove additional documentation files (those files are already available
|
|
|
bce4164 |
# in the project top directory)
|
|
|
bce4164 |
rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/{NEWS,README,AUTHORS}
|
|
|
bce4164 |
|
|
|
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
|
|
|
bce4164 |
* Sun Jun 07 2015 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.1-1
|
|
|
bce4164 |
- Removed the dependency on ZeroMQ (only AirInv is dependent on it, not StdAir)
|
|
|
bce4164 |
|
|
|
3260fdf |
* Tue Dec 25 2012 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.0-1
|
|
|
074ceba |
- First package
|