cchance 39f9b2f
%define fontname liberation
cchance 39f9b2f
%define archivename %{name}-%{version}
cchance 39f9b2f
%define common_desc \
cchance 39f9b2f
The Liberation Fonts are intended to be replacements for the three most \
cchance 39f9b2f
commonly used fonts on Microsoft systems: Times New Roman, Arial, and Courier \
cchance 39f9b2f
New.
cchance 39f9b2f
c8af942
%define catalogue %{_sysconfdir}/X11/fontpath.d
c8af942
cchance 39f9b2f
Name:             %{fontname}-fonts
cchance 39f9b2f
Summary:          Fonts to replace commonly used Microsoft Windows fonts
850b56d
Version:          1.07.2
89c5169
Release:          6%{?dist}
ddee18e
# The license of the Liberation Fonts is a EULA that contains GPLv2 and two
cchance 39f9b2f
# exceptions:
90605f0
# The first exception is the standard FSF font exception.
ddee18e
# The second exception is an anti-lockdown clause somewhat like the one in
cchance 39f9b2f
# GPLv3. This license is Free, but GPLv2 and GPLv3 incompatible.
cchance 39f9b2f
License:          Liberation
cchance 39f9b2f
Group:            User Interface/X
d5711dc
URL:              http://fedorahosted.org/liberation-fonts/
प्रविण सातपुते 2c97ca3
Source0:          https://fedorahosted.org/releases/l/i/liberation-fonts/%{archivename}.tar.gz
प्रविण सातपुते 2c97ca3
Source1:          generate.pe
cchance 39f9b2f
BuildRoot:        %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
cchance 39f9b2f
BuildArch:        noarch
cchance 1663055
BuildRequires:    fontpackages-devel >= 1.13, xorg-x11-font-utils
cchance 2bfa9bf
BuildRequires:    fontforge >= 20090408
2a08ceb
Patch1: bug-715309.patch
d195155
Patch2: bug-714191.patch
89c5169
Patch3: bug-835182.patch
022ac32
022ac32
%description
cchance 39f9b2f
%common_desc
cchance 39f9b2f
0b68002
Meta-package of Liberation fonts which installs Sans, Serif, and Monospace,
0b68002
Narrow families.
cchance 280101e
cchance a5837ec
%package -n %{fontname}-fonts-common
cchance 94965d8
Summary:          Shared common files of Liberation font families
cchance 39f9b2f
Group:            User Interface/X
cchance 76018e6
Requires:         fontpackages-filesystem >= 1.13
cchance b4d6061
Obsoletes:        liberation-fonts < 1.04.93-7
cchance b4d6061
Obsoletes:        liberation-fonts-compat <= 1.05.1.20090630
cchance 39f9b2f
cchance a5837ec
%description -n %{fontname}-fonts-common
cchance 39f9b2f
%common_desc
cchance 39f9b2f
cchance 39f9b2f
Shared common files of Liberation font families.
cchance 39f9b2f
cchance a5837ec
%files -n %{fontname}-fonts-common
f70606c
%defattr(-,root,root,-)
0b68002
%doc AUTHORS ChangeLog COPYING License.txt README TODO
cchance 76018e6
%dir %{_fontdir}
cchance 76018e6
%verify(not md5 size mtime) %{_fontdir}/fonts.dir
cchance 76018e6
%verify(not md5 size mtime) %{_fontdir}/fonts.scale
cchance 76018e6
%{catalogue}/%{name}
cchance 76018e6
cchance c2dacfa
%package -n %{fontname}-sans-fonts
cchance a5837ec
Summary:      Sans-serif fonts to replace commonly used Microsoft Arial
cchance c2dacfa
Group:        User Interface/X
167a0a1
Requires:     %{fontname}-fonts-common = %{version}-%{release}
cchance c2dacfa
cchance c2dacfa
%description -n %{fontname}-sans-fonts
cchance c2dacfa
%common_desc
cchance c2dacfa
cchance a5837ec
This is Sans-serif TrueType fonts that replaced commonly used Microsoft Arial.
cchance c2dacfa
प्रविण सातपुते d745dc0
%_font_pkg -n sans LiberationSans-*.ttf
cchance c2dacfa
cchance c2dacfa
%package -n %{fontname}-serif-fonts
cchance a5837ec
Summary:      Serif fonts to replace commonly used Microsoft Times New Roman
cchance c2dacfa
Group:        User Interface/X
167a0a1
Requires:     %{fontname}-fonts-common = %{version}-%{release}
cchance c2dacfa
cchance c2dacfa
%description -n %{fontname}-serif-fonts
cchance c2dacfa
%common_desc
cchance c2dacfa
cchance a5837ec
This is Serif TrueType fonts that replaced commonly used Microsoft Times New \
cchance a5837ec
Roman.
cchance c2dacfa
प्रविण सातपुते 2c97ca3
%_font_pkg -n serif LiberationSerif*.ttf
cchance c2dacfa
cchance c2dacfa
%package -n %{fontname}-mono-fonts
cchance c2dacfa
Summary:      Monospace fonts to replace commonly used Microsoft Courier New
cchance c2dacfa
Group:        User Interface/X
167a0a1
Requires:     %{fontname}-fonts-common = %{version}-%{release}
cchance c2dacfa
cchance c2dacfa
%description -n %{fontname}-mono-fonts
cchance c2dacfa
%common_desc
cchance c2dacfa
cchance c2dacfa
This is Monospace TrueType fonts that replaced commonly used Microsoft Courier \
cchance c2dacfa
New.
cchance c2dacfa
प्रविण सातपुते 2c97ca3
%_font_pkg -n mono LiberationMono*.ttf
022ac32
f70606c
%package -n %{fontname}-narrow-fonts
f70606c
Summary:      Sans-serif Narrow fonts to replace commonly used Microsoft Arial Narrow
f70606c
Group:        User Interface/X
f70606c
Requires:     %{fontname}-fonts-common = %{version}-%{release}
f70606c
f70606c
%description -n %{fontname}-narrow-fonts
f70606c
%common_desc
f70606c
0b68002
This is Sans-Serif Narrow TrueType fonts that replaced commonly used Microsoft \
0b68002
Arial Narrow.
f70606c
प्रविण सातपुते 2c97ca3
%_font_pkg -n narrow LiberationSansNarrow*.ttf
f70606c
022ac32
%prep
प्रविण सातपुते 2c97ca3
%setup -q -n %{archivename}
प्रविण सातपुते 2c97ca3
rm -rf scripts
प्रविण सातपुते 2c97ca3
mv src/* .
प्रविण सातपुते 2c97ca3
rm -rf src
प्रविण सातपुते 2c97ca3
cp %{SOURCE1} .
प्रविण सातपुते 2c97ca3
chmod 755 generate.pe
2a08ceb
%patch1 -p1 -b .1-resolved-u-hinting-bug
प्रविण सातपुते 1e486ae
%patch2 -p1 -b .2-removed-kerning-for-11-pair
89c5169
%patch3 -p1 -b .3-updated-patch-for-fix-u040D
022ac32
022ac32
%build
प्रविण सातपुते 2c97ca3
./generate.pe *.sfd
प्रविण सातपुते d745dc0
mv LiberationMono.ttf LiberationMono-Regular.ttf
प्रविण सातपुते d745dc0
mv LiberationSerif.ttf LiberationSerif-Regular.ttf
प्रविण सातपुते d745dc0
mv LiberationSans.ttf LiberationSans-Regular.ttf
प्रविण सातपुते 2c97ca3
022ac32
022ac32
%install
cchance 94965d8
%__rm -rf %{buildroot}
cchance 76018e6
# fonts .ttf
cchance 76018e6
install -m 0755 -d %{buildroot}%{_fontdir}
f70606c
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
cchance c6cfccb
# catalogue
cchance a5837ec
install -m 0755 -d %{buildroot}%{catalogue}
cchance db343b3
%__ln_s %{_fontdir} %{buildroot}%{catalogue}/%{name}
cchance 76018e6
# fonts.{dir,scale}
cchance 76018e6
mkfontdir %{buildroot}%{_fontdir}
cchance 76018e6
mkfontscale %{buildroot}%{_fontdir}
022ac32
cchance c2dacfa
%clean
cchance 94965d8
%__rm -rf %{buildroot}
cchance c2dacfa
022ac32
%changelog
89c5169
* Tue Jun 26 2012 Pravin Satpute <psatpute@redhat.com> - 1.07.2-6
89c5169
- Resolves bug 835182
89c5169
09dce48
* Tue Jun 26 2012 Pravin Satpute <psatpute@redhat.com> - 1.07.2-5
09dce48
- Resolves bug 835182
09dce48
प्रविण सातपुते 1e486ae
* Thu May 10 2012 Pravin Satpute <psatpute@redhat.com> - 1.07.2-4
प्रविण सातपुते 1e486ae
- Resolves bug 799384
प्रविण सातपुते 1e486ae
d195155
* Sat Feb 18 2012 Pravin Satpute <psatpute@redhat.com> - 1.07.2-3
d195155
- Resolved bug 714191
d195155
2a08ceb
* Mon Feb 13 2012 Pravin Satpute <psatpute@redhat.com> - 1.07.2-2
प्रविण सातपुते 1e486ae
- Resolved #715309
2a08ceb
850b56d
* Thu Feb 09 2012 Pravin Satpute <psatpute@redhat.com> - 1.07.2-1
850b56d
- Upstream release 1.07.2
850b56d
daef2ce
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07.1-4
daef2ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
daef2ce
ca34840
* Wed Dec 21 2011 Pravin Satpute <psatpute@redhat.com> - 1.07.1-3
ca34840
- Resolved bug 753572, removed hint of cent sign
ca34840
36c3cef
* Fri Oct 14 2011 Pravin Satpute <psatpute@redhat.com> - 1.07.1-2
36c3cef
- Resolved bug 657849, added support in Sans and Serif
36c3cef
110b6e3
* Wed Sep 21 2011 Pravin Satpute <psatpute@redhat.com> - 1.07.1-1
110b6e3
- Upstream Release 1.07.1
110b6e3
- Resolved bug 738264, 729989
110b6e3
143758a
* Mon May 30 2011 Pravin Satpute <psatpute@redhat.com> - 1.07.0-1
143758a
- Upstream Release 1.07.0
143758a
- Resolved bug 659214, 708330, 707973 
143758a
3edce21
* Thu Feb 24 2011 Pravin Satpute <psatpute@redhat.com> - 1.06.0.20100721-5
3edce21
- bug 659214: added bulgarian characters
3edce21
16ed7f9
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.06.0.20100721-4
16ed7f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
16ed7f9
प्रविण सातपुते d745dc0
* Wed Oct 13 2010 Pravin Satpute <psatpute@redhat.com> - 1.06.0.20100721-3
प्रविण सातपुते d745dc0
- bug 642493: use consistent ttf names
प्रविण सातपुते d745dc0
प्रविण सातपुते 2c97ca3
* Tue Oct 12 2010 Pravin Satpute <psatpute@redhat.com> - 1.06.0.20100721-2
प्रविण सातपुते 2c97ca3
- Building from sources
प्रविण सातपुते 2c97ca3
- Applying Monospace font patch bug 620273
प्रविण सातपुते 2c97ca3
0b68002
* Thu Jul 22 2010 Pravin Satpute <psatpute@redhat.com> - 1.06.0.20100721-1
0b68002
- Upstream New Release
0b68002
- Added New Family Narrow
0b68002
b2852a2
* Wed Jun 16 2010 Caius 'kaio' Chance <cchance@redhat.com> - 1.05.3.20100510-2
b2852a2
- Updated Source URL to FedoraHosted and repackaged.
b2852a2
d5711dc
* Mon May 10 2010 Caius 'kaio' Chance <me at kaio.net> - 1.05.3.20100510-1
d5711dc
- Updated from upstream.
d5711dc
- Fixed correct Romanian glyphs in Liberation Fonts. (rhbz#440992)
d5711dc
bc4bb2c
* Fri May 07 2010 Caius 'kaio' Chance <me at kaio.net> - 1.05.3.20100506-2
bd88c38
- Updated package URL and source URL.
bd88c38
f627344
* Thu May 06 2010 Caius 'kaio' Chance <me at kaio.net> - 1.05.3.20100506-1
daaaf19
- Updated from upstream.
daaaf19
- Cleaned up points and auto-instructed hinting of 'u', 'v', 'w', 'y'.
daaaf19
(rhbz#463036)
daaaf19
890240f
* Wed May 05 2010 Caius 'kaio' Chance <k at kaio.net> - 1.05.3.20100505-2
890240f
- Made 0x00A2 cent sign be coressed in Sans Narrow.
890240f
81fbb7b
* Wed May 05 2010 Caius 'kaio' Chance <k at kaio.net> - 1.05.3.20100505-1
81fbb7b
- Updated from upstream.
81fbb7b
- Resolves: rhbz#474522 - Incorrect cent sign glyph (U+00A2) in Sans and Mono style in Liberation fonts.
81fbb7b
c7cf18d
* Wed Apr 28 2010 Caius 'kaio' Chance <k at kaio.net> - 1.05.3.20100428-1
c7cf18d
- rhbz#510174: Corrected version number of all SFD files.
c7cf18d
- Corrected license exceptions to GPLv2.
c7cf18d
- Updated README file.
c7cf18d
f70606c
* Tue Apr 27 2010 Caius 'kaio' Chance <k at kaio.net> - 1.05.3.20100427-1
f70606c
- Updated source from upstream.
f70606c
- Introduced Sans Narrow by upstream.
f70606c
cchance 7af06a5
* Wed Jan 13 2010 Caius 'kaio' Chance <k at kaio.me> - 1.05.2.20091019-5.fc13
cchance 7af06a5
- Removed 'Provides liberation-fonts and liberation-fonts-compat by
cchance 7af06a5
  liberation-fonts-common.'
cchance 7af06a5
cchance db343b3
* Tue Jan 12 2010 Caius 'kaio' Chance <k at kaio.me> - 1.05.2.20091019-4.fc13
cchance db343b3
- Rebuilt w/ macro fixes.
cchance db343b3
cchance 94965d8
* Tue Jan 12 2010 Caius 'kaio' Chance <k at kaio.me> - 1.05.2.20091019-3.fc13
cchance 94965d8
- Removed full stop in Summary.
cchance 94965d8
- Set default file permission in files.
cchance 94965d8
- Provides liberation-fonts and liberation-fonts-compat by 
cchance 94965d8
  liberation-fonts-common.
cchance 94965d8
- Macro as much as possible in .spec.
cchance 94965d8
cchance c0dd19d
* Mon Oct 19 2009 Caius 'kaio' Chance <k at kaio.me> - 1.05.2.20091019-2.fc13
cchance c0dd19d
- Rebuilt.
cchance c0dd19d
cchance c0dd19d
* Mon Oct 19 2009 Caius 'kaio' Chance <k at kaio.me> - 1.05.2.20091019-1.fc13
cchance 80a8c27
- Resolves: rhbz#525498 - wrongly encoded glyphs after U+10000.
cchance 80a8c27
71e1aee
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.05.1.20090721-2
71e1aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
71e1aee
cchance 5c4929f
* Tue Jul 21 2009 Caius 'kaio' Chance <k at kaio.me> - 1.05.1.20090721-1.fc12
cchance 5c4929f
- Fixed fontforge scripting of sfd -> ttf generation.
cchance 5c4929f
- Checked existance of traditionat kern table in Sans and Serif.
cchance 5c4929f
cchance 2bfa9bf
* Tue Jul 14 2009 Caius 'kaio' Chance <k at kaio.me> - 1.05.1.20090713-2.fc12
cchance 2bfa9bf
- Required fontforge ver 20090408 which supports generation with traditional
cchance 2bfa9bf
  kern table. (rhbz#503430)
cchance 2bfa9bf
cchance 9b717e7
* Mon Jul 13 2009 Caius 'kaio' Chance <k at kaio.me> - 1.05.1.20090713-1.fc12
cchance 9b717e7
- Updated to upstream 1.05.1.20090713.
cchance 9b717e7
- Generate TTFs with traditional kern table via fontforge scripts. (rh#503430)
cchance 9b717e7
cchance e7bff27
* Mon Jul 06 2009 Caius 'kaio' Chance <k at kaio.me> - 1.05.1.20090706-1.fc12
cchance e7bff27
- Updated to upstream 1.05.1.20090706.
cchance e7bff27
- Reconverted from original TTF with traditional kern table. (rh#503430)
cchance e7bff27
cchance e7bff27
* Tue Jun 30 2009 Caius 'kaio' Chance <k at kaio.me> - 1.05.1.20090630-1.fc12
cchance e7bff27
- Updated to upstream 1.05.1.20090630.
cchance e7bff27
- Reconverted from original TTF with better procedures of data conservation.
cchance e7bff27
ddee18e
* Tue May 19 2009 Jens Petersen <petersen@redhat.com> - 1.04.93-11
ddee18e
- remove redundant obsoletes, provides and conflicts from new subpackages
ddee18e
47389a5
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04.93-10
47389a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
47389a5
cchance 1663055
* Thu Feb 05 2009 Caius Chance <cchance@redhat.com> - 1.04.93-9.fc11
cchance 1663055
- Fixed inter-subpackage dependencies with reference of dejavu.
cchance 1663055
cchance 13a6f3c
* Wed Feb 04 2009 Caius Chance <cchance@redhat.com> - 1.04.93-8.fc11
cchance 13a6f3c
- Fixed inter-subpackage dependencies.
cchance 13a6f3c
cchance 03178ca
* Wed Feb 04 2009 Caius Chance <cchance@redhat.com> - 1.04.93-7.fc11
cchance 03178ca
- Create -compat subpackage as meta-package for installing all font families.
cchance 03178ca
167a0a1
* Tue Jan 20 2009 Matthias Clasen <mclasen@redhat.com> - 1.04.93-6.fc11
167a0a1
- Fix busted inter-subpackage dependencies
167a0a1
cchance a5837ec
* Tue Jan 20 2009 Caius Chance <cchance@redhat.com> - 1.04.93-5.fc11
cchance a5837ec
- Resolved: rhbz#477410
cchance a5837ec
- Refined .spec file based on Mailhot's review on rhbz.
cchance a5837ec
cchance 76018e6
* Mon Jan 19 2009 Caius Chance <cchance@redhat.com> - 1.04.93-4.fc11
cchance 76018e6
- Resolves: thbz#477410
cchance 76018e6
- Package renaming for post-1.13 fontpackages macros.
cchance 76018e6
cchance 39f9b2f
* Fri Jan 09 2009 Caius Chance <cchance@redhat.com> - 1.04.93-3.fc11
cchance 39f9b2f
- Resolves: rhbz#477410 (Convert to new font packaging guidelines.)
cchance 39f9b2f
cchance 2c56c0a
* Tue Dec 09 2008 Caius Chance <cchance@redhat.com> - 1.04.93-2.fc11
cchance 2c56c0a
- Resolves: rhbz#474522 (Cent sign is not coressed in Sans & Mono.)
cchance 2c56c0a
cchance 7af1b64
* Wed Dec 03 2008 Caius Chance <cchance@redhat.com> - 1.04.93-1.fc11
cchance 7af1b64
- Resolves: rhbz#473481
cchance 7af1b64
  (Blurriness of Greek letter m (U+03BC) in Liberation Sans Regular.)
cchance 7af1b64
cchance af2579b
* Thu Jul 17 2008 Caius Chance <cchance@redhat.com> - 1.04.90-1.fc10
cchance af2579b
- Resolves: rhbz#258592
ddee18e
  (Incorrect glyph points and missing hinting instructions for U+0079, U+03BC,
cchance af2579b
   U+0431, U+2010..2012.)
cchance af2579b
cchance 03bcbcd
* Thu Jul 17 2008 Caius Chance <cchance@redhat.com> - 1.04-1.fc10
cchance 03bcbcd
- Resolves: rhbz#455717 (Update sources to version 1.04.)
cchance 03bcbcd
- Improved .spec file.
cchance 03bcbcd
cchance bf50f7d
* Thu Jun 12 2008 Caius Chance <cchance@redhat.com> - 1.04-0.1.beta2.fc10
cchance c01b2b4
- Updated source version to 1.04.beta2.
cchance c01b2b4
- Removed License.txt and COPYING as already included in sources.
cchance c01b2b4
cchance c8836fb
* Thu Apr 10 2008 Caius Chance <cchance@redhat.com> - 1.03-1.fc9
cchance c8836fb
- Resolves: rhbz#251890 (Exchanged and incomplete glyphs.)
cchance c8836fb
- Repack source tarball and re-align source version number.
cchance c8836fb
cchance c8836fb
* Mon Mar 31 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.02-2
90605f0
- correct license tag, license explanation added
90605f0
cchance c8836fb
* Tue Mar 25 2008 Caius Chance <cchance@redhat.com> - 1.02-1.fc9
cchance cbbb22a
- Resolves: rhbz#240525 (Alignment mismatch of dot accents.)
cchance cbbb22a
cchance c8836fb
* Wed Jan 16 2008 Caius Chance <cchance@redhat.com> - 1.01-1.fc9
cchance a47860c
- Moved source tarball from cvs to separated storage.
cchance a47860c
cchance c6cfccb
* Mon Jan 14 2008 Caius Chance <cchance@redhat.com> - 1.0-1.fc9
cchance c6cfccb
- Resolves: rhbz#428596 (Liberation fonts need to be updated to latest font.)
cchance c6cfccb
cchance 35fab1f
* Wed Nov 28 2007 Caius Chance <cchance@redhat.com> - 0.2-4.fc9
cchance 35fab1f
- Resolves: rhbz#367791 (remove 59-liberation-fonts.conf)
cchance 35fab1f
c8af942
* Wed Sep 12 2007 Jens Petersen <petersen@redhat.com> - 0.2-3.fc8
c8af942
- add fontdir macro
c8af942
- create fonts.dir and fonts.scale (reported by Mark Alford, #245961)
c8af942
- add catalogue symlink
c8af942
e599139
* Wed Sep 12 2007 Jens Petersen <petersen@redhat.com> - 0.2-2.fc8
e599139
- update license field to GPLv2
e599139
cchance 209ae8e
* Thu Jun 14 2007 Caius Chance <cchance@redhat.com> 0.2-1.fc8
cchance 24e5349
- Updated new source tarball from upstream: '-3' (version 0.2).
cchance 209ae8e
8b87fc6
* Tue May 15 2007 Matthias Clasen <mclasen@redhat.com> 0.1-9
8b87fc6
- Bump revision
8b87fc6
022ac32
* Tue May 15 2007 Matthias Clasen <mclasen@redhat.com> 0.1-8
022ac32
- Change the license tag to "GPL + font exception"
022ac32
022ac32
* Mon May 14 2007 Matthias Clasen <mclasen@redhat.com> 0.1-7
ddee18e
- Correct the source url
022ac32
022ac32
* Mon May 14 2007 Matthias Clasen <mclasen@redhat.com> 0.1-6
022ac32
- Incorporate package review feedback
022ac32
022ac32
* Fri May 11 2007 Matthias Clasen <mclasen@redhat.com> 0.1-5
022ac32
- Bring the package in sync with Fedora packaging standards
022ac32
022ac32
* Wed Apr 25 2007 Meethune Bhowmick <bhowmick@redhat.com> 0.1-4
022ac32
- Require fontconfig package for post and postun
022ac32
022ac32
* Tue Apr 24 2007 Meethune Bhowmick <bhowmick@redhat.com> 0.1-3
022ac32
- Bump version to fix issue in RHEL4 RHN
022ac32
022ac32
* Thu Mar 29 2007 Richard Monk <rmonk@redhat.com> 0.1-2rhis
022ac32
- New license file
022ac32
022ac32
* Thu Mar 29 2007 Richard Monk <rmonk@redhat.com> 0.1-1rhis
022ac32
- Inital packaging