Update inkscape.spec Source0 URL to canonical home

The project sourceforge no longer contains any files, releases are made in their gitlab. The tagging is a bit unusual there, requiring manipulation of the Name/Version variables with `tr` to generate the proper tag value to embed in the URL.
This commit is contained in:
Frank Dana (FeRD) 2018-09-14 22:20:58 +00:00
parent 351a91ee69
commit a3c9dbeaa6

View File

@ -3,9 +3,13 @@ Version: 0.92.3
Release: 7%{?dist}
Summary: Vector-based drawing program using SVG
# Inkscape tags their releases with underscores
%global repotag %(echo %{name}_%{version} |
tr "." "_" | tr "[:lower:]" "[:upper:]")
License: GPLv2+ and CC-BY
URL: https://inkscape.org/
Source0: http://downloads.sourceforge.net/inkscape/%{name}-%{version}.tar.bz2
Source0: https://gitlab.com/inkscape/-/archive/%{repotag}/%{name}-%{repotag}.tar.bz2
# AppData file. Upstream has merged a patch adding an appdata file
# after into the 0.92 release branch.
Source1: %{name}.appdata.xml
@ -1014,4 +1018,4 @@ pathfix.py -pni "%{__python2} %{py2_shbang_opts}" $RPM_BUILD_ROOT%{_datadir}/ink
- add inkview
* Sat Dec 20 2003 P Linnell <scribusdocs at atlantictechsolutions.com>
- First crack at Fedora/RH spec file
- nuke gnome print - it won't work (bug is filed already)
- nuke gnome print - it won't work (bug is filed already)