public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Milan Crha <mcrha@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/papers] rawhide: Switch to gnome-srpm-macros macros
Date: Tue, 30 Jun 2026 15:27:45 GMT	[thread overview]
Message-ID: <178283326503.1.9525259491060350380.rpms-papers-5d66f551d2ea@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/papers
            Branch : rawhide
            Commit : 5d66f551d2ea41d3f8bd3a8c7c5699db3b5e2626
            Author : Milan Crha <mcrha@redhat.com>
            Date   : 2026-06-30T17:03:57+02:00
            Stats  : +9/-13 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/papers/c/5d66f551d2ea41d3f8bd3a8c7c5699db3b5e2626?branch=rawhide

            Log:
            Switch to gnome-srpm-macros macros

[skip changelog]

---
diff --git a/papers.spec b/papers.spec
index b582994..00ce728 100644
--- a/papers.spec
+++ b/papers.spec
@@ -6,9 +6,6 @@
 # Filter out soname provides for plugins
 %global __provides_exclude_from ^(%{_libdir}/papers/.*\\.so|%{_libdir}/nautilus/extensions-4/.*\\.so)$
 
-%global tarball_version %%(echo %%{version} | tr '~' '.')
-%global major_version %%(echo %%{tarball_version} | cut -d "." -f 1)
-
 Name:           papers
 Version:        49.6
 Release:        %autorelease
@@ -55,14 +52,16 @@ License:        %{shrink:
     (Unlicense OR MIT)
 }
 URL:            https://gitlab.gnome.org/GNOME/Incubator/papers
-Source:         https://download.gnome.org/sources/papers/%{major_version}/papers-%{tarball_version}.tar.xz
+Source:         https://download.gnome.org/sources/%{name}/%{gnome_major_version}/%{name}-%{gnome_tarball_version}.tar.xz
 # To generate vendored cargo sources:
-#   tar xf papers-%%{tarball_version}.tar.xz
-#   pushd papers-%%{tarball_version}
+#   tar xf papers-%%{gnome_tarball_version}.tar.xz
+#   pushd papers-%%{gnome_tarball_version}
 #   cargo vendor --versioned-dirs
-#   tar Jcvf ../papers-%%{tarball_version}-vendor.tar.xz vendor/
+#   tar Jcvf ../papers-%%{gnome_tarball_version}-vendor.tar.xz vendor/
 #   popd
-Source1:        papers-%{tarball_version}-vendor.tar.xz
+Source1:        papers-%{gnome_tarball_version}-vendor.tar.xz
+
+%gnome_check_version
 
 # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
 ExcludeArch:    %{ix86}
@@ -162,14 +161,11 @@ This package brings the Papers thumbnailer independently from Papers.
 
 
 %prep
-# check for human errors
-if [ `echo "%{version}" | grep -cE "\.alpha|\.beta|\.rc"` = "1" ]; then echo "Error: Use tilde in Version field in front of alpha/beta/rc; checked '%{version}'" 1>&2; exit 1; fi
-
 %if %{without bundled_rust_deps}
-%autosetup -p1 -n papers-%{tarball_version}
+%autosetup -p1 -n %{name}-%{gnome_tarball_version}
 %cargo_prep
 %else
-%autosetup -p1 -n papers-%{tarball_version} -a1
+%autosetup -p1 -n %{name}-%{gnome_tarball_version} -a1
 %cargo_prep -v vendor
 %endif
 

                 reply	other threads:[~2026-06-30 15:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178283326503.1.9525259491060350380.rpms-papers-5d66f551d2ea@fedoraproject.org \
    --to=mcrha@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox