Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade: cairomm to version 1.14.5 #11256

Open
wants to merge 1 commit into
base: 3.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions SPECS-EXTENDED/cairomm/cairomm-1.14.5.tar.xz.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-----BEGIN PGP SIGNATURE-----

iQGzBAABCgAdFiEEbLRFqBZQRxSqSWJXnroVX8wS0sAFAmUT1fYACgkQnroVX8wS
0sCDgAv+M7B5LF05RQ/gX0QvHRVvFC5cQlLvfs9r5nfeYGgzO328QQc9WDL8E3pz
WRmo+JJ+o5MCsjDsyoTlGnk5wAkD7fC6WRCRnxnfXrf1vmLnn6iY5PRQ1NiNDOOr
ba45Du6h2DyRFZ+NZ+o/0rK6QyloT8ze+CURrq2AKt5WdUPXWszcMdroehtNl3iM
TZxgxHIPSjzlUL4udKvtcmnOUqlIszTqgMOxnRkhBr9UnnVkAmqOC2KDDKKr2N4M
hb/1tvoeKH0r8Fj5EJ1lBQk5Up9Lv6JEd+glMy6W+9EfymE8jDevezMNyfSvavYa
mmjg5vhhuCUeNv0a+gJjmm5YkBufSiivY9o2ijSWsby7zc1ytB6TFJkbqpdMmjk+
EPUCqBk14D0b27+Y3SwEZ6sWVXm+XcnNrJOwvN+xKF9isg+Z841v9EndC8nEPE1+
fYV2F8yHesc5oDHqBWWyIluls8BxVqV+8gMcWP/CGau02Vti8FXZk7Vta5Dm5iry
yHKnW1jt
=36l8
-----END PGP SIGNATURE-----
6 changes: 4 additions & 2 deletions SPECS-EXTENDED/cairomm/cairomm.signatures.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"Signatures": {
"cairomm-1.12.0.tar.gz": "50435aec6fdd976934b791e808993160113ad19ca53a5634a9b64ccbe55874cc"
"cairomm-1.14.5.tar.xz": "70136203540c884e89ce1c9edfb6369b9953937f6cd596d97c78c9758a5d48db",
"cairomm-1.14.5.tar.xz.asc": "bac7d9a09dbf876aaff86da6f49ffa35465e0cbf0082870a8d534ac4a3598b78",
"gpg_key.pub": "b1457513a743cff02a2d70908b127b1887dae88c9fe62db6299be3c7ccd55e4f"
}
}
}
212 changes: 162 additions & 50 deletions SPECS-EXTENDED/cairomm/cairomm.spec
Original file line number Diff line number Diff line change
@@ -1,87 +1,199 @@
Summary: C++ API for the cairo graphics library

%global so_version 1
%global apiver 1.0

# “Let mm-common-get copy some files to untracked/”, i.e., replace scripts from
# the tarball with those from mm-common. This is (potentially) required if
# building an autotools-generated tarball with meson, or vice versa.
%bcond maintainer_mode 0

# Doxygen HTML help is not suitable for packaging due to a minified JavaScript
# bundle inserted by Doxygen itself. See discussion at
# https://bugzilla.redhat.com/show_bug.cgi?id=2006555.
#
# We can enable the Doxygen PDF documentation as a substitute.
#
# We still generate the HTML documentation, but strip out all the JavaScript
# that causes policy issues. This degrades it in the browser, but is sufficient
# to keep the Devhelp documentation working.
#%bcond doc_pdf 1

Name: cairomm
Version: 1.12.0
Release: 15%{?dist}
License: LGPLv2+
Vendor: Microsoft Corporation
Summary: C++ API for the cairo graphics library
Version: 1.14.5
Release: 1%{?dist}
vendor: Microsoft Corporation
Distribution: Azure Linux
URL: https://www.cairographics.org
Source: http://www.cairographics.org/releases/%{name}-%{version}.tar.gz
%global apiver 1.0
%global cairo_version 1.10.0
License: LGPL-2.0-or-later

%global src_base https://www.cairographics.org/releases
Source0: %{src_base}/cairomm-%{version}.tar.xz
# No keyring with authorized GPG signing keys is published
# (https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/331), but we
# are able to verify the signature using the key for Kjell Ahlstedt from
# https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/290.
Source1: %{src_base}/cairomm-%{version}.tar.xz.asc
Source2: https://gitlab.freedesktop.org/freedesktop/freedesktop/uploads/0ac64e9582659f70a719d59fb02cd037/gpg_key.pub
%global libsigc_version 2.5.1
BuildRequires: cairo-devel >= %{cairo_version}
%global cairo_version 1.10.0
BuildRequires: gnupg2

BuildRequires: gcc-c++
BuildRequires: meson

BuildRequires: pkgconfig(cairo)
BuildRequires: libsigc++20-devel >= %{libsigc_version}
BuildRequires: perl-interpreter
BuildRequires: pkgconfig
BuildRequires: perl(Getopt::Long)
Requires: cairo%{?_isa} >= %{cairo_version}
Requires: libsigc++20%{?_isa} >= %{libsigc_version}
BuildRequires: pkgconfig(fontconfig)

# Everything mentioned in data/cairomm*.pc.in, except the Quartz and Win32
# libraries that do not apply to this platform:
BuildRequires: pkgconfig(cairo-ft)
BuildRequires: pkgconfig(cairo-pdf)
BuildRequires: pkgconfig(cairo-png)
BuildRequires: pkgconfig(cairo-ps)
BuildRequires: pkgconfig(cairo-svg)
BuildRequires: pkgconfig(cairo-xlib)
BuildRequires: pkgconfig(cairo-xlib-xrender)

%if %{with maintainer_mode}
# mm-common-get
BuildRequires: mm-common >= 1.0.4
%endif

BuildRequires: doxygen
# dot
BuildRequires: graphviz
# xsltproc
BuildRequires: libxslt
BuildRequires: pkgconfig(mm-common-libstdc++)


# For tests:
BuildRequires: boost-devel

# Based on discussion in
# https://src.fedoraproject.org/rpms/pangomm/pull-request/2, cairomm will
# continue to provide API/ABI version 1.0 indefinitely, with the cairomm1.16
# package providing the new 1.16 API/ABI series. This virtual Provides is
# therefore no longer required, as dependent packages requiring the 1.0 API/ABI
# may safely require cairomm and its subpackages.
Provides: cairomm%{apiver}%{?_isa} = %{version}-%{release}

%description
Cairomm is the C++ API for the cairo graphics library. It offers all the power
of cairo with an interface familiar to C++ developers, including use of the
Standard Template Library where it makes sense.
This library provides a C++ interface to cairo.

The API/ABI version series is %{apiver}.


%package devel
Summary: Headers for developing programs that will use %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Summary: Development files for cairomm
Requires: cairomm%{?_isa} = %{version}-%{release}

Provides: cairomm%{apiver}-devel%{?_isa} = %{version}-%{release}

%description devel
Cairomm is the C++ API for the cairo graphics library. It offers all the power
of cairo with an interface familiar to C++ developers, including use of the
Standard Template Library where it makes sense.
The cairomm-devel package contains libraries and header files for developing
applications that use cairomm.

The API/ABI version series is %{apiver}.


#%package doc
#Summary: Documentation for cairomm

This package contains the libraries and header files needed for
developing %{name} applications.
#BuildArch: noarch

%package doc
Summary: Developer's documentation for the cairomm library
Requires: %{name} = %{version}-%{release}
Requires: libsigc++20-doc
BuildArch: noarch
#Provides: cairomm%{apiver}-doc = %{version}-%{release}

%description doc
This package contains developer's documentation for the cairomm
library. Cairomm is the C++ API for the cairo graphics library.
#%description doc
#Documentation for cairomm can be viewed through the devhelp documentation
#browser.

The documentation can be viewed either through the devhelp
documentation browser or through a web browser.
#The API/ABI version series is %{apiver}.

If using a web browser the documentation is installed in the gtk-doc
hierarchy and can be found at %{_docdir}/cairomm-1.0

%prep
%setup -q
%{gpgverify} \
--keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'

%autosetup
# Fix stray executable bit:
chmod -v a-x NEWS

# We must remove the jQuery/jQueryUI bundle with precompiled/minified/bundled
# JavaScript that is in untracked/docs/reference/html/jquery.js, since such
# sources are banned in Fedora. (Note also that the bundled JavaScript had a
# different license.) We also remove the tag file, which triggers a rebuild of
# the documentation. While we are at it, we might as well rebuild the devhelp
# XML too. Note that we will still install the HTML documentation, since the
# devhelp XML requires it, but we will strip out the JavaScript, which will
# degrade the documentation in a web browser.
rm -rf untracked/docs/reference/html
rm untracked/docs/reference/cairomm-%{apiver}.tag \
untracked/docs/reference/cairomm-%{apiver}.devhelp2



%build
%configure --disable-static
make %{?_smp_mflags}
%meson \
-Dmaintainer-mode=%{?with_maintainer_mode:true}%{?!with_maintainer_mode:false} \
-Dbuild-documentation=false \
-Dbuild-examples=false \
-Dbuild-tests=true \
-Dboost-shared=true \
-Dwarnings=max


%meson_build





%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%meson_install
#install -t %{buildroot}%{_docdir}/cairomm-%{apiver} -m 0644 -p \
# ChangeLog NEWS README.md
#cp -rp examples %{buildroot}%{_docdir}/cairomm-%{apiver}/

# Strip out bundled and/or pre-minified JavaScript; this degrades the browser
# experience, but the HTML is still usable for devhelp.
#find '%{buildroot}%{_docdir}/cairomm-%{apiver}/reference/html' \
# -type f \( -name '*.js' -o -name '*.js.*' \) -print -delete



%ldconfig_scriptlets
%check
%meson_test

%files
%license COPYING
%doc AUTHORS README NEWS
%{_libdir}/lib*.so.*
%{_libdir}/libcairomm-%{apiver}.so.%{so_version}{,.*}


%files devel
%doc ChangeLog
%{_includedir}/%{name}-%{apiver}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_libdir}/%{name}-%{apiver}
%{_includedir}/cairomm-%{apiver}/
%{_libdir}/libcairomm-%{apiver}.so
%{_libdir}/pkgconfig/cairomm-%{apiver}.pc
%{_libdir}/pkgconfig/cairomm-*-%{apiver}.pc
%{_libdir}/cairomm-%{apiver}/


#%files doc
#%license COPYING
# Note: JavaScript has been removed from HTML reference manual, degrading the
# browser experience. It is still needed for Devhelp support.
#%doc %{_docdir}/cairomm-%{apiver}/
#%doc %{_datadir}/devhelp/

%files doc
%doc %{_docdir}/%{name}-%{apiver}/
%doc %{_datadir}/devhelp/

%changelog
* Thu Nov 2024 Akarsh Chaudhary <[email protected]>- 1.14.5-1
- upgrade to version 1.14.5

* Wed Oct 26 2022 Muhammad Falak <[email protected]> - 1.12.0-15
- License verified

Expand Down
41 changes: 41 additions & 0 deletions SPECS-EXTENDED/cairomm/gpg_key.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQGNBF9XkQUBDADmaPl0W4LoNnFwUy3aQQgQn2HyuoGO292p/UHdSjgQ+uiVOET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smjKHdTZbNx9NBsDoAIOQiCvg1VqwUBSeqBYPMJOKzvZGRN+CZnoiN+NDoAS1qI
zLEl8udwtXc30yzKbX5Izx3PqaHx7eWJeY8VuF+oynb/hQUdb9VMYFAfP3//Ow2A
8v/f6lrl1xTqdRtpn719bcIDXYCZNPEi6kHk0vU/sH4=
=nxmX
-----END PGP PUBLIC KEY BLOCK-----
4 changes: 2 additions & 2 deletions cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1397,8 +1397,8 @@
"type": "other",
"other": {
"name": "cairomm",
"version": "1.12.0",
"downloadUrl": "http://www.cairographics.org/releases/cairomm-1.12.0.tar.gz"
"version": "1.14.5",
"downloadUrl": "http://www.cairographics.org/releases/cairomm-1.14.5.tar.gz"
}
}
},
Expand Down
Loading