diff --git a/46-noto-mono.conf b/46-noto-mono.conf new file mode 100644 index 0000000..6740c5f --- /dev/null +++ b/46-noto-mono.conf @@ -0,0 +1,10 @@ + + + + + Noto Sans Mono + + monospace + + + diff --git a/46-noto-sans.conf b/46-noto-sans.conf new file mode 100644 index 0000000..fb2825f --- /dev/null +++ b/46-noto-sans.conf @@ -0,0 +1,10 @@ + + + + + Noto Sans + + sans-serif + + + diff --git a/46-noto-serif.conf b/46-noto-serif.conf new file mode 100644 index 0000000..d06c02d --- /dev/null +++ b/46-noto-serif.conf @@ -0,0 +1,10 @@ + + + + + Noto Serif + + serif + + + diff --git a/66-noto-mono.conf b/66-noto-mono.conf new file mode 100644 index 0000000..2561249 --- /dev/null +++ b/66-noto-mono.conf @@ -0,0 +1,10 @@ + + + + + monospace + + Noto Sans Mono + + + diff --git a/66-noto-sans.conf b/66-noto-sans.conf new file mode 100644 index 0000000..6c86c4a --- /dev/null +++ b/66-noto-sans.conf @@ -0,0 +1,10 @@ + + + + + sans-serif + + Noto Sans + + + diff --git a/66-noto-serif.conf b/66-noto-serif.conf new file mode 100644 index 0000000..a503043 --- /dev/null +++ b/66-noto-serif.conf @@ -0,0 +1,10 @@ + + + + + serif + + Noto Serif + + + diff --git a/README.md b/README.md index bfed3fd..51867e9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ttf-noto-fonts +Google TTF Noto fonts. + diff --git a/ttf-noto-fonts.spec b/ttf-noto-fonts.spec new file mode 100644 index 0000000..b1cac26 --- /dev/null +++ b/ttf-noto-fonts.spec @@ -0,0 +1,87 @@ +Name: ttf-noto-fonts +Version: 24.4.1 +Release: 1mamba +Summary: Google TTF Noto fonts +Group: System/Fonts +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://notofonts.github.io/ +Source: https://github.com/notofonts/notofonts.github.io/archive/refs/tags/noto-monthly-release-%{version}.tar.gz +Source1: 46-noto-mono.conf +Source2: 46-noto-sans.conf +Source3: 46-noto-serif.conf +Source4: 66-noto-mono.conf +Source5: 66-noto-sans.conf +Source6: 66-noto-serif.conf +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +Requires(post): fontconfig + +%description +Google TTF Noto fonts. + +%package extra +Summary: Google TTF Noto extra fonts +Group: System/Fonts +Requires: %{name} = %{version}-%{release} + +%description extra +Google TTF Noto extra fonts. + +%prep +%setup -q -n notofonts.github.io-noto-monthly-release-%{version} + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -D -m644 fonts/*/hinted/ttf/*.tt[fc] -t %{buildroot}%{_datadir}/fonts/noto + +install -D -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/fonts/conf.avail/46-noto-mono.conf +install -D -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/fonts/conf.avail/46-noto-sans.conf +install -D -m644 %{SOURCE3} %{buildroot}%{_sysconfdir}/fonts/conf.avail/46-noto-serif.conf +install -D -m644 %{SOURCE4} %{buildroot}%{_sysconfdir}/fonts/conf.avail/66-noto-mono.conf +install -D -m644 %{SOURCE5} %{buildroot}%{_sysconfdir}/fonts/conf.avail/66-noto-sans.conf +install -D -m644 %{SOURCE6} %{buildroot}%{_sysconfdir}/fonts/conf.avail/66-noto-serif.conf + +install -d -m0755 %{buildroot}%{_sysconfdir}/fonts/conf.d/ +ln -s ../conf.avail/46-noto-mono.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/ +ln -s ../conf.avail/46-noto-sans.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/ +ln -s ../conf.avail/46-noto-serif.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/ +ln -s ../conf.avail/66-noto-mono.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/ +ln -s ../conf.avail/66-noto-sans.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/ +ln -s ../conf.avail/66-noto-serif.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/ + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache +: + +%postun +[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache +: + +%files +%defattr(-,root,root) +%{_sysconfdir}/fonts/conf.avail/*-noto-*.conf +%{_sysconfdir}/fonts/conf.d/*-noto-*.conf +%dir %{_datadir}/fonts/noto +%{_datadir}/fonts/noto/Noto*.ttf +%exclude %{_datadir}/fonts/noto/Noto*-Condensed*.ttf +%exclude %{_datadir}/fonts/noto/Noto*-Extra*.ttf +%exclude %{_datadir}/fonts/noto/Noto*-Semi*.ttf +%doc LICENSE + +%files extra +%defattr(-,root,root) +%{_datadir}/fonts/noto/Noto*-Condensed*.ttf +%{_datadir}/fonts/noto/Noto*-Extra*.ttf +%{_datadir}/fonts/noto/Noto*-Semi*.ttf + +%changelog +* Wed Apr 03 2024 Silvan Calarco 24.4.1-1mamba +- package created using the webbuild interface