3509f7
%global fontname gnu-free
3509f7
%global fontconf 69-%{fontname}
3509f7
3509f7
Name:      %{fontname}-fonts
3509f7
Version:   20120503
7afe18
Release:   18%{?dist}.0.1
3509f7
Summary:   Free UCS Outline Fonts
3509f7
3509f7
# Standard font exception
3509f7
License:   GPLv3+ with exceptions
3509f7
URL:       http://www.gnu.org/software/freefont/ 
3509f7
Source0:   http://ftp.gnu.org/gnu/freefont/freefont-src-%{version}.tar.gz
3509f7
Source2:   %{fontconf}-mono.conf
3509f7
Source3:   %{fontconf}-sans.conf
3509f7
Source4:   %{fontconf}-serif.conf
3509f7
Source5:   %{fontname}.metainfo.xml
3509f7
Source6:   %{fontname}-mono.metainfo.xml
3509f7
Source7:   %{fontname}-sans.metainfo.xml
3509f7
Source8:   %{fontname}-serif.metainfo.xml
3509f7
3509f7
Patch0:    gnu-free-fonts-devanagari-rendering.patch
3509f7
3509f7
BuildArch: noarch
3509f7
BuildRequires: fontpackages-devel fontforge
3509f7
# following is needed as we are calling /usr/bin/2to3
3509f7
BuildRequires: /usr/bin/2to3
3509f7
3509f7
%global common_desc \
3509f7
Gnu FreeFont is a free family of scalable outline fonts, suitable for general \
3509f7
use on computers and for desktop publishing. It is Unicode-encoded for \
3509f7
compatibility with all modern operating systems. \
3509f7
 \
3509f7
Besides a full set of characters for writing systems based on the Latin \
3509f7
alphabet, FreeFont contains large selection of characters from other writing \
3509f7
systems some of which are hard to find elsewhere. \
3509f7
 \
3509f7
FreeFont also contains a large set of symbol characters, both technical and \
3509f7
decorative. We are especially pleased with the Mathematical Operators range, \
3509f7
with which most of the glyphs used in LaTeX can be displayed.
3509f7
3509f7
%description
3509f7
%common_desc
3509f7
3509f7
3509f7
%package common
3509f7
Summary:  Common files for freefont (documentation…)
3509f7
Requires: fontpackages-filesystem
3509f7
Obsoletes: gnu-free-fonts-compat < 20120503
3509f7
3509f7
%description common
3509f7
%common_desc
3509f7
3509f7
This package consists of files used by other %{name} packages.
3509f7
3509f7
3509f7
%package -n %{fontname}-mono-fonts
3509f7
Summary:  GNU FreeFont Monospaced Font
3509f7
Requires: %{name}-common = %{version}-%{release}
3509f7
3509f7
%description -n %{fontname}-mono-fonts
3509f7
%common_desc
3509f7
3509f7
This package contains the GNU FreeFont monospaced font.
3509f7
3509f7
3509f7
%package -n %{fontname}-sans-fonts
3509f7
Summary:  GNU FreeFont Sans-Serif Font
3509f7
Requires: %{name}-common = %{version}-%{release}
3509f7
3509f7
%description -n %{fontname}-sans-fonts
3509f7
%common_desc
3509f7
3509f7
This package contains the GNU FreeFont sans-serif font.
3509f7
3509f7
3509f7
%package -n %{fontname}-serif-fonts
3509f7
Summary:  GNU FreeFont Serif Font
3509f7
Requires: %{name}-common = %{version}-%{release}
3509f7
3509f7
%description -n %{fontname}-serif-fonts
3509f7
%common_desc
3509f7
3509f7
This package contains the GNU FreeFont serif font.
3509f7
3509f7
3509f7
%prep
3509f7
%setup -qn freefont-%{version}
3509f7
3509f7
%patch0 -p1 -b .devanagari
3509f7
3509f7
# move build scripts to python3 compatible code
3509f7
pushd tools
3509f7
pushd generate
3509f7
# Following for loop should not be used on pyc files
3509f7
# better remove pre-compiled buildutils.pyc file
3509f7
rm *.pyc
3509f7
for item in `ls`;do
3509f7
   2to3 -w $item
3509f7
done
3509f7
popd
3509f7
popd
3509f7
3509f7
%build
3509f7
make
3509f7
3509f7
%install
3509f7
pushd sfd
3509f7
install -m 0755 -d %{buildroot}%{_fontdir}
3509f7
install -p -m 644 *.ttf  %{buildroot}%{_fontdir}
3509f7
3509f7
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
3509f7
                   %{buildroot}%{_fontconfig_confdir}
3509f7
3509f7
install -m 0644 -p %{SOURCE2} \
3509f7
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-mono.conf
3509f7
3509f7
install -m 0644 -p %{SOURCE3} \
3509f7
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-sans.conf
3509f7
3509f7
install -m 0644 -p %{SOURCE4} \
3509f7
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-serif.conf
3509f7
3509f7
3509f7
for fconf in %{fontconf}-mono.conf \
3509f7
                %{fontconf}-sans.conf \
3509f7
                %{fontconf}-serif.conf ; do
3509f7
  ln -s %{_fontconfig_templatedir}/$fconf \
3509f7
        %{buildroot}%{_fontconfig_confdir}/$fconf
3509f7
done
3509f7
3509f7
# Add AppStream metadata
3509f7
install -Dm 0644 -p %{SOURCE5} \
3509f7
        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
3509f7
install -Dm 0644 -p %{SOURCE6} \
3509f7
        %{buildroot}%{_datadir}/appdata/%{fontname}-mono.metainfo.xml
3509f7
install -Dm 0644 -p %{SOURCE7} \
3509f7
        %{buildroot}%{_datadir}/appdata/%{fontname}-sans.metainfo.xml
3509f7
install -Dm 0644 -p %{SOURCE8} \
3509f7
        %{buildroot}%{_datadir}/appdata/%{fontname}-serif.metainfo.xml
3509f7
3509f7
%_font_pkg -n mono -f %{fontconf}-mono.conf FreeMono*.ttf
3509f7
%{_datadir}/appdata/%{fontname}-mono.metainfo.xml
3509f7
%_font_pkg -n sans -f %{fontconf}-sans.conf FreeSans*.ttf
3509f7
%{_datadir}/appdata/%{fontname}-sans.metainfo.xml
3509f7
%_font_pkg -n serif -f %{fontconf}-serif.conf FreeSerif*.ttf
3509f7
%{_datadir}/appdata/%{fontname}-serif.metainfo.xml
3509f7
3509f7
%files common
3509f7
%doc AUTHORS ChangeLog CREDITS README
3509f7
%license COPYING
3509f7
%{_datadir}/appdata/%{fontname}.metainfo.xml
3509f7
3509f7
%changelog
3509f7
* Wed May 02 2018 Gwyn Ciesla <limburgher@gmail.com> - 20120503-18
3509f7
- BR fix.
3509f7
3509f7
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20120503-17
3509f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3509f7
3509f7
* Fri Nov 03 2017 Karsten Hopp <karsten@redhat.com> - 20120503-16
3509f7
- 2to3 moved to python3-tools
3509f7
3509f7
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20120503-15
3509f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3509f7
3509f7
* Thu Mar 09 2017 Parag Nemade <pnemade AT redhat DOT com> - 20120503-14
3509f7
- Use 2to3 tool to make build scripts compatible with python3
3509f7
3509f7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20120503-13
3509f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3509f7
3509f7
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 20120503-12
3509f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3509f7
3509f7
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120503-11
3509f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3509f7
3509f7
* Thu Nov 06 2014 Parag Nemade <pnemade AT redhat DOT com> - 20120503-10
3509f7
- Add metainfo file to show this font in gnome-software
3509f7
- Remove %%clean section which is optional now
3509f7
- Remove buildroot which is optional now
3509f7
- Remove removal of buildroot in %%install
3509f7
- Remove %%defattr
3509f7
- Remove group tag
3509f7
3509f7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120503-9
3509f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3509f7
3509f7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120503-8
3509f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3509f7
3509f7
* Mon Jun 24 2013 Jon Ciesla <limburgher@gmail.com> 20120503-7
3509f7
- Patch for devanagari rendering, BZ 961298.
3509f7
3509f7
* Wed May 15 2013 Jon Ciesla <limburgher@gmail.com> 20120503-6
3509f7
- Additional Indic rendering fix, BZ 871252.
3509f7
3509f7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20120503-5
3509f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3509f7
3509f7
* Fri Jan 11 2013 Jon Ciesla <limburgher@gmail.com> 20120503-4
3509f7
- Fix Indic rendering, BZ 871252.
3509f7
3509f7
* Tue Nov 06 2012 Jens Petersen <petersen@redhat.com> - 20120503-3
3509f7
- Update source url and license tag, BZ 873508.
3509f7
3509f7
* Tue Oct 23 2012 Jon Ciesla <limburgher@gmail.com> 20120503-2
3509f7
- Drop fontconfig priority to 69, BZ 869224.
3509f7
3509f7
* Fri Sep 28 2012 Jon Ciesla <limburgher@gmail.com> 20120503-1
3509f7
- New upstream.
3509f7
- Dropped compat package.
3509f7
3509f7
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20100919-6
3509f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3509f7
3509f7
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20100919-5
3509f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3509f7
3509f7
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20100919-4
3509f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3509f7
3509f7
* Thu Dec 30 2010 Jon Ciesla <limb@jcomserv.net> 20100919-3
3509f7
- Fixed URL.
3509f7
3509f7
* Sun Dec 12 2010 Jon Ciesla <limb@jcomserv.net> 20100919-2
3509f7
- Fixed license tag, URL, BZ 644992.
3509f7
3509f7
* Tue Oct 05 2010 Jon Ciesla <limb@jcomserv.net> 20100919-1
3509f7
- New upstream.
3509f7
3509f7
* Tue Aug 10 2010 Jon Ciesla <limb@jcomserv.net> 20090104-12
3509f7
- Moved priority from 60 to 67, BZ 621498.
3509f7
3509f7
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20090104-11
3509f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3509f7
3509f7
* Mon Mar 23 2009 Jon Ciesla <limb@jcomserv.net> 20090104-10
3509f7
- Moved closer to template in effort to correct symlinks.
3509f7
3509f7
* Fri Mar 20 2009 Jon Ciesla <limb@jcomserv.net> 20090104-9
3509f7
- Fixed compat requires.
3509f7
- Fixed symlinks.
3509f7
3509f7
* Wed Mar 18 2009 Jon Ciesla <limb@jcomserv.net> 20090104-8
3509f7
- Changed fontname, fixed symlinks, typos.
3509f7
3509f7
* Mon Mar 09 2009 Jon Ciesla <limb@jcomserv.net> 20090104-7
3509f7
- Tidied Requires and Obsoletes.
3509f7
3509f7
* Thu Mar 05 2009 Jon Ciesla <limb@jcomserv.net> 20090104-6
3509f7
- Converted last define to global.
3509f7
- Dropped -common group declaration.
3509f7
- Dropped free from package names.
3509f7
- Dropped unneccessary requires and obsoletes.
3509f7
- Dropped fontdir from -common.
3509f7
- Fixed conf install and names.
3509f7
3509f7
* Thu Mar 05 2009 Jon Ciesla <limb@jcomserv.net> 20090104-5
3509f7
- Added -lang=ff to build script.
3509f7
3509f7
* Thu Mar 05 2009 Jon Ciesla <limb@jcomserv.net> 20090104-4
3509f7
- Changed define to global.
3509f7
- Dropped main package, created compat package.
3509f7
- Dropped freefont-ttf Obsoletes.
3509f7
- Fixed subpackage requires.
3509f7
- Dropped subpackage Groups.
3509f7
- Fixed font_pkg syntax.
3509f7
- Buildrequire fontforge.
3509f7
- Added fontconfig rules.
3509f7
- Minor spec order corrections.
3509f7
3509f7
* Tue Feb 17 2009 Jon Ciesla <limb@jcomserv.net> 20090104-3
3509f7
- For BZ 477336:
3509f7
- Renamed from freefont to gnu-free-fonts.
3509f7
- Build from sfd now.
3509f7
- Removed Requires for fontconfig.
3509f7
- Drop old Provides.
3509f7
3509f7
* Mon Feb 09 2009 Jon Ciesla <limb@jcomserv.net> 20090104-2
3509f7
- Implemented font_pkg.
3509f7
- Corrected subpackage names.
3509f7
3509f7
* Mon Jan 12 2009 Orion Poplawski <orion@cora.nwra.com> 20090104-1
3509f7
- update to 20090104
3509f7
- conform to font package guidelines
3509f7
3509f7
* Fri Jul 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> 20080323-1
3509f7
- fix license tag
3509f7
- update to 20080323
3509f7
3509f7
* Fri Jan  5 2007 Orion Poplawski <orion@cora.nwra.com> 20060126-4
3509f7
- Require fontconfig, not /usr/share/fonts
3509f7
3509f7
* Tue Oct 31 2006 Orion Poplawski <orion@cora.nwra.com> 20060126-3
3509f7
- BOO!
3509f7
- Make Provides/Osoletes versioned
3509f7
- Make setup quiet
3509f7
3509f7
* Wed Oct 25 2006 Orion Poplawski <orion@cora.nwra.com> 20060126-2
3509f7
- Remove fonts.cache refs
3509f7
- fc-cache /usr/share/fonts/freefont
3509f7
3509f7
* Thu Oct 12 2006 Orion Poplawski <orion@cora.nwra.com> 20060126-1
3509f7
- freefont-ttf-20060126
3509f7
3509f7
* Tue Dec 06 2005 Rex Dieter 20051206-1
3509f7
- freefont-ttf-20051206