Compare commits

...

20 Commits
master ... el4

Author SHA1 Message Date
Denis Arnaud 96dcd66c2b There is no Python-2.6 for EPEL 4. 2011-12-18 02:14:53 +01:00
Denis Arnaud d65ea77581 New package for EPEL 4 2011-12-18 02:06:12 +01:00
Denis Arnaud e66e67d311 Added a patch to fix a Boost.UTF-related test on EPEL 5. 2011-12-18 01:52:10 +01:00
Denis Arnaud a1ad1b7d6c StdAir now uses Boost-1.41 and Python-2.6 on EPEL 4 and 5. 2011-12-18 01:33:37 +01:00
Denis Arnaud c04c2ccfb9 StdAir now uses Boost-1.41 and Python-2.6 on EPEL 4 and 5. 2011-12-18 01:31:29 +01:00
Denis Arnaud c4a796f0d6 Rebuild to remove the dependency on no longer available python-libs.i386
package.
2011-12-17 15:46:39 +01:00
Denis Arnaud 2f0e0fb2b2 Upstream update 2011-12-05 02:16:16 +01:00
Denis Arnaud 5aca9c1789 Upstream update 2011-11-05 23:59:19 +01:00
Denis Arnaud 9da3d7f03b Rebuilt for the new soci-3.1.0 package 2011-11-02 23:24:43 +01:00
Denis Arnaud 66cba764b3 Upstream update
Improved a little the package descriptions
The build framework is now compatible with CMake 2.6 (the exclusive
dependency on CMake 2.8 has been removed).
2011-10-18 18:19:02 +02:00
Denis Arnaud e7e44f28f9 [Git] Just ignored non-Git-managed files. 2011-10-16 20:50:59 +02:00
Denis Arnaud 3eaf1ec3b2 Upstream update 2011-08-15 19:53:09 +02:00
Denis Arnaud c4d2cff01e Upstream update 2011-08-15 19:22:28 +02:00
Denis Arnaud 32ddca8458 Suppressed non-public entries from the change-log section. 2011-08-15 19:14:08 +02:00
Denis Arnaud 9853900ec9 Upstream update 2011-08-15 18:55:12 +02:00
Denis Arnaud adc1bcc84e De-activated temporarily the CTest check (the package is building cleanly). 2011-08-02 20:19:03 +02:00
Denis Arnaud 05eff8f400 New package: StdAir-0.36.2-1 on EPEL 4. 2011-08-02 20:05:40 +02:00
Denis Arnaud f4312bd646 New package: StdAir-0.36.2-1 on EPEL 5. 2011-08-02 20:05:05 +02:00
Denis Arnaud 2b1cdba023 New package: StdAir-0.36.2-1 on EPEL 6. 2011-08-02 20:03:49 +02:00
Denis Arnaud adf224ab2a New package: StdAir-0.36.2-1 on Fedora 15. 2011-08-02 20:01:13 +02:00
4 changed files with 167 additions and 0 deletions

6
.gitignore vendored
View File

@ -0,0 +1,6 @@
clog
stdair-*.tar.*
stdair-*.rpm
.build-*.log
/i?86/
/x86_64/

View File

@ -0,0 +1 @@
352197cdeac7763a828d0308c805e188 stdair-0.45.0.tar.bz2

View 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
View 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