Compare commits
113 Commits
rmol-0_23_
...
rawhide
Author | SHA1 | Date | |
---|---|---|---|
|
78c84caa36 | ||
|
8c67e03466 | ||
|
4e1aa1c1ad | ||
|
ae5635452d | ||
|
5e3343ca11 | ||
|
ea33c93ca7 | ||
|
7d8f2a93a6 | ||
|
ea59b1259c | ||
|
3ce4634d13 | ||
|
17e4dcc870 | ||
|
1affe6138a | ||
|
f60d3dfab6 | ||
|
8bd4efc70c | ||
|
0658c12195 | ||
|
b01d2146f3 | ||
|
66c7dfd808 | ||
|
565d0b8aee | ||
|
097203e6dc | ||
|
6b006a01e3 | ||
|
a78ba56ab6 | ||
|
38a34ec834 | ||
|
20ef33a8ee | ||
|
3b6ad6727f | ||
|
8475fb377d | ||
|
650db7608a | ||
|
450fe87b5c | ||
|
bf30b5cf7d | ||
|
4a85c04b4d | ||
|
f804676057 | ||
|
af9e75ebd2 | ||
|
3ce6a4bb45 | ||
|
fa0ee71b08 | ||
|
f9409bc7fc | ||
|
65822c9435 | ||
|
89ee60e7d9 | ||
|
2e70ae5b4e | ||
|
6d26e95110 | ||
|
94348cc350 | ||
|
752b7780d2 | ||
|
faa583e920 | ||
|
9be1db6b7b | ||
|
75dd06104a | ||
|
3353754f50 | ||
|
aa709e4a3a | ||
|
7baff94bdf | ||
|
c86a55c585 | ||
|
080e4be026 | ||
|
f25185da80 | ||
|
429b7fe204 | ||
|
9c8b4a0862 | ||
|
8eb39a554a | ||
|
d4500c3228 | ||
|
0e3f3dd5dd | ||
|
9b8ebfefb7 | ||
|
293303343a | ||
|
6c98ddd245 | ||
|
1306015e6c | ||
|
c1e8d51a56 | ||
|
0aa55b31de | ||
|
34cbb9c699 | ||
|
0e99da8c5c | ||
|
06a6df5994 | ||
|
933b53d749 | ||
|
4cd46a9cb2 | ||
|
016ab69773 | ||
|
66ddbee9ff | ||
|
1fa40949ba | ||
|
6ac24bd305 | ||
|
92cf62c2cb | ||
|
c1b1b22d73 | ||
|
43d5104dcf | ||
|
11717b67fc | ||
|
4362d2152e | ||
|
c118762558 | ||
|
6d8b1dcdae | ||
|
687e242b75 | ||
|
4ee369483d | ||
|
f83d11a2d0 | ||
|
ed5181f8e9 | ||
|
39a44897a1 | ||
|
26c8637eee | ||
|
19d2cf3a61 | ||
|
62200b361d | ||
|
2b70b7b248 | ||
|
cd7f9cabb6 | ||
|
8bdb8c677f | ||
|
7f074cbb3b | ||
|
23b4408334 | ||
|
bcde286e2c | ||
|
3f0c8ffc4e | ||
|
9752fef90b | ||
|
42e2f290e3 | ||
|
8abaade601 | ||
|
c5adab6d31 | ||
|
5e0105f5fc | ||
|
ab8844a9bd | ||
|
7dd5ad4d58 | ||
|
3b669bea12 | ||
|
6b570d8294 | ||
|
4cec2b6280 | ||
|
07cff20623 | ||
|
0fed785b67 | ||
|
2e2a5202ea | ||
|
8d51d5f730 | ||
|
60f79d5df0 | ||
|
f0b705939d | ||
|
ca778518ac | ||
|
36073d9bf6 | ||
|
5c7d2b2192 | ||
|
324a62df3a | ||
|
9e78e2a865 | ||
|
0f673eea95 | ||
|
6474f99734 |
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
/rmol-*.tar.*
|
||||
/rmol-*.src.rpm
|
||||
/rmol-*.*.*/
|
||||
/clog
|
||||
.build-*.*.log
|
||||
/noarch/
|
||||
/x86_64/
|
||||
/i?86/
|
||||
/tarballs/
|
53
Add-Python-3.13-to-cmake-config.patch
Normal file
53
Add-Python-3.13-to-cmake-config.patch
Normal file
@ -0,0 +1,53 @@
|
||||
From 5b5d123085d5ee2068118926d5fb8c1602745778 Mon Sep 17 00:00:00 2001
|
||||
From: Karolina Surma <ksurma@redhat.com>
|
||||
Date: Tue, 21 Nov 2023 16:09:53 +0100
|
||||
Subject: [PATCH] Add Python 3.13 to cmake config
|
||||
|
||||
---
|
||||
config/FindPython/Support.cmake | 2 +-
|
||||
config/FindPythonInterp.cmake | 2 +-
|
||||
config/FindPythonLibs.cmake | 2 +-
|
||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/config/FindPython/Support.cmake b/config/FindPython/Support.cmake
|
||||
index 517ac21..b62f536 100644
|
||||
--- a/config/FindPython/Support.cmake
|
||||
+++ b/config/FindPython/Support.cmake
|
||||
@@ -28,7 +28,7 @@ if (NOT DEFINED _${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR)
|
||||
message (FATAL_ERROR "FindPython: INTERNAL ERROR")
|
||||
endif()
|
||||
if (_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR EQUAL "3")
|
||||
- set(_${_PYTHON_PREFIX}_VERSIONS 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
|
||||
+ set(_${_PYTHON_PREFIX}_VERSIONS 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
|
||||
elseif (_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR EQUAL "2")
|
||||
set(_${_PYTHON_PREFIX}_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0)
|
||||
else()
|
||||
diff --git a/config/FindPythonInterp.cmake b/config/FindPythonInterp.cmake
|
||||
index 7ad3587..e6dd298 100644
|
||||
--- a/config/FindPythonInterp.cmake
|
||||
+++ b/config/FindPythonInterp.cmake
|
||||
@@ -54,7 +54,7 @@ unset(_Python_NAMES)
|
||||
|
||||
set(_PYTHON1_VERSIONS 1.6 1.5)
|
||||
set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0)
|
||||
-set(_PYTHON3_VERSIONS 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
|
||||
+set(_PYTHON3_VERSIONS 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
|
||||
|
||||
if(PythonInterp_FIND_VERSION)
|
||||
if(PythonInterp_FIND_VERSION_COUNT GREATER 1)
|
||||
diff --git a/config/FindPythonLibs.cmake b/config/FindPythonLibs.cmake
|
||||
index 43a84dd..8dfd060 100644
|
||||
--- a/config/FindPythonLibs.cmake
|
||||
+++ b/config/FindPythonLibs.cmake
|
||||
@@ -79,7 +79,7 @@ set(CMAKE_FIND_FRAMEWORK LAST)
|
||||
|
||||
set(_PYTHON1_VERSIONS 1.6 1.5)
|
||||
set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0)
|
||||
-set(_PYTHON3_VERSIONS 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
|
||||
+set(_PYTHON3_VERSIONS 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
|
||||
|
||||
if(PythonLibs_FIND_VERSION)
|
||||
if(PythonLibs_FIND_VERSION_COUNT GREATER 1)
|
||||
--
|
||||
2.41.0
|
||||
|
21
Makefile
21
Makefile
@ -1,21 +0,0 @@
|
||||
# Makefile for source rpm: rmol
|
||||
# $Id$
|
||||
NAME := rmol
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
151
rmol.spec
Normal file
151
rmol.spec
Normal file
@ -0,0 +1,151 @@
|
||||
# Build -python subpackage
|
||||
%bcond_without python
|
||||
|
||||
#
|
||||
Name: rmol
|
||||
Version: 1.00.9
|
||||
Release: %autorelease
|
||||
|
||||
Summary: C++ library of Revenue Management and Optimisation classes and functions
|
||||
|
||||
License: LGPL-2.1-or-later
|
||||
URL: https://github.com/airsim/%{name}
|
||||
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
|
||||
Patch: Add-Python-3.13-to-cmake-config.patch
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: cmake
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: pkgconfig(readline)
|
||||
BuildRequires: soci-mysql-devel
|
||||
BuildRequires: soci-sqlite3-devel
|
||||
BuildRequires: pkgconfig(stdair)
|
||||
BuildRequires: pkgconfig(airrac)
|
||||
|
||||
%description
|
||||
%{name} is a C++ library of Revenue Management and Optimisation classes
|
||||
and functions. Typically, that library may be used by service providers
|
||||
(e.g., airlines offering flight seats, hotels offering rooms, rental car
|
||||
companies offering rental days, broadcasting company offering advertisement
|
||||
slots, theaters offering seats, etc.) to help in optimizing their revenues
|
||||
from seat capacities.
|
||||
Most of the algorithms implemented are public and documented in the
|
||||
following book:
|
||||
The Theory and practice of Revenue Management, by Kalyan T. Talluri and
|
||||
Garrett J. van Ryzin, Kluwer Academic Publishers, 2004, ISBN 1-4020-7701-7
|
||||
|
||||
%{name} makes an extensive use of existing open-source libraries for
|
||||
increased functionality, speed and accuracy. In particular the
|
||||
Boost (C++ Standard Extensions: https://www.boost.org) library is used.
|
||||
|
||||
Install the %{name} package if you need a library of basic C++ objects
|
||||
for Airline Revenue Management (RM), mainly for simulation purpose.
|
||||
|
||||
%package devel
|
||||
Summary: Header files, libraries and development helper tools for %{name}
|
||||
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
|
||||
BuildArch: noarch
|
||||
BuildRequires: tex(latex)
|
||||
BuildRequires: texlive-epstopdf
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: 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
|
||||
(https://doxygen.org). The content is the same as what can be browsed
|
||||
online (https://%{name}.net).
|
||||
|
||||
%if %{with python}
|
||||
%package -n python3-%{name}
|
||||
Summary: Python bindings for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: boost-python3-devel
|
||||
%{?python_provide:%python_provide python3-%{name}}
|
||||
|
||||
%description -n python3-%{name}
|
||||
This package contains Python libraries for %{name}
|
||||
%endif
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%cmake
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
# Removed the Doxygen installer
|
||||
rm -f %{buildroot}%{_docdir}/%{name}/html/installdox
|
||||
|
||||
# Remove additional documentation files (those files are already available
|
||||
# in the project top directory)
|
||||
rm -f %{buildroot}%{_docdir}/%{name}/{NEWS,README.md,AUTHORS}
|
||||
|
||||
%check
|
||||
%ctest
|
||||
|
||||
%if %{with python}
|
||||
%post -n python3-%{name}
|
||||
ln -s -f %{python3_sitearch}/py%{name}/py%{name} %{_bindir}/py%{name}
|
||||
|
||||
%postun -n python3-%{name}
|
||||
rm -f %{_bindir}/py%{name}
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%doc AUTHORS ChangeLog COPYING NEWS README.md
|
||||
%{_bindir}/%{name}
|
||||
%{_bindir}/%{name}_drawBPC
|
||||
%{_bindir}/%{name}_extractBPC
|
||||
%{_libdir}/lib%{name}.so.*
|
||||
%{_mandir}/man1/%{name}.1.*
|
||||
%{_mandir}/man1/%{name}_drawBPC.1.*
|
||||
%{_mandir}/man1/%{name}_extractBPC.1.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/%{name}/
|
||||
%{_bindir}/%{name}-config
|
||||
%{_libdir}/lib%{name}.so
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%{_datadir}/aclocal/%{name}.m4
|
||||
%dir %{_datadir}/%{name}
|
||||
%{_datadir}/%{name}/CMake/%{name}-config-version.cmake
|
||||
%{_datadir}/%{name}/CMake/%{name}-config.cmake
|
||||
%{_datadir}/%{name}/CMake/%{name}-library-depends.cmake
|
||||
%{_datadir}/%{name}/CMake/%{name}-library-depends-debug.cmake
|
||||
%{_mandir}/man1/%{name}-config.1.*
|
||||
%{_mandir}/man3/%{name}-library.3.*
|
||||
|
||||
%files doc
|
||||
%doc %{_docdir}/%{name}/
|
||||
%license COPYING
|
||||
|
||||
%if %{with python}
|
||||
%files -n python3-%{name}
|
||||
%{python3_sitearch}/py%{name}/
|
||||
%{_mandir}/man1/py%{name}.1.*
|
||||
%{_datadir}/%{name}/CMake/%{name}-config-python.cmake
|
||||
%{_datadir}/%{name}/CMake/%{name}-python-library-depends-debug.cmake
|
||||
%{_datadir}/%{name}/CMake/%{name}-python-library-depends.cmake
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
|
Loading…
Reference in New Issue
Block a user