Package init
This commit is contained in:
commit
6d25eedd80
BIN
lohit-gurmukhi-2.91.2.tar.gz
Normal file
BIN
lohit-gurmukhi-2.91.2.tar.gz
Normal file
Binary file not shown.
17
lohit-gurmukhi-fonts.conf
Normal file
17
lohit-gurmukhi-fonts.conf
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<alias binding="same">
|
||||||
|
<family>Lohit Punjabi</family>
|
||||||
|
<accept>
|
||||||
|
<family>Lohit Gurmukhi</family>
|
||||||
|
</accept>
|
||||||
|
</alias>
|
||||||
|
<alias binding="same">
|
||||||
|
<family>Lohit Gurmukhi</family>
|
||||||
|
<default>
|
||||||
|
<family>Lohit Punjabi</family>
|
||||||
|
</default>
|
||||||
|
</alias>
|
||||||
|
</fontconfig>
|
||||||
|
|
||||||
49
lohit-gurmukhi-fonts.spec
Normal file
49
lohit-gurmukhi-fonts.spec
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
%global fontname lohit-gurmukhi
|
||||||
|
Name: lohit-gurmukhi-fonts
|
||||||
|
Version: 2.91.2
|
||||||
|
Release: 6
|
||||||
|
Summary: Free Gurmukhi truetype font
|
||||||
|
License: OFL
|
||||||
|
URL: https://pagure.io/lohit
|
||||||
|
Source0: https://releases.pagure.org/lohit/lohit-gurmukhi-%{version}.tar.gz
|
||||||
|
Source1: lohit-gurmukhi-fonts.conf
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: fontforge >= 20080429 fontpackages-devel python3-devel
|
||||||
|
Requires: fontpackages-filesystem
|
||||||
|
Provides: lohit-punjabi-fonts = %{version}-%{release}
|
||||||
|
Obsoletes: lohit-punjabi-fonts < 2.5.3-5
|
||||||
|
|
||||||
|
%description
|
||||||
|
This project provide free Gurmukhi fonts for Punjabi language.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n lohit-gurmukhi-%{version} -p1
|
||||||
|
mv 66-lohit-gurmukhi.conf 65-0-lohit-gurmukhi.conf
|
||||||
|
|
||||||
|
%build
|
||||||
|
%make_build ttf
|
||||||
|
|
||||||
|
%install
|
||||||
|
|
||||||
|
install -m 0755 -d %{buildroot}%{_fontdir}
|
||||||
|
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
|
||||||
|
|
||||||
|
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir}
|
||||||
|
|
||||||
|
install -m 0644 -p 65-0-lohit-gurmukhi.conf %{buildroot}%{_fontconfig_templatedir}/65-0-lohit-gurmukhi.conf
|
||||||
|
ln -s %{_fontconfig_templatedir}/65-0-lohit-gurmukhi.conf %{buildroot}%{_fontconfig_confdir}/65-0-lohit-gurmukhi.conf
|
||||||
|
|
||||||
|
install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/30-lohit-gurmukhi.conf
|
||||||
|
ln -s %{_fontconfig_templatedir}/30-lohit-gurmukhi.conf %{buildroot}%{_fontconfig_confdir}/30-lohit-gurmukhi.conf
|
||||||
|
|
||||||
|
install -Dm 0644 -p io.pagure.lohit.gurmukhi.font.metainfo.xml %{buildroot}%{_datadir}/metainfo/io.pagure.lohit.gurmukhi.font.metainfo.xml
|
||||||
|
|
||||||
|
%_font_pkg -f *.conf *.ttf
|
||||||
|
|
||||||
|
%doc ChangeLog COPYRIGHT OFL.txt AUTHORS README test-gurmukhi.txt
|
||||||
|
%{_datadir}/metainfo/io.pagure.lohit.gurmukhi.font.metainfo.xml
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Nov 20 2019 duyeyu <duyeyu@huawei.com> - 2.91.2-6
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user