diff --git a/README.md b/README.md index 8e65e6a..4f48971 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ttf-khmer +Fonts for Khmer and Latin alphabets. + diff --git a/ttf-khmer.spec b/ttf-khmer.spec new file mode 100644 index 0000000..17a69da --- /dev/null +++ b/ttf-khmer.spec @@ -0,0 +1,48 @@ +Name: ttf-khmer +Version: 5.0 +Release: 1mamba +Summary: Fonts for Khmer and Latin alphabets +Group: System/Fonts +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://sourceforge.net/projects/khmer +Source: https://sourceforge.net/projects/khmer/files/Fonts%20-%20KhmerOS/KhmerOS%20Fonts%20%{version}-%20LGPL%20Licence/All_KhmerOS_%{version}.zip +License: LGPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +Requires(post): fontconfig +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Fonts for Khmer and Latin alphabets. + +%prep +%setup -q -n All_KhmerOS_%{version} + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +install -dm755 %{buildroot}%{_datadir}/fonts/truetype +install -m644 *.ttf %{buildroot}%{_datadir}/fonts/truetype/ + +%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) +%{_datadir}/fonts/truetype/*.ttf + +%changelog +* Sat Mar 07 2020 Silvan Calarco 5.0-1mamba +- package created using the webbuild interface