Blame smc-anjalioldlipi-fonts.spec

vvijayra 9193c70
%global fontname smc-anjalioldlipi
vvijayra 9193c70
%global fontconf 67-%{fontname}.conf
vvijayra 9193c70
vvijayra 9193c70
Name:		%{fontname}-fonts
vvijayra 4ce6c23
Version:	7.1.2
8b0bb91
Release:	4%{?dist}
vvijayra 9193c70
Summary:	Open Type Fonts for Malayalam script 
vvijayra 9193c70
License:	OFL
vvijayra 9193c70
URL:		https://gitlab.com/smc/fonts/anjalioldlipi
vvijayra 9193c70
Source0:	%{url}/-/archive/Version%{version}/anjalioldlipi-Version%{version}.tar.gz
vvijayra 9193c70
Source1:	%{fontname}-fontconfig.conf
vvijayra 9193c70
Source2:	%{fontname}.metainfo.xml
vvijayra 9193c70
BuildArch:	noarch
cd4b4df
BuildRequires: make
vvijayra 9193c70
BuildRequires:	fontpackages-devel
vvijayra 9193c70
BuildRequires:	libappstream-glib
vvijayra 7c7cf0d
BuildRequires:	brotli-devel
vvijayra 7c7cf0d
BuildRequires:	fontforge-devel
vvijayra 7c7cf0d
BuildRequires:	python3
vvijayra 7c7cf0d
BuildRequires:	python3-fonttools
vvijayra 9193c70
Requires:	fontpackages-filesystem
vvijayra 9193c70
Obsoletes:	smc-fonts-common < 6.1-11
vvijayra 9193c70
vvijayra 9193c70
vvijayra 9193c70
%description
vvijayra 9193c70
AnjaliOldLipi is a sans serif Malayalam language typeface designed
vvijayra 9193c70
by Kevin & Siji and maintained by Swathanthra Malayalam Computing project.
vvijayra 9193c70
This is a comprehensive font with glyphs for all common 
vvijayra 9193c70
Malayalam ligatures and the Latin character set.
vvijayra 9193c70
vvijayra 9193c70
%prep
vvijayra 9193c70
%autosetup -n anjalioldlipi-Version%{version}
vvijayra 9193c70
chmod 644 *.txt
vvijayra 7c7cf0d
rm -rf ttf
vvijayra 9193c70
vvijayra 9193c70
%build
vvijayra 7c7cf0d
make PY=python3
vvijayra 9193c70
vvijayra 9193c70
%install
vvijayra 9193c70
vvijayra 9193c70
install -m 0755 -d %{buildroot}%{_fontdir}
vvijayra 7c7cf0d
install -m 0644 -p build/*.ttf %{buildroot}%{_fontdir}
vvijayra 9193c70
vvijayra 9193c70
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
vvijayra 9193c70
	%{buildroot}%{_fontconfig_confdir}
vvijayra 9193c70
vvijayra 9193c70
install -m 0644 -p %{SOURCE1} \
vvijayra 9193c70
	%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
vvijayra 9193c70
vvijayra 9193c70
install -Dm 0644 -p %{SOURCE2} \
vvijayra 9193c70
	%{buildroot}%{_datadir}/metainfo/%{fontname}.metainfo.xml
vvijayra 9193c70
vvijayra 9193c70
ln -s %{_fontconfig_templatedir}/%{fontconf} \
vvijayra 9193c70
	%{buildroot}%{_fontconfig_confdir}/%{fontconf}
vvijayra 9193c70
vvijayra 9193c70
%check
vvijayra 9193c70
appstream-util validate-relax --nonet \
vvijayra 9193c70
	%{buildroot}%{_datadir}/metainfo/%{fontname}.metainfo.xml
vvijayra 9193c70
vvijayra 9193c70
%_font_pkg -f %{fontconf} *.ttf
vvijayra 9193c70
%doc README.md
vvijayra 9193c70
%license LICENSE.txt
vvijayra 9193c70
%{_datadir}/metainfo/%{fontname}.metainfo.xml
vvijayra 9193c70
vvijayra 9193c70
%changelog
8b0bb91
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.2-4
8b0bb91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8b0bb91
8dd5dbe
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.2-3
8dd5dbe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
8dd5dbe
837a8ed
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.2-2
837a8ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
837a8ed
vvijayra 4ce6c23
* Mon Feb 17 2020 Vishal Vijayraghavan <vishalvvr@fedoraproject.org> - 7.1.2-1
vvijayra 4ce6c23
- New release smc-anjalioldlipi-fonts-7.1.2
vvijayra 4ce6c23
774d4c6
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.1-6
774d4c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
774d4c6
16bcd76
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.1-5
16bcd76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
16bcd76
vvijayra 38aa192
* Wed Jul 24 2019 Vishal Vijayraghavan <vishalvijayraghavan@gmail.com> - 7.1.1-4
vvijayra 38aa192
- Font CI test added
vvijayra 38aa192
vvijayra 7c7cf0d
* Mon Feb 25 2019 Vishal Vijayraghavan <vishalvijayraghavan@gmail.com> - 7.1.1-3
vvijayra 7c7cf0d
- Build font from sources
vvijayra 7c7cf0d
43fe559
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.1-2
43fe559
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
43fe559
vvijayra 9193c70
* Wed Nov 28 2018 Vishal Vijayraghavan <vishalvijayraghavan@gmail.com> - 7.1.1-1
vvijayra 9193c70
- first release of smc-anjalioldlipi fonts
vvijayra 7c7cf0d