Compare commits

...
Sign in to create a new pull request.

33 commits

Author SHA1 Message Date
Fedora Release Engineering
6b96d99d58 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 03:34:52 +00:00
Sandro Mani
e6f2ba5153 Update to 4.07.0 2025-12-30 09:41:05 +01:00
Sandro Mani
b364df9b2a Switch doc license to ALGLIB-Documentation 2025-11-24 09:31:40 +01:00
Sandro Mani
8334814382 Bump soname 2025-10-09 23:53:06 +02:00
Sandro Mani
7d6d17d180 Update to 4.06.0 2025-10-09 23:14:59 +02:00
Fedora Release Engineering
fdc9d6078b Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 16:53:21 +00:00
Sandro Mani
67a3b09886 Increase minimum cmake version, adapt library version 2025-07-16 16:01:58 +02:00
Sandro Mani
f99ac5ab94 Bump soname 2025-06-09 21:04:04 +02:00
Sandro Mani
2649c0944e Update to 4.05.0 2025-06-09 15:51:16 +02:00
Sandro Mani
d0f9bc4ae5 Revert to LicenseRef-Callaway-BSD until license reviewed 2025-06-04 21:28:07 +02:00
Sandro Mani
8c7af52da8 Set proper license 2025-05-31 18:58:36 +02:00
Sandro Mani
af299f0097 Don't use version macro in %files 2025-05-30 20:49:26 +02:00
Sandro Mani
5765e7d997 Include GNUInstallDirs after defining project 2025-05-30 20:49:10 +02:00
Sandro Mani
b9e7ebe33d Fix stray executable permissions 2025-05-30 19:16:14 +02:00
Sandro Mani
3127b0db43 Fix License 2025-05-30 19:15:55 +02:00
Cristian Le
91e6419193 Allow to build with CMake 4.0 2025-05-30 16:17:57 +02:00
Fedora Release Engineering
dc95877410 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 10:50:51 +00:00
Sandro Mani
b9a8733e9f Bump soname 2024-12-22 22:46:36 +01:00
Sandro Mani
0b27ea74dc Update to 4.04.0 2024-12-22 21:50:49 +01:00
Sandro Mani
eeebdfacf4 Fix %files 2024-09-29 18:51:40 +02:00
Sandro Mani
318a852db0 Update to 4.03.0 2024-09-29 18:37:25 +02:00
Miroslav Suchý
0b1f54b24f convert license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-08-28 07:49:35 +02:00
Fedora Release Engineering
bf67178784 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 16:49:50 +00:00
Sandro Mani
da37d045e6 Fix %files 2024-06-04 07:34:05 +02:00
Sandro Mani
a712b0d7c6 Update to 4.02.0 2024-06-04 07:21:22 +02:00
Fedora Release Engineering
c5043555c7 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 22:53:23 +00:00
Fedora Release Engineering
07dcf0233f Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 12:40:20 +00:00
Sandro Mani
ffe1896e0a Update to 4.01.0 2024-01-01 19:42:54 +01:00
Sandro Mani
b88ca76ef3 Update to 4.01.0 2024-01-01 19:04:18 +01:00
Fedora Release Engineering
5071c55035 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 13:06:40 +00:00
Sandro Mani
de57e850df Update to 4.00.0 2023-05-23 14:30:33 +02:00
Fedora Release Engineering
fcc6addf52 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-18 21:34:52 +00:00
Sandro Mani
a0e0e0bd9a Update to 3.20.0 2022-12-22 09:51:24 +01:00
4 changed files with 111 additions and 34 deletions

9
.gitignore vendored
View file

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

View file

@ -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()

View file

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

View file

@ -1 +1 @@
SHA512 (alglib-3.19.0.cpp.gpl.tgz) = 787112bfd4b84c8203a5bbba3d9fcf194ee4a3f192068013400b3d1de8d5d51433479da5cfb740da1be447053896526534a04eb79ba9516d69702a2b44f5d869
SHA512 (alglib-4.07.0.cpp.gpl.tgz) = abc0a5aecec019eb4fcb5b3a5a95e88ed1154a52f7348f944dee4ebc8079cddfc00de30b45c6a846a201d4064e55dbcad2afe09df5e74d51120f83277704d733