/[packages]/cauldron/unifont/current/SPECS/unifont.spec
ViewVC logotype

Contents of /cauldron/unifont/current/SPECS/unifont.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1836280 - (show annotations) (download)
Thu Mar 31 02:36:17 2022 UTC (2 years, 2 months ago) by umeabot
File size: 2982 byte(s)
Mageia 9 Mass Rebuild
1 Name: unifont
2 Version: 14.0.01
3 Release: %mkrel 2
4 License: GPLv2+ and GFDL
5 Url: https://savannah.gnu.org/projects/unifont
6 Summary: Tools and glyph descriptions in a very simple text format
7 Group: System/Fonts/True type
8 Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
9 Source1: unifont.metainfo.xml
10
11 BuildRequires: pkgconfig(fontutil)
12 BuildRequires: fontforge
13 BuildRequires: fontpackages-devel
14 BuildRequires: texinfo
15 BuildRequires: fontconfig
16 BuildRequires: freetype-tools
17
18 %description
19 Unifont is a Unicode font with a glyph for every visible Unicode Basic
20 Multilingual Plane code point and more, with supporting utilities to
21 modify the font. This package contains tools and glyph descriptions.
22
23 %package viewer
24 BuildArch: noarch
25 Summary: Graphical viewer for unifont
26
27 %description viewer
28 A graphical viewer for unifont.
29
30 %package -n fonts-ttf-%{name}
31 Summary: GNU Unifont glyphs
32 BuildArch: noarch
33
34 %description -n fonts-ttf-%{name}
35 GNU Unifont provides glyphs for every printable code point in the
36 Unicode 5.1 Basic Multilingual Plane (BMP). The BMP occupies the
37 first 65,536 code points of the Unicode space, denoted as
38 U+0000..U+FFFF.
39
40 %prep
41 %setup -q
42 # Disable rebuilding during installation
43 sed -i 's/^install: .*/install:/' Makefile
44 sed -i 's/install -s/install/' src/Makefile
45
46 %build
47 # Makefile is broken with parallel builds
48 make CFLAGS='%{optflags}'
49 %make_build -C doc unifont.info
50
51 %install
52 %make_install USRDIR=%{_prefix} COMPRESS=0 TTFDEST='$(DESTDIR)%{_datadir}/fonts/%{name}'
53 find %{buildroot}/usr/share/unifont/ -type f \! -name %{name}.hex -delete
54 rm -rv %{buildroot}%{_datadir}/fonts/X11
55 rm -v %{buildroot}%{_datadir}/fonts/%{name}/*sample*
56 rm -v %{buildroot}%{_datadir}/fonts/%{name}/unifont_*csur*.ttf
57 install -p -m644 doc/unifont.info -D %{buildroot}%{_infodir}/unifont.info
58 install -Dm0644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/unifont.metainfo.xml
59 # Remove APL font for now
60 rm %{buildroot}/usr/share/consolefonts/Unifont-APL8x16.psf.gz
61
62 mkdir -p %{buildroot}%{_datadir}/fonts/TTF/%{name}
63 mv %{buildroot}%{_datadir}/fonts/%{name}/*.ttf %{buildroot}%{_datadir}/fonts/TTF/%{name}/
64 ttmkfdir %{buildroot}/%{_datadir}/fonts/TTF/%{name} > %{buildroot}%{_datadir}/fonts/TTF/%{name}/fonts.dir
65 ln -s fonts.dir %{buildroot}%{_datadir}/fonts/TTF/%{name}/fonts.scale
66
67 mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
68 ln -s ../../..%{_datadir}/fonts/TTF/%{name} \
69 %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-%{name}:pri=50
70
71 %files
72 %{_bindir}/*
73 %{_datadir}/%{name}/
74 %doc NEWS README COPYING
75 %{_mandir}/man1/*
76 %{_mandir}/man5/*
77 %{_infodir}/%{name}.info*
78 %exclude %{_bindir}/unifont-viewer
79 %{_datadir}/appdata/%{name}.metainfo.xml
80
81 %files viewer
82 %{_bindir}/unifont-viewer
83
84 %files -n fonts-ttf-%{name}
85 %dir %{_datadir}/fonts/TTF/%{name}
86 %{_datadir}/fonts/TTF/%{name}/*.ttf
87 %verify(not mtime) %{_datadir}/fonts/TTF/%{name}/fonts.dir
88 %{_datadir}/fonts/TTF/%{name}/fonts.scale
89 %{_sysconfdir}/X11/fontpath.d/ttf-%{name}:pri=50

  ViewVC Help
Powered by ViewVC 1.1.30