!4 Upgrade version to 6.0

From: @cherry530 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
This commit is contained in:
openeuler-ci-bot 2023-09-11 01:05:00 +00:00 committed by Gitee
commit 6c61d2752d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 14 additions and 10 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,12 +1,12 @@
%global fontname paktype-naqsh
Name: %{fontname}-fonts
Version: 4.1
Release: 11
Version: 6.0
Release: 1
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
Source0: https://sourceforge.net/p/paktype/code/HEAD/tree/Fonts/Release/PakType-Naqsh-%{version}.tar.gz?format=raw#/%{name}-%{version}.tar.gz
Source1: 67-paktype-naqsh.conf
BuildArch: noarch
@ -21,26 +21,30 @@ 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
rm -rf Code
mv PakType\ Naqsh\ License.txt PakType_Naqsh_License.txt
mv PakType\ Naqsh\ Features.pdf PakTypeNaqshFeatures.pdf
%{__sed} -i 's/\r//' PakType_Naqsh_License.txt
chmod a-x PakType_Naqsh.ttf PakType_Naqsh_License.txt PakType_Naqsh_Features.pdf
chmod a-x PakType_Naqsh_License.txt PakTypeNaqshFeatures.pdf
%build
%install
install -m 0755 -d $RPM_BUILD_ROOT%{_fontdir}
install -m 0644 -p PakType_Naqsh.ttf $RPM_BUILD_ROOT%{_fontdir}
install -m 0644 -p PakTypeNaqsh.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
%_font_pkg -f 67-paktype-naqsh.conf PakTypeNaqsh.ttf
%doc PakTypeNaqshFeatures.pdf PakType_Naqsh_License.txt
%changelog
* Sat Sep 09 2023 xu_ping <707078654@qq.com> - 6.0-1
- Upgrade version to 6.0
* Fri Feb 14 2020 lingsheng <lingsheng@huawei.com> - 4.1-11
- Package init