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