diff --git a/.files b/.files
index 102e1f5..daab813 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index f527f37..6926aba 100644
--- a/.rev
+++ b/.rev
@@ -23,4 +23,12 @@
701104
+
+ 2cef274772fe3c99a9659217ef1a5211
+ 2.004
+
+ dimstar_suse
+
+ 895413
+
diff --git a/SourceHanSans-VF.zip b/SourceHanSans-VF.zip
new file mode 120000
index 0000000..718a84e
--- /dev/null
+++ b/SourceHanSans-VF.zip
@@ -0,0 +1 @@
+/ipfs/bafybeiggfftccvvk4z6dctasj6f3qzftro5ldgums3f4o5bz7xi6enrwki
\ No newline at end of file
diff --git a/SourceHanSansCN.zip b/SourceHanSansCN.zip
index ee0cedd..734d0fc 120000
--- a/SourceHanSansCN.zip
+++ b/SourceHanSansCN.zip
@@ -1 +1 @@
-/ipfs/bafybeieonsq3psm7bpvvpnakrbzznzj54v23yuhypy4dohvtx3niviysza
\ No newline at end of file
+/ipfs/bafybeid7qrtlt5vdmnpqvtbnlt7m7qcsmfp2buc5nnx4z2v5we4c3w26la
\ No newline at end of file
diff --git a/SourceHanSansHK.zip b/SourceHanSansHK.zip
index b55d24a..6d1ebef 120000
--- a/SourceHanSansHK.zip
+++ b/SourceHanSansHK.zip
@@ -1 +1 @@
-/ipfs/bafybeifssxi2hki476vtcuiopgy3cp7tf5c2mgzl5isfeh6p2cbyefwvf4
\ No newline at end of file
+/ipfs/bafybeibnmcmhqbryxjvfryhotzn7ntm4c7brrjngdzywjoom3naxnkmhwq
\ No newline at end of file
diff --git a/SourceHanSansJP.zip b/SourceHanSansJP.zip
index 8a95fea..990d902 120000
--- a/SourceHanSansJP.zip
+++ b/SourceHanSansJP.zip
@@ -1 +1 @@
-/ipfs/bafybeiajjvsiygolerzd3ces7qsjsjhi2f2535qjg4h3t2pabepstmjer4
\ No newline at end of file
+/ipfs/bafybeicna6rleotczfruc2z327ve74m7evakyms5m2nm4dordnqqyk6jeq
\ No newline at end of file
diff --git a/SourceHanSansKR.zip b/SourceHanSansKR.zip
index 2e6a76f..e67fba2 120000
--- a/SourceHanSansKR.zip
+++ b/SourceHanSansKR.zip
@@ -1 +1 @@
-/ipfs/bafybeieotfh7kprkrla5lew6p4lxmrwhehctfwkbxuhza3tgauxcthd5vy
\ No newline at end of file
+/ipfs/bafybeids3hai4uul43rwz2kijrjlqorqbobtsdcliq6n4r4lnkufedazwq
\ No newline at end of file
diff --git a/SourceHanSansTW.zip b/SourceHanSansTW.zip
index 8d7d044..91d7ee9 120000
--- a/SourceHanSansTW.zip
+++ b/SourceHanSansTW.zip
@@ -1 +1 @@
-/ipfs/bafybeicc7lrjhdp7f5rx6qaielsphax4sev6btigfihn26boyjopj6foge
\ No newline at end of file
+/ipfs/bafybeigchiscdtq3svzs66jevkwufi6jav2mmz42a253uoy6rnrz7u3jeu
\ No newline at end of file
diff --git a/adobe-sourcehansans-fonts.changes b/adobe-sourcehansans-fonts.changes
index 4af7cf2..e3c33d4 100644
--- a/adobe-sourcehansans-fonts.changes
+++ b/adobe-sourcehansans-fonts.changes
@@ -1,4 +1,15 @@
-------------------------------------------------------------------
+Tue May 25 19:08:28 CEST 2021 - tiwai@suse.de
+
+- Fix source URLs to be properly downloadable
+
+-------------------------------------------------------------------
+Mon May 17 10:58:53 UTC 2021 - Dingzhong Chen
+
+- Update to version 2.004
+- Add variable fonts
+
+-------------------------------------------------------------------
Mon Apr 29 17:30:43 UTC 2019 - Yunhe Guo
- Update to version 2.001
diff --git a/adobe-sourcehansans-fonts.spec b/adobe-sourcehansans-fonts.spec
index baadc14..deed2ac 100644
--- a/adobe-sourcehansans-fonts.spec
+++ b/adobe-sourcehansans-fonts.spec
@@ -1,7 +1,7 @@
#
# spec file for package adobe-sourcehansans-fonts
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,17 +19,18 @@
%define shared_description Source Han Sans is an open source Pan-CJK typeface whose OpenType/CFF fonts and CID-based sources are covered under the terms of the SIL Open Font License.
Name: adobe-sourcehansans-fonts
-Version: 2.001
+Version: 2.004
Release: 0
Summary: Source Han Sans
License: OFL-1.1
Group: System/X11/Fonts
URL: https://github.com/adobe-fonts/source-han-sans
-Source0: https://raw.githubusercontent.com/adobe-fonts/source-han-sans/%{version}R/SubsetOTF/SourceHanSansCN.zip
-Source1: https://raw.githubusercontent.com/adobe-fonts/source-han-sans/%{version}R/SubsetOTF/SourceHanSansHK.zip
-Source2: https://raw.githubusercontent.com/adobe-fonts/source-han-sans/%{version}R/SubsetOTF/SourceHanSansJP.zip
-Source3: https://raw.githubusercontent.com/adobe-fonts/source-han-sans/%{version}R/SubsetOTF/SourceHanSansKR.zip
-Source4: https://raw.githubusercontent.com/adobe-fonts/source-han-sans/%{version}R/SubsetOTF/SourceHanSansTW.zip
+Source0: https://github.com/adobe-fonts/source-han-sans/releases/download/%{version}R/SourceHanSansCN.zip
+Source1: https://github.com/adobe-fonts/source-han-sans/releases/download/%{version}R/SourceHanSansHK.zip
+Source2: https://github.com/adobe-fonts/source-han-sans/releases/download/%{version}R/SourceHanSansJP.zip
+Source3: https://github.com/adobe-fonts/source-han-sans/releases/download/%{version}R/SourceHanSansKR.zip
+Source4: https://github.com/adobe-fonts/source-han-sans/releases/download/%{version}R/SourceHanSansTW.zip
+Source5: https://github.com/adobe-fonts/source-han-sans/releases/download/%{version}R/SourceHanSans-VF.zip
BuildRequires: fontpackages-devel
BuildRequires: unzip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -44,12 +45,14 @@ unzip -o %{S:1}
unzip -o %{S:2}
unzip -o %{S:3}
unzip -o %{S:4}
+unzip -o %{S:5}
%build
%install
mkdir -p %{buildroot}%{_ttfontsdir}
-mv */*.otf %{buildroot}%{_ttfontsdir}
+mv Variable/OTF/Subset/*.otf %{buildroot}%{_ttfontsdir}
+mv SubsetOTF/*/*.otf %{buildroot}%{_ttfontsdir}
# Chinese China package
%package -n adobe-sourcehansans-cn-fonts
@@ -63,7 +66,7 @@ Provides: locale(zh_CN)
%reconfigure_fonts_scriptlets -n adobe-sourcehansans-cn-fonts
%files -n adobe-sourcehansans-cn-fonts
%defattr(0644,root,root,755)
-%license SourceHanSansCN/LICENSE.txt
+%license LICENSE.txt
%dir %{_ttfontsdir}
%{_ttfontsdir}/SourceHanSansCN-*.otf
@@ -79,7 +82,7 @@ Provides: locale(zh_HK)
%reconfigure_fonts_scriptlets -n adobe-sourcehansans-hk-fonts
%files -n adobe-sourcehansans-hk-fonts
%defattr(0644,root,root,755)
-%license SourceHanSansHK/LICENSE.txt
+%license LICENSE.txt
%dir %{_ttfontsdir}
%{_ttfontsdir}/SourceHanSansHK-*.otf
@@ -95,7 +98,7 @@ Provides: locale(jp)
%reconfigure_fonts_scriptlets -n adobe-sourcehansans-jp-fonts
%files -n adobe-sourcehansans-jp-fonts
%defattr(0644,root,root,755)
-%license SourceHanSansJP/LICENSE.txt
+%license LICENSE.txt
%dir %{_ttfontsdir}
%{_ttfontsdir}/SourceHanSansJP-*.otf
@@ -111,7 +114,7 @@ Provides: locale(kr)
%reconfigure_fonts_scriptlets -n adobe-sourcehansans-kr-fonts
%files -n adobe-sourcehansans-kr-fonts
%defattr(0644,root,root,755)
-%license SourceHanSansKR/LICENSE.txt
+%license LICENSE.txt
%dir %{_ttfontsdir}
%{_ttfontsdir}/SourceHanSansKR-*.otf
@@ -130,7 +133,7 @@ Obsoletes: adobe-sourcehansans-fonts < %version-%release
%reconfigure_fonts_scriptlets -n adobe-sourcehansans-tw-fonts
%files -n adobe-sourcehansans-tw-fonts
%defattr(0644,root,root,755)
-%license SourceHanSansTW/LICENSE.txt
+%license LICENSE.txt
%dir %{_ttfontsdir}
%{_ttfontsdir}/SourceHanSansTW-*.otf