diff --git a/README.md b/README.md index 8e3f4d5..ecb1e94 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ttf-lohit-kannada +Free Kannada font. + diff --git a/ttf-lohit-kannada.spec b/ttf-lohit-kannada.spec new file mode 100644 index 0000000..eab341c --- /dev/null +++ b/ttf-lohit-kannada.spec @@ -0,0 +1,52 @@ +Name: ttf-lohit-kannada +Version: 2.5.4 +Release: 1mamba +Summary: Free Kannada font +Group: System/Fonts +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://pagure.io/lohit +Source: https://releases.pagure.org/lohit/lohit-kannada-%{version}.tar.gz +License: OFL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: fontforge +Requires(post): fontconfig +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Free Kannada font. + +%prep +%setup -q -n lohit-kannada-%{version} + +%build +%make ttf + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -dm755 %{buildroot}%{_datadir}/fonts/truetype +install -m644 *.ttf %{buildroot}%{_datadir}/fonts/truetype/ +install -D -m0644 66-lohit-kannada.conf %{buildroot}%{_sysconfdir}/fonts/66-lohit-kannada.conf + +%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/66-lohit-kannada.conf +%{_datadir}/fonts/truetype/*.ttf +%doc AUTHORS + +%changelog +* Sat Mar 07 2020 Silvan Calarco 2.5.4-1mamba +- package created using the webbuild interface