69 lines
2.0 KiB
RPMSpec
69 lines
2.0 KiB
RPMSpec
%global fontname paktype-naskh-basic
|
|
%global fontconf 65-0-paktype-naskh-basic.conf
|
|
|
|
Name: paktype-naskh-basic-fonts
|
|
Version: 6.0
|
|
Release: 2
|
|
Summary: Font supporting Arabic Script
|
|
|
|
License: GPLv2 with exceptions
|
|
URL: https://sourceforge.net/projects/paktype/
|
|
|
|
Source0: https://sourceforge.net/p/paktype/code/HEAD/tree/Fonts/Release/PakType-Naskh-Basic-%{version}.tar.gz?format=raw#/%{name}-%{version}.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}
|
|
rm -rf Code
|
|
|
|
mv PakType\ Naskh\ Basic\ License.txt PakType_Naskh_Basic_License.txt
|
|
mv PakType\ Naskh\ Basic\ Features.pdf PakTypeNaskhBasicFeatures.pdf
|
|
|
|
%{__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
|
|
* Mon Nov 21 2022 liyanan <liyanan32@h-partners.com> - 6.0-2
|
|
- Change source
|
|
|
|
* Thu Jun 16 2022 SimpleUpdate Robot <tc@openeuler.org> - 6.0-1
|
|
- Upgrade to version 6.0
|
|
|
|
* Fri Feb 14 2020 lingsheng <lingsheng@huawei.com> - 4.1-12
|
|
- Package init
|