@ -1,71 +1,92 @@
%global fontname madan
%global fontconf 65-0-%{fontname}.conf
BuildRequires: fontforge
Name: %{fontname}-fonts
Version: 2.000
Release: 20%{?dist}
Summary: Font for Nepali language
License: GPL+
Release: 32%{?dist}
URL: http://madanpuraskar.org/
%global fontlicense GPL+
%global fontlicenses license.txt
%global fontfamily Madan
%global fontsummary Font for Nepali language
%global fonts madan.ttf
%global fontconfs %{SOURCE1}
%global fontdescription %{expand:
This package provides the Madan font for Nepali made by the
Madan Puraskar Pustakalaya project.}
# Found new following working Source URL. Use wget to download this archive
Source0: http://download.com.np/uploads/nepali_unicode/madan.zip
Source1: %{name}-fontconfig.conf
Source2: ttf2sfd.pe
Source0: http://ltk.org.np/downloads/fonts.zip
Source1: 65-0-%{fontpkgname}.conf
# Extract from font info
Source2: license.txt
Source3: sfd2ttf.pe
Source4: %{fontname}.metainfo.xml
BuildArch: noarch
BuildRequires: fontforge
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem
# This patch will make sure "fc-scan madan.ttf |grep lang:" will show ne
# This is now newly created against fontforge2 build
Patch0: madan-fonts-2.000-bug842965-u0970-ff2.patch
# Below files will make sure "fc-scan madan.ttf |grep lang:" will show ne
Source4: madan.py
Source5: madan_u0970_glyph.svg
%description
This package provides the Madan font for Nepali made by the
Madan Puraskar Pustakalaya project.
%fontpkg
%prep
%setup -c -q
for file in madan/license.txt; do
sed "s|\r||g" $file > $file.new && \
touch -r $file $file.new && \
mv $file.new $file
done
cp -p %{SOURCE2} %{SOURCE3} .
%autosetup -c
cp -p %{SOURCE2} %{SOURCE3} \
%{SOURCE4} %{SOURCE5} .
chmod 755 ttf2sfd.pe sfd2ttf.pe
./ttf2sfd.pe madan/*.ttf
rm -rf madan/*ttf
%patch0 -p0 -b .added-u0970-character
./sfd2ttf.pe madan/*.sfd
%linuxtext license.txt
chmod 755 sfd2ttf.pe madan.py
./madan.py madan.ttf madan_u0970_glyph.svg
./sfd2ttf.pe madan.sfd
%build
echo "Nothing to do in Build."
%fontbuild
%install
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p %{fontname}/*.ttf %{buildroot}%{_fontdir}
%fontinstall
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
%check
%fontcheck
install -m 0644 -p %{SOURCE1} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
%fontfiles
# Add AppStream metadata
install -Dm 0644 -p %{SOURCE4} \
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
%changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com>
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
%_font_pkg -f %{fontconf} *.ttf
%doc %{fontname}/license.txt
%{_datadir}/appdata/%{fontname}.metainfo.xml
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com>
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.000-30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.000-29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sun May 24 2020 Parag Nemade <pnemade AT redhat DOT com> - 2.000-28
- Update fontconfig DTD id in conf file
* Wed Mar 18 2020 Parag Nemade <pnemade AT redhat DOT com> - 2.000-27
- Update CI script for new installed font path
* Tue Mar 10 2020 Parag Nemade <pnemade AT redhat DOT com> - 2.000-26
- Convert to new fonts packaging guidelines
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.000-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Dec 30 2019 Parag Nemade <pnemade AT redhat DOT com> - 2.000-24
- Fix adding U0970 based on Vishal Vijayraghavan's fix
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.000-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.000-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.000-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
%changelog
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.000-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild