[alglib] Update to 3.9.0

Sandro Mani smani at fedoraproject.org
Sat Dec 13 17:11:53 UTC 2014


commit a894e08e83008526bed7d0ee3572a01175086235
Author: Sandro Mani <manisandro at gmail.com>
Date:   Sat Dec 13 18:11:13 2014 +0100

    Update to 3.9.0

 CMakeLists.txt |    4 +++-
 alglib.spec    |   16 +++++++++++-----
 2 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1410f48..6c8a871 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,11 +1,13 @@
 # Set  the minimum  required version  of cmake  for a  project.
 cmake_minimum_required(VERSION 2.6)
 
+set(ALGLIB_VERSION "" CACHE STRING "The package version")
+
 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 VERSION 3.8.2 SOVERSION 3)
+set_target_properties(alglib PROPERTIES SUFFIX "-${ALGLIB_VERSION}${CMAKE_SHARED_LIBRARY_SUFFIX}")
 
 add_executable(test_c tests/test_c.cpp)
 add_executable(test_i tests/test_i.cpp)
diff --git a/alglib.spec b/alglib.spec
index 69d9a48..0d427d9 100644
--- a/alglib.spec
+++ b/alglib.spec
@@ -1,11 +1,11 @@
 Name:           alglib
-Version:        3.8.2
-Release:        6%{?dist}
+Version:        3.9.0
+Release:        1%{?dist}
 Summary:        A numerical analysis and data processing library
 
 License:        GPLv2+
 URL:            http://www.alglib.net/
-Source0:        http://www.alglib.net/translator/re/%{name}-%{version}.cpp.tgz
+Source0:        http://www.alglib.net/translator/re/%{name}-%{version}.cpp.gpl.tgz
 Source1:        CMakeLists.txt
 # Extracted from manual.cpp.html
 Source2:        bsd.txt
@@ -59,13 +59,15 @@ sed -i 's|\r||g' manual.cpp.html
 mkdir build
 (
 cd build
-%cmake ..
+%cmake -DALGLIB_VERSION=%{version} ..
 make %{?_smp_mflags}
 )
 
 
 %install
 %make_install -C build
+ln -s libalglib-%{version}.so %{buildroot}%{_libdir}/libalglib.so
+
 
 %check
 pushd build
@@ -81,7 +83,7 @@ popd
 
 %files
 %doc gpl2.txt
-%{_libdir}/libalglib.so.*
+%{_libdir}/libalglib-%{version}.so
 
 %files devel
 %{_includedir}/%{name}/
@@ -92,6 +94,10 @@ popd
 
 
 %changelog
+* Sat Dec 13 2014 Sandro Mani <manisandro at gmail.com> - 3.9.0-1
+- Update to 3.9.0
+- Use version as library name suffix, not as soname
+
 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.8.2-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the scm-commits mailing list