Skip to content

Commit

Permalink
Upgrade: libraqm version to 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SumitJenaHCL committed Nov 12, 2024
1 parent 104c0f5 commit 0dd849e
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 27 deletions.
21 changes: 21 additions & 0 deletions SPECS-EXTENDED/libraqm/libraqm-3f50e35.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
commit 3f50e35d239059823162cbfba3c7adfe8e5f1907
Author: Pierre Joye <pierre.php@gmail.com>
Date: Sat Feb 12 15:27:06 2022 +0700

strdup is a posix extension, to be used correctly that has to be defined (only used here, no need to pass as -D

diff --git a/tests/raqm-test.c b/tests/raqm-test.c
index 1d42c7c..1137fff 100644
--- a/tests/raqm-test.c
+++ b/tests/raqm-test.c
@@ -21,7 +21,9 @@
* SOFTWARE.
*
*/
-
+#ifdef __GNUC__
+#define _DEFAULT_SOURCE
+#endif
#include <assert.h>
#include <errno.h>
#include <locale.h>
4 changes: 2 additions & 2 deletions SPECS-EXTENDED/libraqm/libraqm.signatures.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Signatures": {
"raqm-0.7.0.tar.gz": "e28575ecdd4e8a1d277d9be8268bb663ce1e476aaf55eb0456787821ddf0f941"
"raqm-0.8.0.tar.xz": "e9b5ed5e6c1ed1341307d3fba5e325cd65af60f89616597c4a191b1aa6e95d1e"
}
}
}
39 changes: 16 additions & 23 deletions SPECS-EXTENDED/libraqm/libraqm.spec
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
Vendor: Microsoft Corporation
Distribution: Azure Linux
Name: libraqm
Version: 0.7.0
Release: 7%{?dist}
Version: 0.8.0
Release: 1%{?dist}
License: MIT
Summary: Complex Textlayout Library
Summary(ar): مكتبة رقم للنّصوص المركّبة
URL: https://github.com/HOST-Oman/libraqm
Source: https://github.com/HOST-Oman/libraqm/releases/download/v%{version}/raqm-%{version}.tar.gz
Source: %{url}/releases/download/v%{version}/raqm-%{version}.tar.xz
Patch0: libraqm-3f50e35.patch

%if 0%{?el7}
BuildRequires: python2
%else
BuildRequires: python3
%endif
BuildRequires: %{_bindir}/xsltproc
BuildRequires: gcc
BuildRequires: meson
BuildRequires: gcc
BuildRequires: freetype-devel
BuildRequires: harfbuzz-devel
BuildRequires: fribidi-devel
Expand Down Expand Up @@ -55,29 +51,23 @@ This package contains documentation files for raqm.
وثائق مكتبة رقم.

%prep
%setup -q -n raqm-%{version}
%if ! 0%{?el7}
sed s:python:%{__python3}:g -i tests/Makefile.in #Fixed in next release on upstream
%endif
%configure --disable-gtk-doc
%autosetup -p1 -n raqm-%{version}

%build
make %{?_smp_mflags}

%meson -Ddocs=true
%meson_build
%check
%if 0%{?el7}
export LC_ALL=en_US.UTF-8
%else
export LC_ALL=C.utf8
%endif
make check

%meson_test
%install
%make_install
%meson_install
rm -f %{buildroot}%{_libdir}/*.{la,a}

%ldconfig_scriptlets devel

%ldconfig_scriptlets
%files
%license COPYING
%{_libdir}/libraqm.so.*
Expand All @@ -91,10 +81,13 @@ rm -f %{buildroot}%{_libdir}/*.{la,a}

%files docs
%license COPYING
%doc AUTHORS NEWS README
%doc AUTHORS NEWS README.md
%{_datadir}/gtk-doc/html/raqm

%changelog
* Mon Nov 11 2024 Sumit Jena <v-sumitjena@microsoft.com> - 0.8.0-1
- Update to version 0.8.0

* Mon Mar 21 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 0.7.0-7
- Adding BR on '%%{_bindir}/xsltproc'.
- Disabled gtk doc generation to remove network dependency during build-time.
Expand Down
4 changes: 2 additions & 2 deletions cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10681,8 +10681,8 @@
"type": "other",
"other": {
"name": "libraqm",
"version": "0.7.0",
"downloadUrl": "https://github.com/HOST-Oman/libraqm/releases/download/v0.7.0/raqm-0.7.0.tar.gz"
"version": "0.8.0",
"downloadUrl": "https://github.com/HOST-Oman/libraqm/releases/download/v0.8.0/raqm-0.8.0.tar.xz"
}
}
},
Expand Down

0 comments on commit 0dd849e

Please sign in to comment.