|
|
f0470d5 |
#
|
|
|
f0470d5 |
%global mydocs __tmp_docdir
|
|
|
f0470d5 |
#
|
|
|
f0470d5 |
Name: travelccm
|
|
|
f0470d5 |
%global sfname travel-ccm
|
|
|
ef10137 |
Version: 1.00.2
|
|
|
ef10137 |
Release: 1%{?dist}
|
|
|
f0470d5 |
|
|
|
f0470d5 |
Summary: C++ Travel Customer Choice Model (CCM) Library
|
|
|
f0470d5 |
|
|
|
f0470d5 |
Group: System Environment/Libraries
|
|
|
f0470d5 |
License: LGPLv2+
|
|
|
f0470d5 |
URL: http://sourceforge.net/projects/%{sfname}/
|
|
|
f0470d5 |
Source0: http://downloads.sourceforge.net/%{sfname}/%{name}-%{version}.tar.bz2
|
|
|
f0470d5 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
f0470d5 |
|
|
|
f0470d5 |
BuildRequires: cmake, python-devel
|
|
|
ef10137 |
BuildRequires: boost-devel, soci-mysql-devel, soci-sqlite3-devel
|
|
|
ef10137 |
BuildRequires: readline-devel
|
|
|
f0470d5 |
BuildRequires: stdair-devel
|
|
|
f0470d5 |
|
|
|
f0470d5 |
|
|
|
f0470d5 |
%description
|
|
|
f0470d5 |
%{name} aims at providing a clean API, and the corresponding
|
|
|
f0470d5 |
C++ implementation, for choosing one item among a set of travel
|
|
|
f0470d5 |
solutions, given demand-related characteristics (e.g.,
|
|
|
f0470d5 |
Willingness-To-Pay, preferred airline, preferred cabin, etc.).
|
|
|
f0470d5 |
|
|
|
f0470d5 |
The %{name} C++ library implements some simple Customer Choice Models
|
|
|
f0470d5 |
(CCM), as referenced in the literature (PhD dissertations at MIT, for
|
|
|
f0470d5 |
instance: http://dspace.mit.edu).
|
|
|
f0470d5 |
|
|
|
f0470d5 |
The %{name} C++ library exposes a simple, clean and object-oriented,
|
|
|
f0470d5 |
API. For instance, the choose() method takes, as input, both a
|
|
|
f0470d5 |
structure representing the travel request (e.g., "from Washington, DC,
|
|
|
f0470d5 |
US, to Beijing, China, on the 25th of May") and a list of travel
|
|
|
f0470d5 |
solutions (as provided by the Airline Schedule Manager project:
|
|
|
f0470d5 |
http://sourceforge.net/projects/air-sched), and yields, as output, the
|
|
|
f0470d5 |
chosen item.
|
|
|
f0470d5 |
|
|
|
f0470d5 |
The output can then be used by other systems, for instance to book the
|
|
|
f0470d5 |
corresponding travel or to visualize it on a map and calendar and to
|
|
|
f0470d5 |
share it with others.
|
|
|
f0470d5 |
|
|
|
f0470d5 |
%{name} makes an extensive use of existing open-source libraries for
|
|
|
f0470d5 |
increased functionality, speed and accuracy. In particular the
|
|
|
f0470d5 |
Boost (C++ Standard Extensions: http://www.boost.org) library is used.
|
|
|
f0470d5 |
|
|
|
f0470d5 |
Install the %{name} package if you need a library of basic C++ objects
|
|
|
f0470d5 |
for Customer-Choice Modeling (CCM), mainly for simulation purpose.
|
|
|
f0470d5 |
|
|
|
f0470d5 |
%package devel
|
|
|
f0470d5 |
Summary: Header files, libraries and development helper tools for %{name}
|
|
|
f0470d5 |
Group: Development/Libraries
|
|
|
f0470d5 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
f0470d5 |
Requires: pkgconfig
|
|
|
f0470d5 |
|
|
|
f0470d5 |
%description devel
|
|
|
f0470d5 |
This package contains the header files, shared libraries and
|
|
|
f0470d5 |
development helper tools for %{name}. If you would like to develop
|
|
|
f0470d5 |
programs using %{name}, you will need to install %{name}-devel.
|
|
|
f0470d5 |
|
|
|
f0470d5 |
%package doc
|
|
|
f0470d5 |
Summary: HTML documentation for the %{name} library
|
|
|
f0470d5 |
Group: Documentation
|
|
|
f0470d5 |
%if 0%{?fedora} || 0%{?rhel} > 5
|
|
|
f0470d5 |
BuildArch: noarch
|
|
|
f0470d5 |
%endif
|
|
|
f0470d5 |
BuildRequires: tex(latex)
|
|
|
f0470d5 |
BuildRequires: doxygen, ghostscript
|
|
|
f0470d5 |
|
|
|
f0470d5 |
%description doc
|
|
|
f0470d5 |
This package contains HTML pages, as well as a PDF reference manual,
|
|
|
f0470d5 |
for %{name}. All that documentation is generated thanks to Doxygen
|
|
|
f0470d5 |
(http://doxygen.org). The content is the same as what can be browsed
|
|
|
f0470d5 |
online (http://%{name}.org).
|
|
|
f0470d5 |
|
|
|
f0470d5 |
|
|
|
f0470d5 |
%prep
|
|
|
f0470d5 |
%setup -q
|
|
|
f0470d5 |
|
|
|
f0470d5 |
|
|
|
f0470d5 |
%build
|
|
|
f0470d5 |
%cmake .
|
|
|
f0470d5 |
make %{?_smp_mflags}
|
|
|
f0470d5 |
|
|
|
f0470d5 |
%install
|
|
|
f0470d5 |
rm -rf $RPM_BUILD_ROOT
|
|
|
f0470d5 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
f0470d5 |
|
|
|
f0470d5 |
mkdir -p %{mydocs}
|
|
|
ef10137 |
mv $RPM_BUILD_ROOT%{_docdir}/%{name}/html %{mydocs}
|
|
|
f0470d5 |
rm -f %{mydocs}/html/installdox
|
|
|
f0470d5 |
|
|
Petr Machata |
25b59a9 |
# Remove additional documentation files (those files are already available
|
|
Petr Machata |
25b59a9 |
# in the project top directory)
|
|
|
ef10137 |
rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/{NEWS,README,AUTHORS}
|
|
Petr Machata |
25b59a9 |
|
|
|
f0470d5 |
%check
|
|
|
f0470d5 |
ctest
|
|
|
f0470d5 |
|
|
|
f0470d5 |
%clean
|
|
|
f0470d5 |
rm -rf $RPM_BUILD_ROOT
|
|
|
f0470d5 |
|
|
|
f0470d5 |
%post -p /sbin/ldconfig
|
|
|
f0470d5 |
|
|
|
f0470d5 |
%postun -p /sbin/ldconfig
|
|
|
f0470d5 |
|
|
|
f0470d5 |
|
|
|
f0470d5 |
%files
|
|
|
f0470d5 |
%defattr(-,root,root,-)
|
|
|
f0470d5 |
%doc AUTHORS ChangeLog COPYING NEWS README
|
|
|
f0470d5 |
%{_bindir}/%{name}
|
|
|
f0470d5 |
%{_libdir}/lib%{name}.so.*
|
|
|
f0470d5 |
%{_mandir}/man1/%{name}.1.*
|
|
|
f0470d5 |
|
|
|
f0470d5 |
%files devel
|
|
|
f0470d5 |
%defattr(-,root,root,-)
|
|
|
f0470d5 |
%{_includedir}/%{name}
|
|
|
f0470d5 |
%{_bindir}/%{name}-config
|
|
|
f0470d5 |
%{_libdir}/lib%{name}.so
|
|
|
f0470d5 |
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
f0470d5 |
%{_datadir}/aclocal/%{name}.m4
|
|
|
f0470d5 |
%dir %{_datadir}/%{name}
|
|
|
f0470d5 |
%{_datadir}/%{name}/CMake
|
|
|
f0470d5 |
%{_mandir}/man1/%{name}-config.1.*
|
|
|
f0470d5 |
%{_mandir}/man3/%{name}-library.3.*
|
|
|
f0470d5 |
|
|
|
f0470d5 |
%files doc
|
|
|
f0470d5 |
%defattr(-,root,root,-)
|
|
|
f0470d5 |
%doc %{mydocs}/html
|
|
|
f0470d5 |
%doc COPYING
|
|
|
f0470d5 |
|
|
|
f0470d5 |
|
|
|
f0470d5 |
%changelog
|
|
|
ef10137 |
* Sun Jun 21 2015 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.2-1
|
|
|
ef10137 |
- Removed the dependency on ZeroMQ (only AirInv is dependent on it, not StdAir)
|
|
|
ef10137 |
|
|
|
1ea64a8 |
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00.1-11
|
|
|
1ea64a8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
1ea64a8 |
|
|
|
06a013b |
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.00.1-10
|
|
|
06a013b |
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
06a013b |
|
|
Petr Machata |
6791ddc |
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 1.00.1-9
|
|
Petr Machata |
6791ddc |
- Rebuild for boost 1.57.0
|
|
Petr Machata |
77adeba |
- Cmake should look for zmq.h, not zmq.hpp (stdair-1.00.1-cmake.patch)
|
|
Petr Machata |
6791ddc |
|
|
|
6fe0629 |
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00.1-8
|
|
|
6fe0629 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
6fe0629 |
|
|
|
323ca50 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00.1-7
|
|
|
323ca50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
323ca50 |
|
|
|
4fd9d76 |
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 1.00.1-6
|
|
|
4fd9d76 |
- rebuild for boost 1.55.0
|
|
|
4fd9d76 |
|
|
|
7be702b |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00.1-5
|
|
|
7be702b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
7be702b |
|
|
Petr Machata |
5bf7e15 |
* Sun Jul 28 2013 Petr Machata <pmachata@redhat.com> - 1.00.1-4
|
|
Petr Machata |
5bf7e15 |
- Rebuild for boost 1.54.0
|
|
Petr Machata |
5bf7e15 |
|
|
|
24496d6 |
* Wed May 22 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.1-3
|
|
|
24496d6 |
- Rebuild for Soci-3.2.1
|
|
|
24496d6 |
|
|
|
5b86443 |
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.1-2
|
|
|
5b86443 |
- Rebuild for Boost-1.53.0
|
|
|
5b86443 |
|
|
|
0fdc374 |
* Sun Dec 23 2012 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.00.1-1
|
|
|
0fdc374 |
- Upstream update
|
|
|
0fdc374 |
|
|
|
741de17 |
* Mon Aug 13 2012 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.5.3-4
|
|
|
741de17 |
- Rebuilt for new Boost 1.50.0.
|
|
|
741de17 |
|
|
|
53a4b8c |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-3
|
|
|
53a4b8c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
53a4b8c |
|
|
|
f4ee547 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-2
|
|
|
f4ee547 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
f4ee547 |
|
|
|
9fc2d59 |
* Mon Dec 05 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.5.3-1
|
|
|
9fc2d59 |
- Upstream update
|
|
|
9fc2d59 |
|
|
|
01b3903 |
* Sun Nov 20 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.5.2-2
|
|
|
01b3903 |
- Rebuild for the new Boost-1.48.0
|
|
|
01b3903 |
|
|
|
f5e70bc |
* Wed Nov 02 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.5.2-1
|
|
|
f5e70bc |
- Rebuilt for the new soci-3.1.0 and stdair-0.44.0 packages
|
|
|
c877c5f |
|
|
|
f0470d5 |
* Sat Sep 24 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.5.0-2
|
|
|
f0470d5 |
- Integrated feedback from review requests: #732218, #728649 and #702987
|
|
|
f0470d5 |
|
|
|
f0470d5 |
* Sat Aug 20 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.5.0-1
|
|
|
f0470d5 |
- Upstream integration
|
|
|
f0470d5 |
|
|
|
f0470d5 |
* Mon Aug 23 2010 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.4.0-1
|
|
|
f0470d5 |
- Initial RPM release
|
|
|
f0470d5 |
|