package init
This commit is contained in:
parent
d2d75db84b
commit
b12f3fcd24
BIN
PakType-Release-2019-03-11.tar.gz
Normal file
BIN
PakType-Release-2019-03-11.tar.gz
Normal file
Binary file not shown.
35
paktype-naskh-basic-fonts.conf
Normal file
35
paktype-naskh-basic-fonts.conf
Normal file
@ -0,0 +1,35 @@
|
||||
<?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 Naskh Basic</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<match>
|
||||
<test name="lang" compare="contains">
|
||||
<string>ur</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>sans-serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>PakType Naskh Basic</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<alias>
|
||||
<family>PakType Naskh Basic</family>
|
||||
<default>
|
||||
<family>sans-serif</family>
|
||||
</default>
|
||||
</alias>
|
||||
</fontconfig>
|
||||
|
||||
60
paktype-naskh-basic-fonts.spec
Normal file
60
paktype-naskh-basic-fonts.spec
Normal file
@ -0,0 +1,60 @@
|
||||
%global fontname paktype-naskh-basic
|
||||
%global fontconf 65-0-paktype-naskh-basic.conf
|
||||
|
||||
Name: paktype-naskh-basic-fonts
|
||||
Version: 4.1
|
||||
Release: 12
|
||||
Summary: Font supporting Arabic Script
|
||||
|
||||
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: paktype-naskh-basic-fonts.conf
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: fontpackages-devel
|
||||
Requires: fontpackages-filesystem
|
||||
|
||||
%description
|
||||
Unicode based open source OpenType font supporting Arabic Script under the terms \
|
||||
of the GNU General Public License as published by the Free Software Foundation.
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -c -n %{name}-%{version}
|
||||
mv Features/PakType\ Naskh\ Basic\ Features.pdf PakTypeNaskhBasicFeatures.pdf
|
||||
mv License\ files/PakType\ Naskh\ Basic\ License.txt PakType_Naskh_Basic_License.txt
|
||||
|
||||
%{__sed} -i 's/\r//' PakType_Naskh_Basic_License.txt
|
||||
chmod a-x PakType_Naskh_Basic_License.txt PakTypeNaskhBasicFeatures.pdf
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
pushd %{buildroot}
|
||||
install -m 0755 -d .%{_fontdir}
|
||||
install -m 0644 -p %{_builddir}/%{buildsubdir}/PakTypeNaskhBasic.ttf .%{_fontdir}
|
||||
install -m 0755 -d .%{_fontconfig_templatedir} \
|
||||
.%{_fontconfig_confdir}
|
||||
install -m 0644 -p %{SOURCE1} .%{_fontconfig_templatedir}/%{fontconf}
|
||||
popd
|
||||
|
||||
ln -s %{_fontconfig_templatedir}/%{fontconf} \
|
||||
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc PakType_Naskh_Basic_License.txt
|
||||
%{_sysconfdir}/fonts/conf.d/%{fontconf}
|
||||
%{_datadir}/fonts/%{fontname}/*.ttf
|
||||
%{_datadir}/fontconfig/conf.avail/%{fontconf}
|
||||
|
||||
%files help
|
||||
%defattr(-,root,root)
|
||||
%doc PakTypeNaskhBasicFeatures.pdf
|
||||
|
||||
%changelog
|
||||
* Fri Feb 14 2020 lingsheng <lingsheng@huawei.com> - 4.1-12
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user