1 |
Summary: Converts text and other types of files to PostScript(TM) |
2 |
Name: a2ps |
3 |
Version: 4.14 |
4 |
Release: %mkrel 15 |
5 |
License: GPLv3+ |
6 |
Group: Publishing |
7 |
Url: http://www.gnu.org/software/a2ps/ |
8 |
Source: http://ftp.gnu.org/gnu/a2ps/%{name}-%{version}.tar.gz |
9 |
Patch1: a2ps-4.14-enable-display.patch |
10 |
Patch2: a2ps-4.14-fix-str-fmt.patch |
11 |
Patch3: a2ps-4.14-glibcpaper.patch |
12 |
Patch4: a2ps-4.14-autoenc.patch |
13 |
Patch5: a2ps-4.14-security.patch |
14 |
Patch6: a2ps-info.patch |
15 |
Patch7: a2ps-4.14-CVE-2014-0466.patch |
16 |
Requires(post): info-install |
17 |
Requires(preun):info-install |
18 |
BuildRequires: bison |
19 |
BuildRequires: emacs-bin |
20 |
#BuildRequires: fetchmail |
21 |
BuildRequires: flex |
22 |
BuildRequires: gettext |
23 |
BuildRequires: gperf |
24 |
BuildRequires: groff-perl |
25 |
BuildRequires: html2ps |
26 |
BuildRequires: imagemagick |
27 |
BuildRequires: mawk |
28 |
BuildRequires: tetex-dvips |
29 |
BuildRequires: tetex-latex |
30 |
BuildRequires: texinfo |
31 |
#BuildRequires: xemacs |
32 |
BuildRequires: psutils |
33 |
#Buildrequires: gv |
34 |
|
35 |
Requires: binutils |
36 |
Requires: file |
37 |
Requires: groff-perl |
38 |
Requires: imagemagick |
39 |
Requires: psutils |
40 |
|
41 |
#Requires: gv |
42 |
|
43 |
%description |
44 |
The a2ps filter converts text and other types of files to PostScript(TM). |
45 |
a2ps has pretty-printing capabilities and includes support for a wide |
46 |
number of programming languages, encodings (ISO Latins, Cyrillic, etc.), |
47 |
and medias. |
48 |
|
49 |
%package devel |
50 |
Summary: Include files for %{name} |
51 |
Group: Development/Other |
52 |
Requires: %{name} = %{version}-%{release} |
53 |
Obsoletes: %{name}-static-devel < %{version}-%{release} |
54 |
|
55 |
%description devel |
56 |
The a2ps filter converts text and other types of files to PostScript(TM). |
57 |
A2ps has pretty-printing capabilities and includes support for a wide |
58 |
number of programming languages, encodings (ISO Latins, Cyrillic, etc.), |
59 |
and medias. |
60 |
|
61 |
This package holds include files and static libs. |
62 |
|
63 |
%prep |
64 |
%setup -q -n %{name}-%{version} |
65 |
%apply_patches |
66 |
|
67 |
%build |
68 |
%configure2_5x --disable-static |
69 |
%make |
70 |
|
71 |
%install |
72 |
%makeinstall_std |
73 |
|
74 |
%find_lang %{name} |
75 |
|
76 |
%post |
77 |
%_install_info a2ps.info |
78 |
%_install_info ogonkify.info |
79 |
%_install_info regex.info |
80 |
# Adapt /usr/share/a2ps/afm/fonts.map to the current system environment |
81 |
( cd %{_datadir}/%{name}/afm/ |
82 |
./make_fonts_map.sh > /dev/null 2>&1 |
83 |
mv -f fonts.map.new fonts.map |
84 |
) |
85 |
|
86 |
%preun |
87 |
%_remove_install_info a2ps.info |
88 |
%_remove_install_info ogonkify.info |
89 |
%_remove_install_info regex.info |
90 |
|
91 |
%files -f %{name}.lang |
92 |
%config(noreplace) %{_sysconfdir}/a2ps.cfg |
93 |
%config(noreplace) %{_sysconfdir}/a2ps-site.cfg |
94 |
%doc AUTHORS NEWS README TODO THANKS |
95 |
%{_bindir}/* |
96 |
%{_infodir}/a2ps.info* |
97 |
%{_infodir}/ogonkify.info* |
98 |
%{_infodir}/regex.info* |
99 |
%{_mandir}/man1/* |
100 |
%{_datadir}/%{name} |
101 |
%{_datadir}/ogonkify |
102 |
%{_datadir}/emacs/site-lisp/* |
103 |
|
104 |
%files devel |
105 |
%doc ChangeLog |
106 |
%{_includedir}/* |
107 |
%{_libdir}/*.a |
108 |
%{_libdir}/*.la |