Compare commits

..

No commits in common. "rawhide" and "f39" have entirely different histories.

4 changed files with 28 additions and 97 deletions

7
.gitignore vendored
View file

@ -12,10 +12,3 @@
/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,43 +1,24 @@
cmake_minimum_required(VERSION 3.5)
# Set the minimum required version of cmake for a project.
cmake_minimum_required(VERSION 2.6)
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
SOVERSION ${PROJECT_VERSION}
VERSION ${PROJECT_VERSION}
)
target_include_directories(alglib PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
)
set_target_properties(alglib PROPERTIES SUFFIX "-${ALGLIB_VERSION}${CMAKE_SHARED_LIBRARY_SUFFIX}")
install(TARGETS alglib)
install(FILES ${HDR} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alglib)
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)
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()
install(TARGETS alglib LIBRARY DESTINATION lib${LIB_SUFFIX})
install(FILES ${HDR} DESTINATION include/alglib)

View file

@ -1,9 +1,9 @@
Name: alglib
Version: 4.07.0
Version: 4.00.0
Release: 2%{?dist}
Summary: A numerical analysis and data processing library
License: GPL-2.0-or-later
License: GPLv2+
URL: http://www.alglib.net/
Source0: http://www.alglib.net/translator/re/%{name}-%{version}.cpp.gpl.tgz
Source1: CMakeLists.txt
@ -12,6 +12,7 @@ Source2: bsd.txt
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: make
%description
ALGLIB is a cross-platform numerical analysis and data processing library.
@ -35,7 +36,7 @@ developing applications that use %{name}.
%package doc
Summary: API documentation for %{name}
License: ALGLIB-Documentation
License: BSD
BuildArch: noarch
%description doc
@ -48,7 +49,8 @@ cp %{SOURCE1} .
cp %{SOURCE2} .
# Fix permissions and line endings
find -type f -exec chmod 0644 {} \;
chmod 644 gpl2.txt
chmod 644 manual.cpp.html
sed -i 's|\r||g' manual.cpp.html
@ -59,15 +61,19 @@ sed -i 's|\r||g' manual.cpp.html
%install
%cmake_install
ln -s libalglib-%{version}.so %{buildroot}%{_libdir}/libalglib.so
%check
%ctest
pushd %{_vpath_builddir}
LD_LIBRARY_PATH=$PWD ./test_c
LD_LIBRARY_PATH=$PWD ./test_i
popd
%files
%license gpl2.txt
%{_libdir}/libalglib.so.4.7.0
%{_libdir}/libalglib-4.00.0.so
%files devel
%{_includedir}/%{name}/
@ -79,55 +85,6 @@ sed -i 's|\r||g' manual.cpp.html
%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

View file

@ -1 +1 @@
SHA512 (alglib-4.07.0.cpp.gpl.tgz) = abc0a5aecec019eb4fcb5b3a5a95e88ed1154a52f7348f944dee4ebc8079cddfc00de30b45c6a846a201d4064e55dbcad2afe09df5e74d51120f83277704d733
SHA512 (alglib-4.00.0.cpp.gpl.tgz) = a17f5be32c219614e7914c7a8d5ab9c59382e5255c80050a0829c5f173097d47fd90380a1c2ce35d16984e87332a8353968c4acc608c6721378a44b116aa1c0e