]> git.pld-linux.org Git - packages/unifont.git/blobdiff - unifont.spec
- unconditional noarch subpackages
[packages/unifont.git] / unifont.spec
index 132e9b8b0f833cc6d10cf57d35dd2b5a73d62fb3..6f26f1dfcc589f514e4a7549434a4827e514471b 100644 (file)
@@ -1,16 +1,20 @@
-%include       /usr/lib/rpm/macros.perl
+#
+# Conditional build:
+%bcond_without viewer  # unifont-viewer package (requires perl-Wx)
+
 Summary:       GNU Unifont - Unicode bitmap font
 Summary(pl.UTF-8):     GNU Unifont - font bitmapowy Unicode
 Name:          unifont
-Version:       7.0.03
+Version:       13.0.06
 Release:       1
-License:       GPL v2+ with GNU font embedding exception
+License:       GPL v2+ (tools), SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
 Group:         Fonts
-Source0:       http://ftp.gnu.org/gnu/unifont/%{name}-%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 17f4b4de9cf0a58049da251611c19415
+Source0:       https://ftp.gnu.org/gnu/unifont/%{name}-%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 60971929464ceb99bbcca55b9ad7c796
 URL:           http://czyborra.com/unifont/
 BuildRequires: fontforge
 BuildRequires: rpm-perlprov
+BuildRequires: rpmbuild(macros) >= 1.752
 BuildRequires: xorg-app-bdftopcf
 Requires(post,postun): fontpostinst
 Requires:      %{_fontsdir}/misc
@@ -33,13 +37,12 @@ Multilingual Plane (Plane 0).
 %package -n fonts-misc-unifont
 Summary:       GNU Unifont - Unicode font in PCF format
 Summary(pl.UTF-8):     GNU Unifont - font Unicode w formacie PCF
+License:       SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
 Group:         Fonts
 Requires(post,postun): fontpostinst
 Requires:      %{_fontsdir}/misc
 Obsoletes:     unifont
-%if "%{_rpmversion}" >= "5"
 BuildArch:     noarch
-%endif
 
 %description -n fonts-misc-unifont
 GNU Unifont is an official GNU package. It is a dual-width
@@ -62,12 +65,11 @@ Ten pakiet zawiera font w formacie PCF.
 %package -n fonts-TTF-unifont
 Summary:       GNU Unifont - Unicode font in PCF format
 Summary(pl.UTF-8):     GNU Unifont - font Unicode w formacie PCF
+License:       SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
 Group:         Fonts
 Requires(post,postun): fontpostinst
 Requires:      %{_fontsdir}/TTF
-%if "%{_rpmversion}" >= "5"
 BuildArch:     noarch
-%endif
 
 %description -n fonts-TTF-unifont
 GNU Unifont is an official GNU package. It is a dual-width
@@ -90,8 +92,10 @@ Ten pakiet zawiera font w formacie TTF.
 %package console
 Summary:       GNU Unifont - Unicode font in PSF format
 Summary(pl.UTF-8):     GNU Unifont - font Unicode w formacie PSF
+License:       SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
 Group:         Fonts
 Requires:      kbd
+BuildArch:     noarch
 
 %description console
 GNU Unifont is an official GNU package. It is a dual-width
@@ -113,9 +117,25 @@ Multilingual Plane (Plane 0).
 Ten pakiet zawiera 512-znakowy podzbiór w formacie PSF, przeznaczony
 do używania na linuksowej konsoli.
 
+%package source
+Summary:       GNU Unifont source data
+Summary(pl.UTF-8):     Dane źródłowe pakietu GNU Unifont
+License:       GPL v2+ (tools), SIL Open Font License v1.1 or GPL v2+ with GNU font embedding exception (fonts)
+Group:         Development/Tools
+BuildArch:     noarch
+
+%description source
+GNU Unifont source data, which could be used to generate or embed
+fonts in other formats.
+
+%description source -l pl.UTF-8
+Dane źródłowe pakietu GNU Unifont, które można wykorzystać do
+generowania lub osadzania fontów w innych formatach.
+
 %package tools
 Summary:       GNU Unifont utility programs
 Summary(pl.UTF-8):     Programy narzędziowe dołączone do pakietu GNU Unifont
+License:       GPL v2+
 Group:         Development/Tools
 
 %description tools
@@ -127,6 +147,7 @@ Programy narzędziowe dołączone do pakietu GNU Unifont.
 %package viewer
 Summary:       GNU Unifont viewer
 Summary(pl.UTF-8):     Przeglądarka GNU Unifont
+License:       GPL v2+
 Group:         X11/Applications
 
 %description viewer
@@ -154,8 +175,6 @@ rm -rf $RPM_BUILD_ROOT
        PCFDEST=$RPM_BUILD_ROOT%{_fontsdir}/misc \
        TTFDEST=$RPM_BUILD_ROOT%{_fontsdir}/TTF
 
-# source data not needed, docs packaged as %doc
-%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/unifont
 # sample covering plane 0
 %{__rm} $RPM_BUILD_ROOT%{_fontsdir}/{misc/unifont_sample.pcf.gz,TTF/unifont_sample.ttf}
 
@@ -176,22 +195,31 @@ fontpostinst TTF
 
 %files -n fonts-misc-unifont
 %defattr(644,root,root,755)
-%doc README
+%doc COPYING ChangeLog NEWS README
 %{_fontsdir}/misc/unifont.pcf.gz
 %{_fontsdir}/misc/unifont_csur.pcf.gz
 %{_mandir}/man5/unifont.5*
 
 %files -n fonts-TTF-unifont
 %defattr(644,root,root,755)
+%doc COPYING ChangeLog NEWS README
 %{_fontsdir}/TTF/unifont.ttf
 %{_fontsdir}/TTF/unifont_csur.ttf
 %{_fontsdir}/TTF/unifont_upper.ttf
-%{_fontsdir}/TTF/unifont_upper_csur.ttf
 
 %files console
 %defattr(644,root,root,755)
 /lib/kbd/consolefonts/Unifont-APL8x16.psf.gz
 
+%files source
+%defattr(644,root,root,755)
+%doc COPYING ChangeLog NEWS README
+%dir %{_datadir}/unifont
+%{_datadir}/unifont/plane00-combining.txt
+%{_datadir}/unifont/unifont.bmp.gz
+%{_datadir}/unifont/unifont.hex
+%{_datadir}/unifont/wchardata.c
+
 %files tools
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/bdfimplode
@@ -204,8 +232,10 @@ fontpostinst TTF
 %attr(755,root,root) %{_bindir}/johab2ucs2
 %attr(755,root,root) %{_bindir}/unibdf2hex
 %attr(755,root,root) %{_bindir}/unibmp2hex
+%attr(755,root,root) %{_bindir}/unibmpbump
 %attr(755,root,root) %{_bindir}/unicoverage
 %attr(755,root,root) %{_bindir}/unidup
+%attr(755,root,root) %{_bindir}/unifont1per
 %attr(755,root,root) %{_bindir}/unifontchojung
 %attr(755,root,root) %{_bindir}/unifontksx
 %attr(755,root,root) %{_bindir}/unifontpic
@@ -215,6 +245,7 @@ fontpostinst TTF
 %attr(755,root,root) %{_bindir}/unihex2png
 %attr(755,root,root) %{_bindir}/unihexfill
 %attr(755,root,root) %{_bindir}/unihexgen
+%attr(755,root,root) %{_bindir}/unihexrotate
 %attr(755,root,root) %{_bindir}/unipagecount
 %attr(755,root,root) %{_bindir}/unipng2hex
 %{_mandir}/man1/bdfimplode.1*
@@ -227,8 +258,10 @@ fontpostinst TTF
 %{_mandir}/man1/johab2ucs2.1*
 %{_mandir}/man1/unibdf2hex.1*
 %{_mandir}/man1/unibmp2hex.1*
+%{_mandir}/man1/unibmpbump.1*
 %{_mandir}/man1/unicoverage.1*
 %{_mandir}/man1/unidup.1*
+%{_mandir}/man1/unifont1per.1*
 %{_mandir}/man1/unifontchojung.1*
 %{_mandir}/man1/unifontksx.1*
 %{_mandir}/man1/unifontpic.1*
@@ -238,9 +271,13 @@ fontpostinst TTF
 %{_mandir}/man1/unihex2png.1*
 %{_mandir}/man1/unihexfill.1*
 %{_mandir}/man1/unihexgen.1*
+%{_mandir}/man1/unihexrotate.1*
 %{_mandir}/man1/unipagecount.1*
 %{_mandir}/man1/unipng2hex.1*
 
+%if %{with viewer}
 %files viewer
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/unifont-viewer
+%{_mandir}/man1/unifont-viewer.1*
+%endif
This page took 0.079037 seconds and 4 git commands to generate.