[astyle] update to 2.05.1 (#1175136), but stay at same soversion for library

Thomas Spura tomspur at fedoraproject.org
Wed Dec 17 10:45:09 UTC 2014


commit 09983b0a5c4aac8437c0382a2ba5487043d9b738
Author: Thomas Spura <thomas.spura at gmail.com>
Date:   Wed Dec 17 11:44:53 2014 +0100

    update to 2.05.1 (#1175136), but stay at same soversion for library

 .gitignore  |    1 +
 astyle.spec |   13 +++++++++----
 sources     |    2 +-
 3 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 52a4fd4..048f44d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ astyle_1.24_linux.tar.gz
 /astyle_2.03_linux.tar.gz
 /astyle_2.04_linux.tar.gz
 /astyle_2.05_linux.tar.gz
+/astyle_2.05.1_linux.tar.gz
diff --git a/astyle.spec b/astyle.spec
index 49cb266..09b7cbb 100644
--- a/astyle.spec
+++ b/astyle.spec
@@ -1,8 +1,10 @@
 Name:           astyle
-Version:        2.05
+Version:        2.05.1
 Release:        1%{?dist}
 Summary:        Source code formatter for C-like programming languages
 
+%global soversion 2.05
+
 Group:          Development/Tools
 License:        LGPLv3+
 URL:            http://astyle.sourceforge.net/
@@ -40,8 +42,8 @@ chmod a-x doc/*
 pushd src
     # it's much easier to compile it here than trying to fix the Makefile
     g++ $RPM_OPT_FLAGS -fPIC -c ASBeautifier.cpp ASEnhancer.cpp ASFormatter.cpp ASResource.cpp
-    g++ -shared -o libastyle-%{version}.so *.o -Wl,-soname,libastyle-%{version}.so
-    ln -s libastyle-%{version}.so libastyle.so
+    g++ -shared -o libastyle-%{soversion}.so *.o -Wl,-soname,libastyle-%{soversion}.so
+    ln -s libastyle-%{soversion}.so libastyle.so
     g++ $RPM_OPT_FLAGS -c ASLocalizer.cpp astyle_main.cpp
     g++ $RPM_OPT_FLAGS -o astyle ASLocalizer.o astyle_main.o -L. -lastyle
 popd
@@ -51,7 +53,7 @@ pushd src
     mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}}
 
     install -p -m 755 astyle $RPM_BUILD_ROOT%{_bindir}
-    install -p -m 755 libastyle-%{version}.so $RPM_BUILD_ROOT%{_libdir}
+    install -p -m 755 libastyle-%{soversion}.so $RPM_BUILD_ROOT%{_libdir}
     cp -P libastyle.so $RPM_BUILD_ROOT%{_libdir}
     install -p -m 644 astyle.h $RPM_BUILD_ROOT%{_includedir}
 popd
@@ -70,6 +72,9 @@ popd
 %{_includedir}/astyle.h
 
 %changelog
+* Wed Dec 17 2014 Thomas Spura <tomspur at fedoraproject.org> - 2.05.1-1
+- update to 2.05.1 (#1175136), but stay at same soversion for library
+
 * Thu Nov 20 2014 Thomas Spura <tomspur at fedoraproject.org> - 2.05-1
 - update to 2.05 (#1166336)
 
diff --git a/sources b/sources
index d41842c..5e5aeec 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3806526408bb08db795f0d4d35ef48e5  astyle_2.05_linux.tar.gz
+4142d178047d7040da3e0e2f1b030a1a  astyle_2.05.1_linux.tar.gz


More information about the scm-commits mailing list