719b9ed
%global fontname madan
e6a2ffd
%global fontconf 65-0-%{fontname}.conf
Rahul Bhalerao 7e54ae4
Rahul Bhalerao 7e54ae4
Name: %{fontname}-fonts
719b9ed
Version: 2.000
d5957a1
Release: 19%{?dist}
Rahul Bhalerao 7e54ae4
Summary: Font for Nepali language
ffc80e7
License: GPL+
Rahul Bhalerao 7e54ae4
URL: http://madanpuraskar.org/
81ac7a7
# Found new following working Source URL. Use wget to download this archive
81ac7a7
Source0: http://download.com.np/uploads/nepali_unicode/madan.zip
81ac7a7
Source1: %{name}-fontconfig.conf
7d3c6ee
Source2: ttf2sfd.pe
7d3c6ee
Source3: sfd2ttf.pe
766452c
Source4: %{fontname}.metainfo.xml
Rahul Bhalerao 7e54ae4
BuildArch: noarch
7d3c6ee
BuildRequires: fontforge
3ba4a18
BuildRequires: fontpackages-devel
3ba4a18
Requires:      fontpackages-filesystem
81ac7a7
# This patch will make sure "fc-scan madan.ttf |grep lang:" will show ne
c1b8c50
# This is now newly created against fontforge2 build
c1b8c50
Patch0: madan-fonts-2.000-bug842965-u0970-ff2.patch
Rahul Bhalerao 7e54ae4
Rahul Bhalerao 7e54ae4
%description
Rahul Bhalerao 7e54ae4
This package provides the Madan font for Nepali made by the
Rahul Bhalerao 7e54ae4
Madan Puraskar Pustakalaya project.
Rahul Bhalerao 7e54ae4
Rahul Bhalerao 7e54ae4
%prep
719b9ed
%setup -c -q
719b9ed
for file in madan/license.txt; do
719b9ed
 sed "s|\r||g" $file > $file.new && \
719b9ed
 touch -r $file $file.new && \
719b9ed
 mv $file.new $file
719b9ed
done
81ac7a7
7d3c6ee
cp -p %{SOURCE2} %{SOURCE3} .
81ac7a7
7d3c6ee
chmod 755 ttf2sfd.pe sfd2ttf.pe
7d3c6ee
./ttf2sfd.pe madan/*.ttf
7d3c6ee
rm -rf madan/*ttf
c1b8c50
%patch0 -p0 -b .added-u0970-character
7d3c6ee
./sfd2ttf.pe madan/*.sfd
719b9ed
Rahul Bhalerao 7e54ae4
Rahul Bhalerao 7e54ae4
%build
Rahul Bhalerao 7e54ae4
echo "Nothing to do in Build."
Rahul Bhalerao 7e54ae4
Rahul Bhalerao 7e54ae4
%install
719b9ed
install -m 0755 -d %{buildroot}%{_fontdir}
719b9ed
install -m 0644 -p %{fontname}/*.ttf %{buildroot}%{_fontdir}
719b9ed
719b9ed
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
719b9ed
                   %{buildroot}%{_fontconfig_confdir}
719b9ed
719b9ed
install -m 0644 -p %{SOURCE1} \
719b9ed
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
719b9ed
ln -s %{_fontconfig_templatedir}/%{fontconf} \
719b9ed
      %{buildroot}%{_fontconfig_confdir}/%{fontconf}
Rahul Bhalerao 7e54ae4
766452c
# Add AppStream metadata
766452c
install -Dm 0644 -p %{SOURCE4} \
766452c
        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
766452c
719b9ed
%_font_pkg -f %{fontconf} *.ttf
719b9ed
%doc %{fontname}/license.txt
766452c
%{_datadir}/appdata/%{fontname}.metainfo.xml
Rahul Bhalerao 7e54ae4
Rahul Bhalerao 7e54ae4
%changelog
d5957a1
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.000-19
d5957a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d5957a1
0b02a10
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.000-18
0b02a10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0b02a10
e3ea97b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.000-17
e3ea97b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e3ea97b
47cd7b7
* Fri Jul 03 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.000-16
47cd7b7
- Rebase patch0 against fontforge2 build (Thanks PravinS)
47cd7b7
d3ab780
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.000-15
d3ab780
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d3ab780
c1b8c50
* Wed Oct 22 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.000-14
c1b8c50
- Rebase patch0 against fontforge2 build
c1b8c50
766452c
* Thu Oct 16 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.000-13
766452c
- Add metainfo file to show this font in gnome-software
766452c
f80f992
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.000-12
f80f992
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f80f992
b40e931
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.000-11
b40e931
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b40e931
50df206
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.000-10
50df206
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
50df206
81ac7a7
* Mon Nov 26 2012 Parag <pnemade AT redhat DOT com> - 2.000-9
81ac7a7
- Resolves:rh#880037 - Update Source URL in spec file
81ac7a7
7d3c6ee
* Fri Aug 03 2012 Parag <pnemade AT redhat DOT com> - 2.000-8
7d3c6ee
- Resolves: rh#842965, added character u0970
7d3c6ee
- Enabled autohint in fontconf file
7d3c6ee
38231c6
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.000-7
38231c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
38231c6
844d144
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.000-6
844d144
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
844d144
0fd03d6
* Mon Nov 28 2011 Parag <pnemade AT redhat DOT com> - 2.000-5
0fd03d6
- Rebuild for rh#757105 - no font(:lang=blahblah) generated for Provides
0fd03d6
6a69cb7
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.000-4
6a69cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6a69cb7
e6a2ffd
* Tue May 18 2010 Parag <pnemade AT redhat.com> - 2.000-3
e6a2ffd
- Resolves: rh#586765 - Rename 65-madan.conf to 65-0-madan.conf    
e6a2ffd
719b9ed
* Tue Apr 20 2010 Parag <pnemade AT redhat.com> - 2.000-2
719b9ed
- Resolves: rh#578041-lang-specific overrides rule doesn't work as expected
719b9ed
719b9ed
* Tue Feb 23 2010 Parag <pnemade AT redhat.com> - 2.000-1
719b9ed
- Update to next upstream release
719b9ed
- Resolves: rh#335851-[ne_NP] Add license text file to madan-fonts package
719b9ed
- Resolves: rh#520047-[ne_NP] Need fontconfig rules for Madan font
719b9ed
b3fb218
* Tue Aug 11 2009 Parag <pnemade@redhat.com> - 1.0-11
b3fb218
- Fix source audit 2009-08-10
b3fb218
2e1cc24
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-10
2e1cc24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2e1cc24
3ba4a18
* Wed Jul 08 2009 Pravin Satpute <psatpute@redhat.com> - 1.0-9
3ba4a18
- updated spec as per new packaging guideline
3ba4a18
762f820
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-8
762f820
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
762f820
ffc80e7
* Thu Aug  7 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-7
ffc80e7
- fix license tag
ffc80e7
Rahul Bhalerao 7e54ae4
* Mon Oct 15 2007 Rahul Bhalerao <rbhalera@redhat.com> - 1.0-6.fc8
Rahul Bhalerao 7e54ae4
- Spec update as per review
Rahul Bhalerao 7e54ae4
Rahul Bhalerao 7e54ae4
* Thu Oct 11 2007 Rahul Bhalerao <rbhalera@redhat.com> - 1.0-5.fc8
Rahul Bhalerao 7e54ae4
- Spec update as per reveiw
Rahul Bhalerao 7e54ae4
Rahul Bhalerao 7e54ae4
* Wed Sep 26 2007 Rahul Bhalerao <rbhalera@redhat.com> - 1.0-4.fc8
Rahul Bhalerao 7e54ae4
- Spec update as per review
Rahul Bhalerao 7e54ae4
Rahul Bhalerao 7e54ae4
* Fri Sep 21 2007 Rahul Bhalerao <rbahlera@redhat.com> - 1.0-3.fc8
Rahul Bhalerao 7e54ae4
- Added LICENSE as Source1
Rahul Bhalerao 7e54ae4
Rahul Bhalerao 7e54ae4
* Thu Sep 20 2007 Rahul Bhalerao <rbhalera@redhat.com> - 1.0-2.fc8
Rahul Bhalerao 7e54ae4
- Removed use of tarball and ghost files
Rahul Bhalerao 7e54ae4
Rahul Bhalerao 7e54ae4
* Thu Sep 13 2007 Rahul Bhalerao <rbhalera@redhat.com> - 1.0-1.fc8
Rahul Bhalerao 7e54ae4
- Initial packaging