Deduce source URL from version
This avoids missing updates to the URL when updating to a new version. Synced from the Fedora spec.
This commit is contained in:
parent
ca0bd20114
commit
e88430bfcc
@ -9,6 +9,7 @@
|
||||
%global libei_version 1.0.901
|
||||
%global mutter_api_version 15
|
||||
|
||||
%global major_version %%(echo %{version} | cut -d '.' -f1 | cut -d '~' -f 1)
|
||||
%global tarball_version %%(echo %{version} | tr '~' '.')
|
||||
|
||||
Name: mutter
|
||||
@ -18,7 +19,7 @@ Summary: Window and compositing manager based on Clutter
|
||||
|
||||
License: GPLv2+
|
||||
URL: http://www.gnome.org
|
||||
Source0: http://download.gnome.org/sources/%{name}/47/%{name}-%{tarball_version}.tar.xz
|
||||
Source0: http://download.gnome.org/sources/%{name}/%{major_version}/%{name}-%{tarball_version}.tar.xz
|
||||
|
||||
# Work-around for OpenJDK's compliance test
|
||||
Patch: 0001-window-actor-Special-case-shaped-Java-windows.patch
|
||||
|
||||
Loading…
Reference in New Issue
Block a user