summaryrefslogtreecommitdiff
path: root/type1inst.spec
blob: 5ed6feba5992d3d73a2a0c5a4367015d88aa0a8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Summary:	Type 1 font install utility
Summary(pl.UTF-8):	Narzędzie instalacyjne czcionek Type 1
Name:		type1inst
Version:	0.6.1
Release:	7
License:	GPL v2+
Group:		Applications
Source0:	http://www.ibiblio.org/pub/Linux/X11/xutils/%{name}-%{version}.tar.gz
# Source0-md5:	86fd885e9877896c51ae6cbe23d89ccf
Patch0:		%{name}-chmod.patch
# dead (host not found)
#URL:		http://goblet.anu.edu.au/~m9305357/type1inst.html
BuildRequires:	rpm-perlprov
BuildRequires:	rpmbuild(macros) >= 1.745
Requires:	groff
Requires:	fileutils
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
type1inst is a utility which scans Type 1 PostScript font files and
generates automatically the fonts.scale file which the X Window System
uses to pick up fonts in the current directory and/or the Fontmap file
which Ghostscript uses to map file names to font names. It can also
generate simple font sample sheets which show what your fonts look
like.

type1inst is a Perl script so you will need to have that installed on
your system. The pfbtops utility (which comes as part of GNU groff) is
also required.

%description -l pl.UTF-8
type1inst jest programem, który skanuje pliki czcionek PostScript Type
1 i tworzy plik fonts.scale i/lub plik Fontmap na użytek X Window
System i Ghostscript. Potrafi również wygenerować proste przykłady
zainstalowanych czcionek.

type1inst jest skryptem Perla, więc musisz mieć go zainstalowanego
jeśli chcesz używać type1inst. Wymagane jest również narzędzie pfbtops
(które znajduje się w pakiecie GNU groff).

%prep
%setup -q
%patch0 -p1

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}

install t1embed type1inst $RPM_BUILD_ROOT%{_bindir}
install type1inst.man $RPM_BUILD_ROOT%{_mandir}/man1/type1inst.1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc ChangeLog README
%attr(755,root,root) %{_bindir}/t1embed
%attr(755,root,root) %{_bindir}/type1inst
%{_mandir}/man1/type1inst.1*