package init
This commit is contained in:
parent
eb888f2e85
commit
0d4745b643
47
67-paktype-naqsh.conf
Normal file
47
67-paktype-naqsh.conf
Normal file
@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<match>
|
||||
<test name="lang">
|
||||
<string>pa-pk</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>sans-serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>PakType Naqsh</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<match>
|
||||
<test name="lang">
|
||||
<string>ur-pk</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>sans-serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>PakType Naqsh</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<match>
|
||||
<test name="lang">
|
||||
<string>ur-in</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>sans-serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>PakType Naqsh</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<alias>
|
||||
<family>PakType Naqsh</family>
|
||||
<default>
|
||||
<family>sans-serif</family>
|
||||
</default>
|
||||
</alias>
|
||||
</fontconfig>
|
||||
|
||||
BIN
PakType-Release-2019-03-11.tar.gz
Normal file
BIN
PakType-Release-2019-03-11.tar.gz
Normal file
Binary file not shown.
46
paktype-naqsh-fonts.spec
Normal file
46
paktype-naqsh-fonts.spec
Normal file
@ -0,0 +1,46 @@
|
||||
%global fontname paktype-naqsh
|
||||
|
||||
Name: %{fontname}-fonts
|
||||
Version: 4.1
|
||||
Release: 11
|
||||
Summary: Fonts for Arabic from PakType
|
||||
License: GPLv2 with exceptions
|
||||
URL: https://sourceforge.net/projects/paktype/
|
||||
Source0: https://sourceforge.net/projects/paktype/files/PakType-Release-2019-03-11.tar.gz
|
||||
Source1: 67-paktype-naqsh.conf
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: fontpackages-devel
|
||||
Requires: fontpackages-filesystem
|
||||
Obsoletes: paktype-fonts-common < %{version}i-%{release}
|
||||
|
||||
|
||||
%description
|
||||
This package provides paktype-naqsh fonts.It is free for distribution
|
||||
under GPL.You can read PakType_Naqsh_Features.pdf to find more information.
|
||||
|
||||
%prep
|
||||
%setup -q -c
|
||||
mv PakTypeNaqsh.ttf PakType_Naqsh.ttf
|
||||
mv License\ files/PakType\ Naqsh\ License.txt PakType_Naqsh_License.txt
|
||||
mv Features/PakType\ Naqsh\ Features.pdf PakType_Naqsh_Features.pdf
|
||||
|
||||
%{__sed} -i 's/\r//' PakType_Naqsh_License.txt
|
||||
chmod a-x PakType_Naqsh.ttf PakType_Naqsh_License.txt PakType_Naqsh_Features.pdf
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
install -m 0755 -d $RPM_BUILD_ROOT%{_fontdir}
|
||||
install -m 0644 -p PakType_Naqsh.ttf $RPM_BUILD_ROOT%{_fontdir}
|
||||
install -m 0755 -d %{buildroot}%{_fontconfig_confdir}
|
||||
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir}
|
||||
install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/67-paktype-naqsh.conf
|
||||
ln -s %{_fontconfig_templatedir}/67-paktype-naqsh.conf %{buildroot}%{_fontconfig_confdir}/67-paktype-naqsh.conf
|
||||
|
||||
%_font_pkg -f 67-paktype-naqsh.conf PakType_Naqsh.ttf
|
||||
%doc PakType_Naqsh_Features.pdf PakType_Naqsh_License.txt
|
||||
|
||||
%changelog
|
||||
* Fri Feb 14 2020 lingsheng <lingsheng@huawei.com> - 4.1-11
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user