Compare commits
33 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b96d99d58 | ||
|
|
e6f2ba5153 | ||
|
|
b364df9b2a | ||
|
|
8334814382 | ||
|
|
7d6d17d180 | ||
|
|
fdc9d6078b | ||
|
|
67a3b09886 | ||
|
|
f99ac5ab94 | ||
|
|
2649c0944e | ||
|
|
d0f9bc4ae5 | ||
|
|
8c7af52da8 | ||
|
|
af299f0097 | ||
|
|
5765e7d997 | ||
|
|
b9e7ebe33d | ||
|
|
3127b0db43 | ||
|
|
91e6419193 | ||
|
|
dc95877410 | ||
|
|
b9a8733e9f | ||
|
|
0b27ea74dc | ||
|
|
eeebdfacf4 | ||
|
|
318a852db0 | ||
|
|
0b1f54b24f | ||
|
|
bf67178784 | ||
|
|
da37d045e6 | ||
|
|
a712b0d7c6 | ||
|
|
c5043555c7 | ||
|
|
07dcf0233f | ||
|
|
ffe1896e0a | ||
|
|
b88ca76ef3 | ||
|
|
5071c55035 | ||
|
|
de57e850df | ||
|
|
fcc6addf52 | ||
|
|
a0e0e0bd9a |
4 changed files with 111 additions and 34 deletions
9
.gitignore
vendored
9
.gitignore
vendored
|
|
@ -10,3 +10,12 @@
|
|||
/alglib-3.17.0.cpp.gpl.tgz
|
||||
/alglib-3.18.0.cpp.gpl.tgz
|
||||
/alglib-3.19.0.cpp.gpl.tgz
|
||||
/alglib-3.20.0.cpp.gpl.tgz
|
||||
/alglib-4.00.0.cpp.gpl.tgz
|
||||
/alglib-4.01.0.cpp.gpl.tgz
|
||||
/alglib-4.02.0.cpp.gpl.tgz
|
||||
/alglib-4.03.0.cpp.gpl.tgz
|
||||
/alglib-4.04.0.cpp.gpl.tgz
|
||||
/alglib-4.05.0.cpp.gpl.tgz
|
||||
/alglib-4.06.0.cpp.gpl.tgz
|
||||
/alglib-4.07.0.cpp.gpl.tgz
|
||||
|
|
|
|||
|
|
@ -1,24 +1,43 @@
|
|||
# Set the minimum required version of cmake for a project.
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
set(ALGLIB_VERSION "" CACHE STRING "The package version")
|
||||
|
||||
project(alglib
|
||||
VERSION ${ALGLIB_VERSION}
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
file(GLOB_RECURSE HDR RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} src/*.h)
|
||||
file(GLOB_RECURSE SRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} src/*.cpp)
|
||||
|
||||
add_library(alglib SHARED ${SRC})
|
||||
set_target_properties(alglib PROPERTIES SUFFIX "-${ALGLIB_VERSION}${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
||||
set_target_properties(alglib PROPERTIES
|
||||
SOVERSION ${PROJECT_VERSION}
|
||||
VERSION ${PROJECT_VERSION}
|
||||
)
|
||||
target_include_directories(alglib PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
|
||||
)
|
||||
|
||||
add_executable(test_c tests/test_c.cpp)
|
||||
add_executable(test_i tests/test_i.cpp)
|
||||
# add_executable(test_x tests/test_x.cpp)
|
||||
set_target_properties(test_c PROPERTIES COMPILE_FLAGS "-DAE_USE_ALLOC_COUNTER -DAE_DEBUG4POSIX")
|
||||
set_target_properties(test_i PROPERTIES COMPILE_FLAGS "-DAE_USE_ALLOC_COUNTER -DAE_DEBUG4POSIX")
|
||||
# set_target_properties(test_x PROPERTIES COMPILE_FLAGS "-DAE_USE_ALLOC_COUNTER -DAE_DEBUG4POSIX")
|
||||
include_directories(src/)
|
||||
target_link_libraries(test_c alglib)
|
||||
target_link_libraries(test_i alglib)
|
||||
# target_link_libraries(test_x alglib)
|
||||
install(TARGETS alglib)
|
||||
install(FILES ${HDR} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alglib)
|
||||
|
||||
install(TARGETS alglib LIBRARY DESTINATION lib${LIB_SUFFIX})
|
||||
install(FILES ${HDR} DESTINATION include/alglib)
|
||||
enable_testing()
|
||||
|
||||
foreach(test IN ITEMS
|
||||
test_c
|
||||
test_i
|
||||
# test_x
|
||||
)
|
||||
add_executable(${test} tests/${test}.cpp)
|
||||
target_compile_definitions(${test} PRIVATE
|
||||
AE_USE_ALLOC_COUNTER
|
||||
AE_DEBUG4POSIX
|
||||
)
|
||||
target_link_libraries(${test} PRIVATE alglib)
|
||||
add_test(NAME ${test}
|
||||
COMMAND ${test}
|
||||
)
|
||||
endforeach()
|
||||
|
|
|
|||
85
alglib.spec
85
alglib.spec
|
|
@ -1,12 +1,9 @@
|
|||
# Force out of source build
|
||||
%undefine __cmake_in_source_build
|
||||
|
||||
Name: alglib
|
||||
Version: 3.19.0
|
||||
Version: 4.07.0
|
||||
Release: 2%{?dist}
|
||||
Summary: A numerical analysis and data processing library
|
||||
|
||||
License: GPLv2+
|
||||
License: GPL-2.0-or-later
|
||||
URL: http://www.alglib.net/
|
||||
Source0: http://www.alglib.net/translator/re/%{name}-%{version}.cpp.gpl.tgz
|
||||
Source1: CMakeLists.txt
|
||||
|
|
@ -15,7 +12,6 @@ Source2: bsd.txt
|
|||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: make
|
||||
|
||||
%description
|
||||
ALGLIB is a cross-platform numerical analysis and data processing library.
|
||||
|
|
@ -39,7 +35,7 @@ developing applications that use %{name}.
|
|||
|
||||
%package doc
|
||||
Summary: API documentation for %{name}
|
||||
License: BSD
|
||||
License: ALGLIB-Documentation
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
|
|
@ -52,8 +48,7 @@ cp %{SOURCE1} .
|
|||
cp %{SOURCE2} .
|
||||
|
||||
# Fix permissions and line endings
|
||||
chmod 644 gpl2.txt
|
||||
chmod 644 manual.cpp.html
|
||||
find -type f -exec chmod 0644 {} \;
|
||||
sed -i 's|\r||g' manual.cpp.html
|
||||
|
||||
|
||||
|
|
@ -64,22 +59,15 @@ sed -i 's|\r||g' manual.cpp.html
|
|||
|
||||
%install
|
||||
%cmake_install
|
||||
ln -s libalglib-%{version}.so %{buildroot}%{_libdir}/libalglib.so
|
||||
|
||||
|
||||
%check
|
||||
pushd %{_vpath_builddir}
|
||||
LD_LIBRARY_PATH=$PWD ./test_c
|
||||
LD_LIBRARY_PATH=$PWD ./test_i
|
||||
popd
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
%ctest
|
||||
|
||||
|
||||
%files
|
||||
%license gpl2.txt
|
||||
%{_libdir}/libalglib-3.19.0.so
|
||||
%{_libdir}/libalglib.so.4.7.0
|
||||
|
||||
%files devel
|
||||
%{_includedir}/%{name}/
|
||||
|
|
@ -91,6 +79,67 @@ popd
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.07.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Mon Dec 29 2025 Sandro Mani <manisandro@gmail.com> - 4.07.0-1
|
||||
- Update to 4.07.0
|
||||
|
||||
* Thu Oct 09 2025 Sandro Mani <manisandro@gmail.com> - 4.06.0-1
|
||||
- Update to 4.06.0
|
||||
|
||||
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.05.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Wed Jul 16 2025 Sandro Mani <manisandro@gmail.com> - 4.05.0-2
|
||||
- Increase minimum cmake version, adapt library version
|
||||
|
||||
* Mon Jun 09 2025 Sandro Mani <manisandro@gmail.com> - 4.05.0-1
|
||||
- Update to 4.05.0
|
||||
|
||||
* Fri May 30 2025 Cristian Le <git@lecris.dev> - 4.04.0-3
|
||||
- Allow to build with CMake 4.0
|
||||
- Use more modern CMake patterns
|
||||
|
||||
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.04.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Sun Dec 22 2024 Sandro Mani <manisandro@gmail.com> - 4.04.0-1
|
||||
- Update to 4.04.0
|
||||
|
||||
* Sun Sep 29 2024 Sandro Mani <manisandro@gmail.com> - 4.03.0-1
|
||||
- Update to 4.03.0
|
||||
|
||||
* Wed Aug 28 2024 Miroslav Suchý <msuchy@redhat.com> - 4.02.0-3
|
||||
- convert license to SPDX
|
||||
|
||||
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.02.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Tue Jun 04 2024 Sandro Mani <manisandro@gmail.com> - 4.02.0-1
|
||||
- Update to 4.02.0
|
||||
|
||||
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.01.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.01.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Mon Jan 01 2024 Sandro Mani <manisandro@gmail.com> - 4.01.0-1
|
||||
- Update to 4.01.0
|
||||
|
||||
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.00.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Tue May 23 2023 Sandro Mani <manisandro@gmail.com> - 4.0.0-1
|
||||
- Update to 4.0.0
|
||||
|
||||
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.20.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Wed Dec 21 2022 Sandro Mani <manisandro@gmail.com> - 3.20.0-1
|
||||
- Update to 3.20.0
|
||||
|
||||
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.19.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (alglib-3.19.0.cpp.gpl.tgz) = 787112bfd4b84c8203a5bbba3d9fcf194ee4a3f192068013400b3d1de8d5d51433479da5cfb740da1be447053896526534a04eb79ba9516d69702a2b44f5d869
|
||||
SHA512 (alglib-4.07.0.cpp.gpl.tgz) = abc0a5aecec019eb4fcb5b3a5a95e88ed1154a52f7348f944dee4ebc8079cddfc00de30b45c6a846a201d4064e55dbcad2afe09df5e74d51120f83277704d733
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue