[libadwaita] Release 1.0.0-alpha.1



commit faa9f26a2b8a89923c0b83d42e84078f672c19ec
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu May 27 12:44:27 2021 +0200

    Release 1.0.0-alpha.1
    
    Use SemVer as our versioning scheme, and release libadwaita
    1.0.0-alpha.1 as the first alpha version of the libadwaita 1 API. The
    first beta will be 1.0.0-beta.1 and the first stable will be 1.0.0.
    
    Given the library was unreleased and pre-alpha, this version number
    change isn't regarded as a break but as a fix, and applications using
    the library and checking its version number are held responsible for
    updating their code.
    
    Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/44

 NEWS        |  7 +++++++
 meson.build | 12 ++++--------
 2 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/NEWS b/NEWS
index e69de29b..de72e47d 100644
--- a/NEWS
+++ b/NEWS
@@ -0,0 +1,7 @@
+=====================
+Version 1.0.0-alpha.1
+=====================
+
+- First libadwaita 1 alpha.
+- Check the migration guide in the documentation to port from libhandy
+  to it.
diff --git a/meson.build b/meson.build
index 3ce6aa86..1deb43f7 100644
--- a/meson.build
+++ b/meson.build
@@ -1,26 +1,22 @@
 project('libadwaita', 'c',
-          version: '1.1.0',
+          version: '1.0.0-alpha.1',
           license: 'LGPL-2.1+',
     meson_version: '>= 0.53.0',
   default_options: [ 'warning_level=1', 'buildtype=debugoptimized', 'c_std=gnu11' ],
 )
 
-version_arr = meson.project_version().split('.')
+version_arr = meson.project_version().split('-')[0].split('.')
 adwaita_version_major = version_arr[0].to_int()
 adwaita_version_minor = version_arr[1].to_int()
 adwaita_version_micro = version_arr[2].to_int()
 
 # The major api version as encoded in the libraries name
-apiversion = '1'
+apiversion = adwaita_version_major.to_string()
 # The so major version of the library
 soversion = 0
 package_api_name = '@0@-@1@'.format(meson.project_name(), apiversion)
 
-if adwaita_version_minor.is_odd()
-  adwaita_interface_age = 0
-else
-  adwaita_interface_age = adwaita_version_micro
-endif
+adwaita_interface_age = adwaita_version_micro
 
 # maintaining compatibility with libtool versioning
 # current = minor * 100 + micro - interface


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]