From 3e0a1def8e58fcba72c464f0560931f5715e2546022e5c7e2290ff0d1d3d8479 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 21 Jul 2023 07:06:32 +0000 Subject: [PATCH] Accepting request 1098580 from home:smolsheep openSUSE is lacking a nerd-fonts font. I figured the symbols-only version would be the most useful to general users, so I would like to maintain this in factory if possible. OBS-URL: https://build.opensuse.org/request/show/1098580 OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/symbols-only-nerd-fonts?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + NerdFontsSymbolsOnly.tar.xz | 3 ++ symbols-only-nerd-fonts.changes | 4 +++ symbols-only-nerd-fonts.spec | 53 +++++++++++++++++++++++++++++++++ 5 files changed, 84 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 NerdFontsSymbolsOnly.tar.xz create mode 100644 symbols-only-nerd-fonts.changes create mode 100644 symbols-only-nerd-fonts.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/NerdFontsSymbolsOnly.tar.xz b/NerdFontsSymbolsOnly.tar.xz new file mode 100644 index 0000000..98230d4 --- /dev/null +++ b/NerdFontsSymbolsOnly.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:edfda99853d380218b11c46b74c1cbca73c8780a6c6d766c6c6dcd2438834cfb +size 1532192 diff --git a/symbols-only-nerd-fonts.changes b/symbols-only-nerd-fonts.changes new file mode 100644 index 0000000..d72b1a7 --- /dev/null +++ b/symbols-only-nerd-fonts.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Jun 6 04:40:20 UTC 2023 - Joshua Smith + +- Initial package of Symbols-only Nerd Fonts v3.0.2 for openSUSE. diff --git a/symbols-only-nerd-fonts.spec b/symbols-only-nerd-fonts.spec new file mode 100644 index 0000000..a842abf --- /dev/null +++ b/symbols-only-nerd-fonts.spec @@ -0,0 +1,53 @@ +# +# spec file for package symbols-only-nerd-fonts +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + +Name: symbols-only-nerd-fonts +Version: 3.0.2 +Release: 0 +Summary: A glyphs-only version of Nerd Fonts +License: MIT +Group: System/X11/Fonts +URL: https://github.com/ryanoasis/nerd-fonts +Source: https://github.com/ryanoasis/nerd-fonts/releases/download/v%{version}/NerdFontsSymbolsOnly.tar.xz +BuildRequires: fontpackages-devel +BuildArch: noarch +%reconfigure_fonts_prereq + +%description +Nerd Fonts takes popular programming fonts and adds a bunch of glyphs. +This package only contains the symbols without including a base font. + +%prep +%autosetup -c + +%build + +%install +install -d %{buildroot}%{_ttfontsdir} %{buildroot}%{_docdir}/%{name} %{buildroot}%{_licensedir}/%{name} +install -m644 *.ttf %{buildroot}%{_ttfontsdir} +install -m644 README.md %{buildroot}%{_docdir}/%{name} +install -m644 LICENSE %{buildroot}%{_licensedir}/%{name} + + +%reconfigure_fonts_scriptlets + +%files +%doc README.md +%license LICENSE +%{_ttfontsdir} + +%changelog \ No newline at end of file