Blame SPECS/gnome-tour.spec

1a8b76
%global debug_package %{nil}
1a8b76
1a8b76
# Use bundled deps as we don't ship the exact right versions for all the
1a8b76
# required rust libraries
1a8b76
%global bundled_rust_deps 1
1a8b76
1a8b76
%global tarball_version %%(echo %{version} | tr '~' '.')
1a8b76
1a8b76
Name:           gnome-tour
1a8b76
Version:        40.0
1a8b76
Release:        4%{?dist}
1a8b76
Summary:        GNOME Tour and Greeter
1a8b76
1a8b76
# * gnome-tour source code is GPLv3+
1a8b76
# * welcome-fedora.svg is CC-BY-SA
1a8b76
# * bundled rust crates all include either MIT or GPLv3+ as one of the possible
1a8b76
#   licenses, which when compiled into gnome-tour binary together with GPLv3+
1a8b76
#   gnome-tour source code results in effective GPLv3+ for the resulting binary
1a8b76
License:        GPLv3+ and CC-BY-SA
1a8b76
URL:            https://gitlab.gnome.org/GNOME/gnome-tour
1a8b76
Source0:        https://download.gnome.org/sources/gnome-tour/40/gnome-tour-%{tarball_version}.tar.xz
1a8b76
# https://pagure.io/fedora-workstation/issue/175
1a8b76
Source1:        welcome-fedora.svg
1a8b76
1a8b76
BuildRequires:  meson
1a8b76
BuildRequires:  pkgconfig(glib-2.0)
1a8b76
BuildRequires:  pkgconfig(gio-2.0)
1a8b76
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
1a8b76
BuildRequires:  pkgconfig(gtk+-3.0)
1a8b76
BuildRequires:  pkgconfig(gstreamer-1.0)
1a8b76
BuildRequires:  pkgconfig(gstreamer-video-1.0)
1a8b76
BuildRequires:  pkgconfig(gstreamer-player-1.0)
1a8b76
BuildRequires:  pkgconfig(libhandy-1)
1a8b76
BuildRequires:  /usr/bin/appstream-util
1a8b76
BuildRequires:  /usr/bin/desktop-file-validate
1a8b76
1a8b76
%if 0%{?bundled_rust_deps}
1a8b76
BuildRequires:  cargo
1a8b76
BuildRequires:  rust
1a8b76
%else
1a8b76
BuildRequires:  rust-packaging
1a8b76
%endif
1a8b76
1a8b76
%if 0%{?bundled_rust_deps}
1a8b76
# bundled crates list updated for gnome-tour 3.37.91
1a8b76
Provides: bundled(crate(aho-corasick/default)) = 0.7.13
1a8b76
Provides: bundled(crate(anyhow/default)) = 1.0.32
1a8b76
Provides: bundled(crate(atk/default)) = 0.9.0
1a8b76
Provides: bundled(crate(atk-sys/default)) = 0.10.0
1a8b76
Provides: bundled(crate(atty/default)) = 0.2.14
1a8b76
Provides: bundled(crate(autocfg/default)) = 1.0.0
1a8b76
Provides: bundled(crate(bitflags/default)) = 1.2.1
1a8b76
Provides: bundled(crate(cairo-rs/default)) = 0.9.1
1a8b76
Provides: bundled(crate(cairo-sys-rs/default)) = 0.10.0
1a8b76
Provides: bundled(crate(cc/default)) = 1.0.58
1a8b76
Provides: bundled(crate(cfg-if/default)) = 0.1.10
1a8b76
Provides: bundled(crate(either/default)) = 1.6.0
1a8b76
Provides: bundled(crate(env_logger/default)) = 0.7.1
1a8b76
Provides: bundled(crate(futures/default)) = 0.3.5
1a8b76
Provides: bundled(crate(futures-channel/default)) = 0.3.5
1a8b76
Provides: bundled(crate(futures-core/default)) = 0.3.5
1a8b76
Provides: bundled(crate(futures-executor/default)) = 0.3.5
1a8b76
Provides: bundled(crate(futures-io/default)) = 0.3.5
1a8b76
Provides: bundled(crate(futures-macro/default)) = 0.3.5
1a8b76
Provides: bundled(crate(futures-sink/default)) = 0.3.5
1a8b76
Provides: bundled(crate(futures-task/default)) = 0.3.5
1a8b76
Provides: bundled(crate(futures-util/default)) = 0.3.5
1a8b76
Provides: bundled(crate(gdk/default)) = 0.13.1
1a8b76
Provides: bundled(crate(gdk-pixbuf/default)) = 0.9.0
1a8b76
Provides: bundled(crate(gdk-pixbuf-sys/default)) = 0.10.0
1a8b76
Provides: bundled(crate(gdk-sys/default)) = 0.10.0
1a8b76
Provides: bundled(crate(gettext-rs/default)) = 0.4.4
1a8b76
Provides: bundled(crate(gettext-sys/default)) = 0.19.9
1a8b76
Provides: bundled(crate(gio/default)) = 0.9.0
1a8b76
Provides: bundled(crate(gio-sys/default)) = 0.10.0
1a8b76
Provides: bundled(crate(glib/default)) = 0.10.1
1a8b76
Provides: bundled(crate(glib-macros/default)) = 0.10.1
1a8b76
Provides: bundled(crate(glib-sys/default)) = 0.10.0
1a8b76
Provides: bundled(crate(gobject-sys/default)) = 0.10.0
1a8b76
Provides: bundled(crate(gstreamer/default)) = 0.16.2
1a8b76
Provides: bundled(crate(gstreamer-base/default)) = 0.16.0
1a8b76
Provides: bundled(crate(gstreamer-base-sys/default)) = 0.9.0
1a8b76
Provides: bundled(crate(gstreamer-player/default)) = 0.16.0
1a8b76
Provides: bundled(crate(gstreamer-player-sys/default)) = 0.9.0
1a8b76
Provides: bundled(crate(gstreamer-sys/default)) = 0.9.0
1a8b76
Provides: bundled(crate(gstreamer-video/default)) = 0.16.0
1a8b76
Provides: bundled(crate(gstreamer-video-sys/default)) = 0.9.0
1a8b76
Provides: bundled(crate(gtk/default)) = 0.9.1
1a8b76
Provides: bundled(crate(gtk-sys/default)) = 0.10.0
1a8b76
Provides: bundled(crate(heck/default)) = 0.3.1
1a8b76
Provides: bundled(crate(humantime/default)) = 1.3.0
1a8b76
Provides: bundled(crate(itertools/default)) = 0.9.0
1a8b76
Provides: bundled(crate(lazy_static/default)) = 1.4.0
1a8b76
Provides: bundled(crate(libc/default)) = 0.2.74
1a8b76
Provides: bundled(crate(libhandy/default)) = 1.0.0~alpha
1a8b76
Provides: bundled(crate(libhandy-sys/default)) = 1.0.0~alpha
1a8b76
Provides: bundled(crate(locale_config/default)) = 0.2.3
1a8b76
Provides: bundled(crate(log/default)) = 0.4.11
1a8b76
Provides: bundled(crate(memchr/default)) = 2.3.3
1a8b76
Provides: bundled(crate(muldiv/default)) = 0.2.1
1a8b76
Provides: bundled(crate(num-integer/default)) = 0.1.43
1a8b76
Provides: bundled(crate(num-rational/default)) = 0.3.0
1a8b76
Provides: bundled(crate(num-traits/default)) = 0.2.12
1a8b76
Provides: bundled(crate(once_cell/default)) = 1.4.1
1a8b76
Provides: bundled(crate(pango/default)) = 0.9.1
1a8b76
Provides: bundled(crate(pango-sys/default)) = 0.10.0
1a8b76
Provides: bundled(crate(paste/default)) = 0.1.18
1a8b76
Provides: bundled(crate(paste-impl/default)) = 0.1.18
1a8b76
Provides: bundled(crate(pin-project/default)) = 0.4.23
1a8b76
Provides: bundled(crate(pin-project-internal/default)) = 0.4.23
1a8b76
Provides: bundled(crate(pin-utils/default)) = 0.1.0
1a8b76
Provides: bundled(crate(pkg-config/default)) = 0.3.18
1a8b76
Provides: bundled(crate(pretty_env_logger/default)) = 0.4.0
1a8b76
Provides: bundled(crate(pretty-hex/default)) = 0.1.1
1a8b76
Provides: bundled(crate(proc-macro2/default)) = 1.0.19
1a8b76
Provides: bundled(crate(proc-macro-crate/default)) = 0.1.5
1a8b76
Provides: bundled(crate(proc-macro-error/default)) = 1.0.4
1a8b76
Provides: bundled(crate(proc-macro-error-attr/default)) = 1.0.4
1a8b76
Provides: bundled(crate(proc-macro-hack/default)) = 0.5.18
1a8b76
Provides: bundled(crate(proc-macro-nested/default)) = 0.1.6
1a8b76
Provides: bundled(crate(quick-error/default)) = 1.2.3
1a8b76
Provides: bundled(crate(quote/default)) = 1.0.7
1a8b76
Provides: bundled(crate(regex/default)) = 1.3.9
1a8b76
Provides: bundled(crate(regex-syntax/default)) = 0.6.18
1a8b76
Provides: bundled(crate(serde/default)) = 1.0.115
1a8b76
Provides: bundled(crate(slab/default)) = 0.4.2
1a8b76
Provides: bundled(crate(strum/default)) = 0.18.0
1a8b76
Provides: bundled(crate(strum_macros/default)) = 0.18.0
1a8b76
Provides: bundled(crate(syn/default)) = 1.0.38
1a8b76
Provides: bundled(crate(system-deps/default)) = 1.3.2
1a8b76
Provides: bundled(crate(termcolor/default)) = 1.1.0
1a8b76
Provides: bundled(crate(thiserror/default)) = 1.0.20
1a8b76
Provides: bundled(crate(thiserror-impl/default)) = 1.0.20
1a8b76
Provides: bundled(crate(thread_local/default)) = 1.0.1
1a8b76
Provides: bundled(crate(toml/default)) = 0.5.6
1a8b76
Provides: bundled(crate(unicode-segmentation/default)) = 1.6.0
1a8b76
Provides: bundled(crate(unicode-xid/default)) = 0.2.1
1a8b76
Provides: bundled(crate(version_check/default)) = 0.9.2
1a8b76
Provides: bundled(crate(version-compare/default)) = 0.0.10
1a8b76
%endif
1a8b76
1a8b76
Requires: gstreamer1-plugins-good-gtk%{?_isa}
1a8b76
1a8b76
# Removed in F34
1a8b76
Obsoletes: gnome-getting-started-docs < 3.38.1-2
1a8b76
Obsoletes: gnome-getting-started-docs-cs < 3.38.1-2
1a8b76
Obsoletes: gnome-getting-started-docs-de < 3.38.1-2
1a8b76
Obsoletes: gnome-getting-started-docs-es < 3.38.1-2
1a8b76
Obsoletes: gnome-getting-started-docs-fr < 3.38.1-2
1a8b76
Obsoletes: gnome-getting-started-docs-gl < 3.38.1-2
1a8b76
Obsoletes: gnome-getting-started-docs-hu < 3.38.1-2
1a8b76
Obsoletes: gnome-getting-started-docs-it < 3.38.1-2
1a8b76
Obsoletes: gnome-getting-started-docs-pl < 3.38.1-2
1a8b76
Obsoletes: gnome-getting-started-docs-pt_BR < 3.38.1-2
1a8b76
Obsoletes: gnome-getting-started-docs-ru < 3.38.1-2
1a8b76
1a8b76
%description
1a8b76
A guided tour and greeter for GNOME.
1a8b76
1a8b76
1a8b76
%prep
1a8b76
%autosetup -p1 -n %{name}-%{tarball_version}
1a8b76
1a8b76
# Install Fedora branding
1a8b76
cp -a %{SOURCE1} data/resources/assets/welcome.svg
1a8b76
1a8b76
%if ! 0%{?bundled_rust_deps}
1a8b76
sed -i -e '/\(build_by_default\|install\)/s/true/false/' src/meson.build
1a8b76
%cargo_prep
1a8b76
%endif
1a8b76
1a8b76
1a8b76
%if ! 0%{?bundled_rust_deps}
1a8b76
%generate_buildrequires
1a8b76
%cargo_generate_buildrequires
1a8b76
%endif
1a8b76
1a8b76
1a8b76
%build
1a8b76
%meson
1a8b76
%meson_build
1a8b76
1a8b76
%if ! 0%{?bundled_rust_deps}
1a8b76
%cargo_build
1a8b76
%endif
1a8b76
1a8b76
1a8b76
%install
1a8b76
%meson_install
1a8b76
1a8b76
%if ! 0%{?bundled_rust_deps}
1a8b76
%cargo_install
1a8b76
%endif
1a8b76
1a8b76
%find_lang gnome-tour
1a8b76
1a8b76
1a8b76
%check
1a8b76
appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/metainfo/org.gnome.Tour.metainfo.xml
1a8b76
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Tour.desktop
1a8b76
1a8b76
1a8b76
%files -f gnome-tour.lang
1a8b76
%license LICENSE.md
1a8b76
%doc NEWS README.md
1a8b76
%{_bindir}/gnome-tour
1a8b76
%{_datadir}/applications/org.gnome.Tour.desktop
1a8b76
%{_datadir}/icons/hicolor/scalable/apps/org.gnome.Tour.svg
1a8b76
%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.Tour-symbolic.svg
1a8b76
%{_datadir}/metainfo/org.gnome.Tour.metainfo.xml
1a8b76
1a8b76
1a8b76
%changelog
1a8b76
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 40.0-4
1a8b76
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
1a8b76
  Related: rhbz#1991688
1a8b76
1a8b76
* Tue Apr 27 2021 Kalev Lember <klember@redhat.com> - 40.0-3
1a8b76
- Add missing obsoletes for gnome-getting-started-docs-hu (#1954117)
1a8b76
1a8b76
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 40.0-2
1a8b76
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
1a8b76
1a8b76
* Tue Mar 23 2021 Kalev Lember <klember@redhat.com> - 40.0-1
1a8b76
- Update to 40.0
1a8b76
1a8b76
* Wed Mar 17 2021 Kalev Lember <klember@redhat.com> - 40~beta-5
1a8b76
- Update the fedora logo in welcome image (#1940041)
1a8b76
1a8b76
* Tue Feb 23 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 40~beta-4
1a8b76
- Obsolete all language-specific gnome-getting-started-docs subpackages
1a8b76
1a8b76
* Fri Feb 19 2021 Kalev Lember <klember@redhat.com> - 40~beta-3
1a8b76
- Obsolete gnome-getting-started-docs
1a8b76
1a8b76
* Wed Feb 17 2021 Kalev Lember <klember@redhat.com> - 40~beta-2
1a8b76
- New welcome image for Fedora branding (thanks, jimmac!)
1a8b76
1a8b76
* Wed Feb 17 2021 Kalev Lember <klember@redhat.com> - 40~beta-1
1a8b76
- Update to 40.beta
1a8b76
1a8b76
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.38.0-3
1a8b76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1a8b76
1a8b76
* Tue Oct 20 2020 Kalev Lember <klember@redhat.com> - 3.38.0-2
1a8b76
- Add missing gstreamer1-plugins-good-gtk dep (#1889657)
1a8b76
1a8b76
* Wed Sep 16 2020 Kalev Lember <klember@redhat.com> - 3.38.0-1
1a8b76
- Update to 3.38.0
1a8b76
1a8b76
* Mon Sep 14 2020 Kalev Lember <klember@redhat.com> - 3.37.92-2
1a8b76
- Use a lower res video to improve the layout (thanks jimmac!)
1a8b76
1a8b76
* Tue Sep 08 2020 Kalev Lember <klember@redhat.com> - 3.37.92-1
1a8b76
- Update to 3.37.92
1a8b76
1a8b76
* Thu Aug 27 2020 Kalev Lember <klember@redhat.com> - 3.37.91-2
1a8b76
- Add provides for bundled rust crates (#1873108)
1a8b76
- Clarify licensing for bundled rust crates (#1873108)
1a8b76
1a8b76
* Thu Aug 27 2020 Kalev Lember <klember@redhat.com> - 3.37.91-1
1a8b76
- Initial Fedora packaging