Blame SPECS/gnu-free-fonts.spec

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