2006-02-12 14:19:49 +00:00
|
|
|
%define archivename dejavu-sfd
|
2006-07-12 19:24:03 +00:00
|
|
|
|
2007-05-11 13:11:07 +00:00
|
|
|
#define alphatag .20070509svn1766
|
|
|
|
%define alphatag .rc1
|
2007-01-30 20:55:50 +00:00
|
|
|
# This macro has the same value as %{version}, except when testing pre-release snapshots
|
2007-05-11 13:11:07 +00:00
|
|
|
%define archiveversion 20070509-1766
|
|
|
|
#define archiveversion %{version}
|
2007-01-30 20:55:50 +00:00
|
|
|
|
2006-03-04 12:23:56 +00:00
|
|
|
%define fontdir %{_datadir}/fonts/%{name}
|
2006-06-09 23:16:05 +00:00
|
|
|
%define fontconfdir %{_sysconfdir}/fonts
|
2005-06-23 19:10:12 +00:00
|
|
|
|
2007-01-30 20:55:50 +00:00
|
|
|
# Let the perl maintainer worry about Unicode.org data files (updates, licensing…)
|
2006-07-12 19:24:03 +00:00
|
|
|
%define Blocks %(eval "$(%{__perl} -V:privlibexp)"; echo $privlibexp)/unicore/Blocks.txt
|
|
|
|
%define UnicodeData %(eval "$(%{__perl} -V:privlibexp)"; echo $privlibexp)/unicore/UnicodeData.txt
|
2006-02-12 14:19:49 +00:00
|
|
|
|
2005-06-23 19:10:12 +00:00
|
|
|
Name: dejavu-fonts
|
2007-05-11 13:11:07 +00:00
|
|
|
Version: 2.17
|
2007-05-11 13:49:55 +00:00
|
|
|
Release: 0.3%{?alphatag}%{?dist}
|
2006-03-22 23:10:27 +00:00
|
|
|
Summary: DejaVu fonts
|
2005-06-23 19:10:12 +00:00
|
|
|
Group: User Interface/X
|
|
|
|
License: Redistributable, with restrictions
|
|
|
|
URL: http://dejavu.sf.net/
|
2007-05-11 13:11:07 +00:00
|
|
|
Source0: http://dejavu.sourceforge.net/%{?alphatag:snapshots/}%{archivename}-%{archiveversion}.tar.bz2
|
2006-06-14 21:13:20 +00:00
|
|
|
# DejaVu fontconfig setup
|
2006-07-30 20:22:26 +00:00
|
|
|
Source1: %{name}-fontconfig.conf
|
2007-05-11 13:49:55 +00:00
|
|
|
Source2: %{name}-fontconfig-unhint-small.conf
|
2006-07-12 19:24:03 +00:00
|
|
|
# DejaVu fontconfig setup (experimental families)
|
2007-05-11 13:49:55 +00:00
|
|
|
Source3: %{name}-experimental-fontconfig.conf
|
|
|
|
Source4: %{name}-experimental-fontconfig-unhint-small.conf
|
2005-06-23 19:10:12 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2006-10-22 17:56:48 +00:00
|
|
|
BuildRequires: fontforge >= 20061019-1
|
2006-02-12 14:19:49 +00:00
|
|
|
# The CPAN sources do not declare perl(Font::TTF)
|
|
|
|
BuildRequires: perl-Font-TTF
|
|
|
|
# Needed to compute unicode coverage
|
|
|
|
BuildRequires: %{Blocks} %{UnicodeData}
|
2006-06-11 11:18:55 +00:00
|
|
|
# If we add this the package will require fontconfig
|
|
|
|
# Requires: %{fontconfdir}/conf.d
|
2005-06-23 19:10:12 +00:00
|
|
|
BuildArch: noarch
|
2006-12-17 18:49:23 +00:00
|
|
|
|
|
|
|
# We do not want font packages to depend on fontconfig
|
|
|
|
# However these packages do install configuration files in
|
|
|
|
# %{_sysconfdir}/fonts; also they rely on the current release fontconfig cache
|
2007-01-17 20:39:08 +00:00
|
|
|
# handling style, if fontconfig is available on the system.
|
2006-12-17 18:49:23 +00:00
|
|
|
# To prevent strange things should anyone try to install them on a system
|
|
|
|
# with an older fontconfig, we explicitely conflict with fontconfig versions
|
|
|
|
# found in older Fedora releases
|
2006-09-15 19:04:10 +00:00
|
|
|
Conflicts: fontconfig < 2.4.0
|
2005-06-23 19:10:12 +00:00
|
|
|
|
2006-07-30 20:22:26 +00:00
|
|
|
Obsoletes: %{name}-fontconfig < 2.7.0-0.15
|
2006-08-30 21:42:31 +00:00
|
|
|
Obsoletes: %{name}-makedefault < 2.9.0-1
|
|
|
|
Obsoletes: %{name}-block < 2.9.0-1
|
2006-07-30 20:22:26 +00:00
|
|
|
|
2006-10-22 17:56:48 +00:00
|
|
|
Provides: %{name}-makedefault = %{version}
|
|
|
|
Provides: %{name}-fontconfig = %{version}
|
|
|
|
|
2006-03-04 12:23:56 +00:00
|
|
|
|
2005-06-23 19:10:12 +00:00
|
|
|
%description
|
2007-01-21 20:27:21 +00:00
|
|
|
The DejaVu fonts are a font family based on the "Bitstream Vera" fonts release
|
2006-06-18 10:40:01 +00:00
|
|
|
1.10. Its purpose is to provide a wider range of characters while maintaining
|
|
|
|
the original look and feel through the process of collaborative development.
|
2006-06-09 23:16:05 +00:00
|
|
|
|
|
|
|
This package includes the typefaces the DejaVu project considers mature.
|
2005-06-23 19:10:12 +00:00
|
|
|
|
2006-03-04 12:23:56 +00:00
|
|
|
|
2006-03-22 23:10:27 +00:00
|
|
|
%package experimental
|
|
|
|
Group: User Interface/X
|
|
|
|
Summary: Experimental DejaVu typefaces
|
|
|
|
# Does not really make sense without the core typefaces
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description experimental
|
2007-01-21 20:27:21 +00:00
|
|
|
The DejaVu fonts are a font family based on the "Bitstream Vera" fonts release
|
2006-06-18 10:40:01 +00:00
|
|
|
1.10.
|
|
|
|
|
|
|
|
This package includes the typefaces the DejaVu project considers experimental.
|
2006-03-22 23:10:27 +00:00
|
|
|
|
|
|
|
|
2005-06-23 19:10:12 +00:00
|
|
|
%prep
|
2006-04-23 17:11:24 +00:00
|
|
|
%setup -q -n %{archivename}-%{archiveversion}
|
2006-03-04 12:23:56 +00:00
|
|
|
|
2005-06-23 19:10:12 +00:00
|
|
|
%build
|
2006-02-12 14:19:49 +00:00
|
|
|
./generate.sh
|
|
|
|
./status.pl %{version} status.txt *.sfd > status.txt.new
|
|
|
|
mv status.txt.new status.txt
|
|
|
|
./unicover.pl %{UnicodeData} %{Blocks} \
|
|
|
|
DejaVuSans.sfd Sans \
|
|
|
|
DejaVuSerif.sfd Serif \
|
|
|
|
DejaVuMonoSans.sfd "Sans Mono" > unicover.txt
|
2006-03-22 23:10:27 +00:00
|
|
|
# We should probably also regenerate langcover.txt
|
|
|
|
# but it requires resolution of
|
|
|
|
# https://bugs.freedesktop.org/show_bug.cgi?id=6316
|
2006-02-12 14:19:49 +00:00
|
|
|
|
2006-03-04 12:23:56 +00:00
|
|
|
|
2006-02-12 14:19:49 +00:00
|
|
|
%check
|
|
|
|
# Current upstream files are full of "problems"
|
|
|
|
# Do not panic if the output is long
|
2006-08-30 21:42:31 +00:00
|
|
|
./problems.pl *.sfd
|
2005-06-23 19:10:12 +00:00
|
|
|
|
2006-03-04 12:23:56 +00:00
|
|
|
|
2005-06-23 19:10:12 +00:00
|
|
|
%install
|
|
|
|
/bin/rm -rf %{buildroot}
|
|
|
|
|
|
|
|
#fonts
|
|
|
|
install -d -m 0755 %{buildroot}%{fontdir}
|
2006-02-12 14:19:49 +00:00
|
|
|
install -m 0644 generated/*.ttf %{buildroot}%{fontdir}
|
2005-06-23 19:10:12 +00:00
|
|
|
|
2006-06-09 23:16:05 +00:00
|
|
|
# Fontconfig overrides for some scripts
|
|
|
|
install -d -m 0755 %{buildroot}%{fontconfdir}/conf.d
|
2007-05-11 13:11:07 +00:00
|
|
|
install -m 0644 %{SOURCE1} %{buildroot}%{fontconfdir}/conf.d/57-dejavu.conf
|
2007-05-11 13:49:55 +00:00
|
|
|
install -m 0644 %{SOURCE2} %{buildroot}%{fontconfdir}/conf.d/20-unhint-small-dejavu.conf
|
|
|
|
install -m 0644 %{SOURCE3} %{buildroot}%{fontconfdir}/conf.d/61-dejavu-experimental.conf
|
|
|
|
install -m 0644 %{SOURCE4} %{buildroot}%{fontconfdir}/conf.d/20-unhint-small-dejavu-experimental.conf
|
2006-03-04 12:23:56 +00:00
|
|
|
|
2005-06-23 19:10:12 +00:00
|
|
|
%clean
|
|
|
|
/bin/rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
if [ -x %{_bindir}/fc-cache ]; then
|
|
|
|
%{_bindir}/fc-cache %{_datadir}/fonts
|
|
|
|
fi
|
|
|
|
|
2006-03-04 12:23:56 +00:00
|
|
|
|
2005-06-23 19:10:12 +00:00
|
|
|
%postun
|
|
|
|
if [ "$1" = "0" ]; then
|
|
|
|
if [ -x %{_bindir}/fc-cache ]; then
|
|
|
|
%{_bindir}/fc-cache %{_datadir}/fonts
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2006-03-22 23:10:27 +00:00
|
|
|
%post experimental
|
|
|
|
if [ -x %{_bindir}/fc-cache ]; then
|
|
|
|
%{_bindir}/fc-cache %{_datadir}/fonts
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%postun experimental
|
|
|
|
if [ "$1" = "0" ]; then
|
|
|
|
if [ -x %{_bindir}/fc-cache ]; then
|
|
|
|
%{_bindir}/fc-cache %{_datadir}/fonts
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2006-06-11 11:18:55 +00:00
|
|
|
|
2005-06-23 19:10:12 +00:00
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc *.txt AUTHORS BUGS LICENSE NEWS README
|
|
|
|
|
2007-05-11 13:49:55 +00:00
|
|
|
%config(noreplace) %{fontconfdir}/conf.d/20-unhint-small-dejavu.conf
|
|
|
|
%config(noreplace) %{fontconfdir}/conf.d/57-dejavu.conf
|
2006-06-11 10:20:54 +00:00
|
|
|
|
2005-06-23 19:10:12 +00:00
|
|
|
%dir %{fontdir}
|
2006-03-22 23:10:27 +00:00
|
|
|
%{fontdir}/DejaVu*.ttf
|
|
|
|
%exclude %{fontdir}/DejaVu*Condensed*.ttf
|
|
|
|
%exclude %{fontdir}/DejaVu*ExtraLight*.ttf
|
|
|
|
%exclude %{fontdir}/DejaVuSerif-*Oblique.ttf
|
|
|
|
|
2006-06-18 10:54:28 +00:00
|
|
|
|
2006-03-22 23:10:27 +00:00
|
|
|
%files experimental
|
|
|
|
%defattr(0644,root,root,0755)
|
2006-07-12 19:24:03 +00:00
|
|
|
|
2007-05-11 13:49:55 +00:00
|
|
|
%config(noreplace) %{fontconfdir}/conf.d/20-unhint-small-dejavu-experimental.conf
|
|
|
|
%config(noreplace) %{fontconfdir}/conf.d/61-dejavu-experimental.conf
|
2006-07-12 19:24:03 +00:00
|
|
|
|
2006-03-22 23:10:27 +00:00
|
|
|
%{fontdir}/DejaVu*Condensed*.ttf
|
|
|
|
%{fontdir}/DejaVu*ExtraLight*.ttf
|
|
|
|
%{fontdir}/DejaVuSerif-*Oblique.ttf
|
2005-06-23 19:10:12 +00:00
|
|
|
|
2006-03-04 20:38:53 +00:00
|
|
|
|
2005-06-23 19:10:12 +00:00
|
|
|
%changelog
|
2007-05-11 13:11:07 +00:00
|
|
|
* Fri May 11 2007 Nicolas Mailhot <nicolas.mailhot at laposte.net>
|
2007-05-11 13:49:55 +00:00
|
|
|
☺ 2.17-0.3.rc1
|
|
|
|
✓ fontconfig setup has stabilized and can be marked noreplace now
|
|
|
|
☺ 2.17-0.2.rc1
|
|
|
|
✓ mimick Vera unhint conf split
|
|
|
|
☺ 2.17-0.1.rc1
|
|
|
|
✓ 2.17 rc1
|
|
|
|
✓ make room for liberations font conf file
|
2007-05-11 13:11:07 +00:00
|
|
|
|
2007-04-02 18:47:01 +00:00
|
|
|
* Mon Apr 2 2007 Nicolas Mailhot <nicolas.mailhot at laposte.net>
|
2007-05-11 13:49:55 +00:00
|
|
|
☺ 2.16-1
|
2007-04-02 18:47:01 +00:00
|
|
|
|
2007-03-20 20:30:42 +00:00
|
|
|
* Tue Mar 20 2007 Nicolas Mailhot <nicolas.mailhot at laposte.net>
|
2007-05-11 13:49:55 +00:00
|
|
|
☺ 2.16-0.1.20070319svn1699
|
|
|
|
✓ early snapshot to account for F7T3 freeze
|
2007-03-20 20:30:42 +00:00
|
|
|
|
2007-01-30 20:55:50 +00:00
|
|
|
* Tue Jan 30 2007 Nicolas Mailhot <nicolas.mailhot at laposte.net>
|
2007-05-11 13:49:55 +00:00
|
|
|
☺ 2.14-2
|
|
|
|
✓ Adds Dejavu Sans Oblique small fixes (by Ben Laenen to address Debian
|
2007-01-30 20:55:50 +00:00
|
|
|
bug #408311, collected by Davide Viti)
|
|
|
|
|
2007-01-21 20:27:21 +00:00
|
|
|
* Sun Jan 21 2007 Nicolas Mailhot <nicolas.mailhot at laposte.net>
|
2007-05-11 13:49:55 +00:00
|
|
|
✓ 2.14 final
|