import khmeros-fonts-5.0-25.el8

c8 imports/c8/khmeros-fonts-5.0-25.el8
CentOS Sources 6 years ago committed by MSVSphere Packaging Team
commit 4f449c133d

1
.gitignore vendored

@ -0,0 +1 @@
SOURCES/All_KhmerOS_5.0.zip

@ -0,0 +1 @@
4a17c919b93f4b99765cd476708ef3a79a925f37 SOURCES/All_KhmerOS_5.0.zip

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- Generic names -->
<alias>
<family>Khmer OS</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<alias>
<family>Khmer OS Content</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<alias>
<family>Khmer OS System</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<!-- Locale-specific overrides -->
<match>
<test name="lang" compare="contains">
<string>km</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Khmer OS</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>km</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Khmer OS Content</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>km</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Khmer OS System</string>
</edit>
</match>
</fontconfig>

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- Generic names -->
<alias>
<family>Khmer OS Battambang</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<!-- Locale-specific overrides -->
<match>
<test name="lang" compare="contains">
<string>km</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Khmer OS Battambang</string>
</edit>
</match>
</fontconfig>

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- Generic names -->
<alias>
<family>Khmer OS Bokor</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<!-- Locale-specific overrides -->
<match>
<test name="lang" compare="contains">
<string>km</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Khmer OS Bokor</string>
</edit>
</match>
</fontconfig>

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- Generic names -->
<alias>
<family>Khmer OS Fasthand</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<alias>
<family>Khmer OS Freehand</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<!-- Locale-specific overrides -->
<match>
<test name="lang" compare="contains">
<string>km</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Khmer OS Fasthand</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>km</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Khmer OS Freehand</string>
</edit>
</match>
</fontconfig>

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- Generic names -->
<alias>
<family>Khmer OS Metal Chrieng</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<!-- Locale-specific overrides -->
<match>
<test name="lang" compare="contains">
<string>km</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Khmer OS Metal Chrieng</string>
</edit>
</match>
</fontconfig>

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- Generic names -->
<alias>
<family>Khmer OS Muol</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<alias>
<family>Khmer OS Muol Pali</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<alias>
<family>Khmer OS Muol Light</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<!-- Locale-specific overrides -->
<match>
<test name="lang" compare="contains">
<string>km</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Khmer OS Muol</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>km</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Khmer OS Muol Pali</string>
</edit>
</match>
<match>
<test name="lang" compare="contains">
<string>km</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Khmer OS Muol Light</string>
</edit>
</match>
</fontconfig>

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- Generic names -->
<alias>
<family>Khmer OS Siemreap</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<!-- Locale-specific overrides -->
<match>
<test name="lang" compare="contains">
<string>km</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Khmer OS Siemreap</string>
</edit>
</match>
</fontconfig>

@ -0,0 +1,17 @@
KhmerOS - font for the Khmer language of Cambodia
Copyright 2007 Danh Hong
This font is free software; you can redistribute it and/or modify it under the
terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 2.1 of the License, or (at your option)
any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.? See the GNU Lesser General Public License for
more details.
You should have received a copy of the GNU Lesser General Public License along
with this font; if not, write to the Free Software Foundation, Inc., 51
Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or
visit http://www.gnu.org/licenses/lgpl.html

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="font">
<id>khmeros-base</id>
<metadata_license>CC0-1.0</metadata_license>
<name>Khmer OS</name>
<summary>A set of Cambodian fonts</summary>
<description>
<p>
The Khmer OS fonts include Khmer and Latin alphabets, and they have equivalent
sizes for Khmer and English alphabets, so that when texts mix both it is not
necessary to have different point sizes for the text in each language.
They were created by Danh Hong of the Cambodian Open Institute.
</p>
</description>
<updatecontact>psatpute_at_redhat_dot_com</updatecontact>
<url type="homepage">http://www.khmeros.info/</url>
</component>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="font">
<id>khmeros-battambang</id>
<metadata_license>CC0-1.0</metadata_license>
<extends>khmeros-base</extends>
</component>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="font">
<id>khmeros-bokor</id>
<metadata_license>CC0-1.0</metadata_license>
<extends>khmeros-base</extends>
</component>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="font">
<id>khmeros-handwritten</id>
<metadata_license>CC0-1.0</metadata_license>
<extends>khmeros-base</extends>
</component>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="font">
<id>khmeros-metal-chrieng</id>
<metadata_license>CC0-1.0</metadata_license>
<extends>khmeros-base</extends>
</component>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="font">
<id>khmeros-muol</id>
<metadata_license>CC0-1.0</metadata_license>
<extends>khmeros-base</extends>
</component>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="font">
<id>khmeros-siemreap</id>
<metadata_license>CC0-1.0</metadata_license>
<extends>khmeros-base</extends>
</component>

@ -0,0 +1,267 @@
%global fontname khmeros
%global archivename All_KhmerOS_%{version}
%global fontconf 65-0-%{fontname}
%global common_desc \
The Khmer OS fonts include Khmer and Latin alphabets, and they have equivalent \
sizes for Khmer and English alphabets, so that when texts mix both it is not \
necessary to have different point sizes for the text in each language. \
\
They were created by Danh Hong of the Cambodian Open Institute.
Name: %{fontname}-fonts
Version: 5.0
Release: 25%{?dist}
Summary: Khmer font set created by Danh Hong of the Cambodian Open Institute
License: LGPLv2+
URL: http://www.khmeros.info/en/fonts
Source0: http://downloads.sourceforge.net/khmer/%{archivename}.zip
Source1: 65-0-khmeros-battambang.conf
Source2: 65-0-khmeros-bokor.conf
Source3: 65-0-khmeros-handwritten.conf
Source4: 65-0-khmeros-base.conf
Source5: 65-0-khmeros-metal-chrieng.conf
Source6: 65-0-khmeros-muol.conf
Source7: 65-0-khmeros-siemreap.conf
Source8: License.txt
Source9: %{fontname}-base.metainfo.xml
Source10: %{fontname}-battambang.metainfo.xml
Source11: %{fontname}-bokor.metainfo.xml
Source12: %{fontname}-handwritten.metainfo.xml
Source13: %{fontname}-metal-chrieng.metainfo.xml
Source14: %{fontname}-muol.metainfo.xml
Source15: %{fontname}-siemreap.metainfo.xml
BuildArch: noarch
BuildRequires: fontpackages-devel
%description
%common_desc
%package common
Summary: Common files of %{name}
Requires: fontpackages-filesystem
%description common
%common_desc
This package consists of files used by other %{name} packages.
%package -n %{fontname}-base-fonts
Summary: Base KhmerOS font
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-base-fonts
%common_desc
Base KhmerOS fonts.
%_font_pkg -n base -f 65-0-khmeros-base.conf KhmerOS.ttf KhmerOS_content.ttf KhmerOS_sys.ttf
%{_datadir}/appdata/%{fontname}-base.metainfo.xml
%package -n %{fontname}-battambang-fonts
Summary: Battambang font
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-battambang-fonts
%common_desc
Battambang font.
%_font_pkg -n battambang -f 65-0-khmeros-battambang.conf KhmerOS_battambang.ttf
%{_datadir}/appdata/%{fontname}-battambang.metainfo.xml
%package -n %{fontname}-bokor-fonts
Summary: Bokor font
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-bokor-fonts
%common_desc
Bokor font.
%_font_pkg -n bokor -f 65-0-khmeros-bokor.conf KhmerOS_bokor.ttf
%{_datadir}/appdata/%{fontname}-bokor.metainfo.xml
%package -n %{fontname}-handwritten-fonts
Summary: Freehand and fasthand fonts
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-handwritten-fonts
%common_desc
Freehand and fasthand - handwritten fonts.
%_font_pkg -n handwritten -f 65-0-khmeros-handwritten.conf KhmerOS_freehand.ttf KhmerOS_fasthand.ttf
%{_datadir}/appdata/%{fontname}-handwritten.metainfo.xml
%package -n %{fontname}-metal-chrieng-fonts
Summary: Metal Chrieng font
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-metal-chrieng-fonts
%common_desc
Metal Chrieng font.
%_font_pkg -n metal-chrieng -f 65-0-khmeros-metal-chrieng.conf KhmerOS_metalchrieng.ttf
%{_datadir}/appdata/%{fontname}-metal-chrieng.metainfo.xml
%package -n %{fontname}-muol-fonts
Summary: Muol fonts - normal, light and Pali
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-muol-fonts
%common_desc
Muol fonts - normal, light and Pali.
%_font_pkg -n muol -f 65-0-khmeros-muol.conf KhmerOS_muol.ttf KhmerOS_muollight.ttf KhmerOS_muolpali.ttf
%{_datadir}/appdata/%{fontname}-muol.metainfo.xml
%package -n %{fontname}-siemreap-fonts
Summary: Siemreap font
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-siemreap-fonts
%common_desc
Siemreap font.
%_font_pkg -n siemreap -f 65-0-khmeros-siemreap.conf KhmerOS_siemreap.ttf
%{_datadir}/appdata/%{fontname}-siemreap.metainfo.xml
%prep
%autosetup -n %{archivename}
install -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .
install -p %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} .
%build
#nothing
%install
# get rid of the white space (' ')
mv 'KhmerOS .ttf' KhmerOS.ttf
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
for conffile in *.conf ; do
install -m 0644 -p $conffile %{buildroot}%{_fontconfig_templatedir}/${conffile}
ln -s %{_fontconfig_templatedir}/$conffile \
%{buildroot}%{_fontconfig_confdir}/$conffile
done
# Add AppStream metadata
install -Dm 0644 -p %{SOURCE9} \
%{buildroot}%{_datadir}/appdata/%{fontname}-base.metainfo.xml
install -Dm 0644 -p %{SOURCE10} \
%{buildroot}%{_datadir}/appdata/%{fontname}-battambang.metainfo.xml
install -Dm 0644 -p %{SOURCE11} \
%{buildroot}%{_datadir}/appdata/%{fontname}-bokor.metainfo.xml
install -Dm 0644 -p %{SOURCE12} \
%{buildroot}%{_datadir}/appdata/%{fontname}-handwritten.metainfo.xml
install -Dm 0644 -p %{SOURCE13} \
%{buildroot}%{_datadir}/appdata/%{fontname}-metal-chrieng.metainfo.xml
install -Dm 0644 -p %{SOURCE14} \
%{buildroot}%{_datadir}/appdata/%{fontname}-muol.metainfo.xml
install -Dm 0644 -p %{SOURCE15} \
%{buildroot}%{_datadir}/appdata/%{fontname}-siemreap.metainfo.xml
%files common
%license License.txt
%changelog
* Wed Jul 04 2018 Parag Nemade <pnemade AT fedoraproject DOT orgf> - 5.0-25
- Update to follow latest packaging guidelines
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Thu Oct 30 2014 Pravin Satpute <psatpute At redhat DIT com> - 5.0-19
- Adding metainfo for gnome-software.
- Corrected url
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Tue Nov 27 2012 Jon Ciesla <limburgher@gmail.com> - 5.0-15
- Remove old obsoletes, BZ 880479.
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu Jul 05 2012 Parag <pnemade AT redhat.com> - 5.0-13
- Resolves:rh#837520 - Malformed fontconfig config file
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Jul 12 2010 Parag <pnemade AT redhat.com> - 5.0-10
- Added License.txt in -common
* Thu May 20 2010 Parag <pnemade AT redhat.com> - 5.0-9
- Resolves:rh#586253 - No fontconfig config files provided
* Tue Feb 16 2010 Parag <pnemade AT redhat.com> - 5.0-8
- drop -common owning %%{_fontdir}
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Sun Jan 25 2009 Michal Nowak <mnowak@redhat.com> - 5.0-5
- provide Obsoletes and dependency on -common pkg
* Fri Jan 23 2009 Michal Nowak <mnowak@redhat.com> - 5.0-4
- changes to comply with F11 font rules
* Tue Jul 8 2008 Michal Nowak <mnowak@redhat.com> - 5.0-3
- reshaping to multiple subpackages based on font type/purpose
- license uncertainity is solved; licence field is set according
to information from .ttf files read via gnome-font-viewer
* Mon Jul 7 2008 Michal Nowak <mnowak@redhat.com> - 5.0-2
- removing Fedora specific license
- refactoring summary and description texts (Nicolas Mailhot)
* Fri Jul 4 2008 Michal Nowak <mnowak@redhat.com> - 5.0-1
- initial release
Loading…
Cancel
Save