Blame SPECS/gnome-tour.spec

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