Compare commits
20 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
96dcd66c2b | ||
|
d65ea77581 | ||
|
e66e67d311 | ||
|
a1ad1b7d6c | ||
|
c04c2ccfb9 | ||
|
c4a796f0d6 | ||
|
2f0e0fb2b2 | ||
|
5aca9c1789 | ||
|
9da3d7f03b | ||
|
66cba764b3 | ||
|
e7e44f28f9 | ||
|
3eaf1ec3b2 | ||
|
c4d2cff01e | ||
|
32ddca8458 | ||
|
9853900ec9 | ||
|
adc1bcc84e | ||
|
05eff8f400 | ||
|
f4312bd646 | ||
|
2b1cdba023 | ||
|
adf224ab2a |
6
.gitignore
vendored
6
.gitignore
vendored
@ -0,0 +1,6 @@
|
|||||||
|
clog
|
||||||
|
stdair-*.tar.*
|
||||||
|
stdair-*.rpm
|
||||||
|
.build-*.log
|
||||||
|
/i?86/
|
||||||
|
/x86_64/
|
19
stdair-fix-boost-test-build.patch
Normal file
19
stdair-fix-boost-test-build.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
diff --git a/test/stdair/StandardAirlineITTestSuite.cpp b/test/stdair/StandardAirlineITTestSuite.cpp
|
||||||
|
index 8889740..65ab573 100644
|
||||||
|
--- a/test/stdair/StandardAirlineITTestSuite.cpp
|
||||||
|
+++ b/test/stdair/StandardAirlineITTestSuite.cpp
|
||||||
|
@@ -122,12 +122,12 @@ BOOST_AUTO_TEST_CASE (mpl_structure_test) {
|
||||||
|
|
||||||
|
if (boost::is_same<stdair_test::BookingClass,
|
||||||
|
stdair_test::Cabin::child>::value == false) {
|
||||||
|
- BOOST_REQUIRE ("The two types mut be equal, but are not");
|
||||||
|
+ BOOST_ERROR ("The two types mut be equal, but are not");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (boost::is_same<boost::mpl::at_c<types, 1>::type,
|
||||||
|
stdair_test::Cabin>::value == false) {
|
||||||
|
- BOOST_REQUIRE ("The type must be stdair_test::Cabin, but is not");
|
||||||
|
+ BOOST_ERROR ("The type must be stdair_test::Cabin, but is not");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
141
stdair.spec
Normal file
141
stdair.spec
Normal file
@ -0,0 +1,141 @@
|
|||||||
|
#
|
||||||
|
%global mydocs __tmp_docdir
|
||||||
|
#
|
||||||
|
Name: stdair
|
||||||
|
Version: 0.45.0
|
||||||
|
Release: 3%{?dist}
|
||||||
|
|
||||||
|
Summary: C++ Standard Airline IT Object Library
|
||||||
|
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
License: LGPLv2+
|
||||||
|
URL: http://%{name}.sourceforge.net
|
||||||
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
||||||
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
|
|
||||||
|
BuildRequires: cmake, python-devel
|
||||||
|
BuildRequires: boost141-devel, soci-mysql-devel, zeromq-devel, readline-devel
|
||||||
|
|
||||||
|
# The following patch comes from upstream: it is therefore already fixed in next version:
|
||||||
|
# https://github.com/airsim/stdair/commit/c33edce960715d13f9c1208882fa2cba0aa38fa3
|
||||||
|
Patch0: stdair-fix-boost-test-build.patch
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{name} aims at providing a clean API, and the corresponding C++
|
||||||
|
implementation, for the basis of Airline IT and travel distribution
|
||||||
|
Business Object Model (BOM), that is, to be used by several other open
|
||||||
|
source projects, such as AirRAC, RMOL, AirInv, AvlCal, AirSched, SimFQT,
|
||||||
|
SimLFS, SimCRS, TravelCCM, SEvMgr, TraDemGen, DSim, OpenTREP, etc.
|
||||||
|
|
||||||
|
Install the %{name} package if you need a library of basic C++ objects
|
||||||
|
for Airline IT (e.g., schedule management, inventory, revenue management,
|
||||||
|
revenue accounting), travel distribution, demand generation and customer choice
|
||||||
|
modeling, mainly for simulation purpose.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Header files, libraries and development helper tools for %{name}
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: pkgconfig
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains the header files, shared libraries and
|
||||||
|
development helper tools for %{name}. If you would like to develop
|
||||||
|
programs using %{name}, you will need to install %{name}-devel.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: HTML documentation for the %{name} library
|
||||||
|
Group: Documentation
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} > 5
|
||||||
|
BuildArch: noarch
|
||||||
|
%endif
|
||||||
|
BuildRequires: tex(latex)
|
||||||
|
BuildRequires: doxygen, ghostscript
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
This package contains HTML pages, as well as a PDF reference manual,
|
||||||
|
for %{name}. All that documentation is generated thanks to Doxygen
|
||||||
|
(http://doxygen.org). The content is the same as what can be browsed
|
||||||
|
online (http://%{name}.org).
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir -p build
|
||||||
|
pushd build
|
||||||
|
%cmake -DBOOST_LIBRARYDIR=%{_libdir}/boost141 \
|
||||||
|
-DBOOST_INCLUDEDIR=%{_includedir}/boost141 \
|
||||||
|
-DBoost_ADDITIONAL_VERSIONS="1.41 1.41.0" ..
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
popd
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
pushd build
|
||||||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Fix some permissions
|
||||||
|
find $RPM_BUILD_ROOT%{_libexecdir}/%{name} -type f -name '*.sh' -exec chmod +x {} \;
|
||||||
|
|
||||||
|
mkdir -p %{mydocs}
|
||||||
|
mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{mydocs}
|
||||||
|
rm -f %{mydocs}/html/installdox
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd build
|
||||||
|
#ctest
|
||||||
|
popd
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%{_libdir}/lib%{name}.so.*
|
||||||
|
%{_libdir}/lib%{name}uicl.so.*
|
||||||
|
%{_mandir}/man1/%{name}.1.*
|
||||||
|
%dir %{_libexecdir}/%{name}
|
||||||
|
%{_libexecdir}/%{name}/*.sh
|
||||||
|
%dir %{_datadir}/%{name}
|
||||||
|
%dir %{_datadir}/%{name}/db
|
||||||
|
%dir %{_datadir}/%{name}/db/data
|
||||||
|
%dir %{_datadir}/%{name}/samples
|
||||||
|
%dir %{_datadir}/%{name}/samples/rds01
|
||||||
|
%{_datadir}/%{name}/db/data/*.sql
|
||||||
|
%{_datadir}/%{name}/db/data/*.csv
|
||||||
|
%{_datadir}/%{name}/samples/*.csv
|
||||||
|
%{_datadir}/%{name}/samples/rds01/*.csv
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_includedir}/%{name}
|
||||||
|
%{_bindir}/%{name}-config
|
||||||
|
%{_libdir}/lib%{name}.so
|
||||||
|
%{_libdir}/lib%{name}uicl.so
|
||||||
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
%{_datadir}/aclocal/%{name}.m4
|
||||||
|
%{_datadir}/%{name}/CMake
|
||||||
|
%{_mandir}/man1/%{name}-config.1.*
|
||||||
|
%{_mandir}/man3/%{name}-library.3.*
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc %{mydocs}/html
|
||||||
|
%doc COPYING
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat Dec 17 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> 0.45.0-3
|
||||||
|
- New package for EPEL 4
|
||||||
|
|
Loading…
Reference in New Issue
Block a user