Hello community,

here is the log from the commit of package adobe-sourcehanserif-fonts for 
openSUSE:Factory checked in at 2019-06-19 20:56:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/adobe-sourcehanserif-fonts (Old)
 and      /work/SRC/openSUSE:Factory/.adobe-sourcehanserif-fonts.new.4811 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "adobe-sourcehanserif-fonts"

Wed Jun 19 20:56:19 2019 rev:2 rq:700992 version:1.001

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/adobe-sourcehanserif-fonts/adobe-sourcehanserif-fonts.changes
    2018-03-09 10:37:26.874445507 +0100
+++ 
/work/SRC/openSUSE:Factory/.adobe-sourcehanserif-fonts.new.4811/adobe-sourcehanserif-fonts.changes
  2019-06-19 20:56:34.761888064 +0200
@@ -1,0 +2,5 @@
+Mon Apr 29 17:51:04 UTC 2019 - Yunhe Guo <[email protected]>
+
+- Add all region-specific fonts
+
+-------------------------------------------------------------------

New:
----
  SourceHanSerifCN.zip
  SourceHanSerifJP.zip
  SourceHanSerifKR.zip

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ adobe-sourcehanserif-fonts.spec ++++++
--- /var/tmp/diff_new_pack.rMps2O/_old  2019-06-19 20:56:37.849890742 +0200
+++ /var/tmp/diff_new_pack.rMps2O/_new  2019-06-19 20:56:37.857890749 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package adobe-sourcehanserif-fonts
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,47 +12,108 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
+%define shared_description Source Han Serif 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, Version 1.1.
+
 Name:           adobe-sourcehanserif-fonts
 Version:        1.001
 Release:        0
-Summary:        A serif-style OpenType/CFF Pan-CJK font family
+Summary:        Source Han Serif fonts
 License:        OFL-1.1
 Group:          System/X11/Fonts
 URL:            https://github.com/adobe-fonts/source-han-serif
-
-# Direct link to HEAD, always changes
-#Source:         
https://github.com/adobe-fonts/source-han-serif/raw/release/SubsetOTF/SourceHanSerifTW.zip
-Source:         SourceHanSerifTW.zip
-BuildRoot:      %_tmppath/%name-%version-build
-BuildArch:      noarch
-BuildRequires:  fontconfig
+Source0:        
https://raw.githubusercontent.com/adobe-fonts/source-han-serif/%{version}R/SubsetOTF/SourceHanSerifCN.zip
+Source1:        
https://raw.githubusercontent.com/adobe-fonts/source-han-serif/%{version}R/SubsetOTF/SourceHanSerifJP.zip
+Source2:        
https://raw.githubusercontent.com/adobe-fonts/source-han-serif/%{version}R/SubsetOTF/SourceHanSerifKR.zip
+Source3:        
https://raw.githubusercontent.com/adobe-fonts/source-han-serif/%{version}R/SubsetOTF/SourceHanSerifTW.zip
 BuildRequires:  fontpackages-devel
 BuildRequires:  unzip
-Provides:       scalable-font-zh_TW
-Provides:       locale(zh_TW)
-%reconfigure_fonts_prereq
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildArch:      noarch
 
 %description
-A set of serif-style Pan-CJK fonts designed to complement Source Sans Pro.
+%{shared_description}
 
 %prep
-%setup -q -n SourceHanSerifTW
+unzip -o %{S:0}
+unzip -o %{S:1}
+unzip -o %{S:2}
+unzip -o %{S:3}
 
 %build
 
 %install
-install -d "%buildroot/%_ttfontsdir"
-install -m 644 *.otf "%buildroot/%_ttfontsdir"
+mkdir -p %{buildroot}%{_ttfontsdir}
+mv */*.otf %{buildroot}%{_ttfontsdir}
+
+# Chinese China package
+%package -n adobe-sourcehanserif-cn-fonts
+Summary:        Source Han Serif CN
+Group:          System/X11/Fonts
+Provides:       scalable-font-zh_CN
+Provides:       locale(zh_CN)
 
-%reconfigure_fonts_scriptlets
+%description -n adobe-sourcehanserif-cn-fonts
+%{shared_description}
+%reconfigure_fonts_scriptlets -n adobe-sourcehanserif-cn-fonts
+%files -n adobe-sourcehanserif-cn-fonts
+%defattr(0644,root,root,755)
+%license SourceHanSerifCN/LICENSE.txt
+%dir %{_ttfontsdir}
+%{_ttfontsdir}/SourceHanSerifCN-*.otf
+
+# Japanese package
+%package -n adobe-sourcehanserif-jp-fonts
+Summary:        Source Han Serif JP
+Group:          System/X11/Fonts
+Provides:       scalable-font-jp
+Provides:       locale(jp)
+
+%description -n adobe-sourcehanserif-jp-fonts
+%{shared_description}
+%reconfigure_fonts_scriptlets -n adobe-sourcehanserif-jp-fonts
+%files -n adobe-sourcehanserif-jp-fonts
+%defattr(0644,root,root,755)
+%license SourceHanSerifJP/LICENSE.txt
+%dir %{_ttfontsdir}
+%{_ttfontsdir}/SourceHanSerifJP-*.otf
+
+# Korean package
+%package -n adobe-sourcehanserif-kr-fonts
+Summary:        Source Han Serif KR
+Group:          System/X11/Fonts
+Provides:       scalable-font-kr
+Provides:       locale(kr)
+
+%description -n adobe-sourcehanserif-kr-fonts
+%{shared_description}
+%reconfigure_fonts_scriptlets -n adobe-sourcehanserif-kr-fonts
+%files -n adobe-sourcehanserif-kr-fonts
+%defattr(0644,root,root,755)
+%license SourceHanSerifKR/LICENSE.txt
+%dir %{_ttfontsdir}
+%{_ttfontsdir}/SourceHanSerifKR-*.otf
+
+# Chinese Taiwan package
+%package -n adobe-sourcehanserif-tw-fonts
+Summary:        Source Han Serif TW
+# Replace the old single package that only provides Taiwan fonts
+Group:          System/X11/Fonts
+Provides:       scalable-font-zh_TW
+Provides:       locale(zh_TW)
+Provides:       adobe-sourcehanserif-fonts = %version
+Obsoletes:      adobe-sourcehanserif-fonts < %version
 
-%files
-%defattr(-,root,root)
-%_ttfontsdir/
-%license LICENSE.txt
+%description -n adobe-sourcehanserif-tw-fonts
+%{shared_description}
+%reconfigure_fonts_scriptlets -n adobe-sourcehanserif-tw-fonts
+%files -n adobe-sourcehanserif-tw-fonts
+%defattr(0644,root,root,755)
+%license SourceHanSerifTW/LICENSE.txt
+%dir %{_ttfontsdir}
+%{_ttfontsdir}/SourceHanSerifTW-*.otf
 
 %changelog



Reply via email to