1 |
%define version 4.14 |
2 |
|
3 |
Summary: Converts text and other types of files to PostScript(TM) |
4 |
Name: a2ps |
5 |
Version: %{version} |
6 |
%define subrel 2 |
7 |
Release: %mkrel 12 |
8 |
License: GPLv3+ |
9 |
Group: Publishing |
10 |
Url: http://www.gnu.org/software/a2ps/ |
11 |
Source: http://ftp.gnu.org/gnu/a2ps/%{name}-%{version}.tar.gz |
12 |
Patch1: a2ps-4.14-enable-display.patch |
13 |
Patch2: a2ps-4.14-fix-str-fmt.patch |
14 |
Patch3: a2ps-4.14-glibcpaper.patch |
15 |
Patch4: a2ps-4.14-autoenc.patch |
16 |
Patch5: a2ps-4.14-security.patch |
17 |
Patch6: a2ps-4.14-CVE-2014-0466.patch |
18 |
Requires(post): info-install |
19 |
Requires(preun):info-install |
20 |
BuildRequires: bison |
21 |
BuildRequires: emacs-bin |
22 |
#BuildRequires: fetchmail |
23 |
BuildRequires: flex |
24 |
BuildRequires: gettext |
25 |
BuildRequires: gperf |
26 |
BuildRequires: groff-perl |
27 |
BuildRequires: html2ps |
28 |
BuildRequires: imagemagick |
29 |
BuildRequires: mawk |
30 |
BuildRequires: tetex-dvips |
31 |
BuildRequires: tetex-latex |
32 |
BuildRequires: texinfo |
33 |
#BuildRequires: xemacs |
34 |
BuildRequires: psutils |
35 |
#Buildrequires: gv |
36 |
|
37 |
Requires: binutils |
38 |
Requires: file |
39 |
Requires: groff-perl |
40 |
Requires: imagemagick |
41 |
Requires: psutils |
42 |
|
43 |
#Requires: gv |
44 |
|
45 |
%description |
46 |
The a2ps filter converts text and other types of files to PostScript(TM). |
47 |
a2ps has pretty-printing capabilities and includes support for a wide |
48 |
number of programming languages, encodings (ISO Latins, Cyrillic, etc.), |
49 |
and medias. |
50 |
|
51 |
%package devel |
52 |
Summary: Include files for %{name} |
53 |
Group: Development/Other |
54 |
Requires(pre): %{name} = %{version}-%{release} |
55 |
|
56 |
%description devel |
57 |
The a2ps filter converts text and other types of files to PostScript(TM). |
58 |
A2ps has pretty-printing capabilities and includes support for a wide |
59 |
number of programming languages, encodings (ISO Latins, Cyrillic, etc.), |
60 |
and medias. |
61 |
|
62 |
This package holds include files. |
63 |
|
64 |
%package static-devel |
65 |
Summary: Static libraries for %{name} |
66 |
Group: Development/Other |
67 |
Requires(pre): %{name}-devel = %{version}-%{release} |
68 |
|
69 |
%description static-devel |
70 |
The a2ps filter converts text and other types of files to PostScript(TM). |
71 |
A2ps has pretty-printing capabilities and includes support for a wide |
72 |
number of programming languages, encodings (ISO Latins, Cyrillic, etc.), |
73 |
and medias. |
74 |
|
75 |
This package holds static libraries. |
76 |
|
77 |
%prep |
78 |
%setup -q -n %{name}-%{version} |
79 |
%patch1 -p1 -b .enable-display |
80 |
%patch2 -p0 -b .str |
81 |
|
82 |
# Ensure the paper size is properly modified upon locale (from fedora) |
83 |
%patch3 -p1 |
84 |
# Ensute the encoding is not hardcoded but deduced from environment (from fedora) |
85 |
# %patch4 -p1 |
86 |
|
87 |
# Security enhancement (from fedora) |
88 |
%patch5 -p1 |
89 |
|
90 |
# security fix (from debian) |
91 |
%patch6 -p1 |
92 |
|
93 |
%build |
94 |
|
95 |
%configure2_5x |
96 |
%make |
97 |
|
98 |
%install |
99 |
rm -rf %{buildroot} |
100 |
|
101 |
%makeinstall_std |
102 |
|
103 |
%find_lang %{name} |
104 |
|
105 |
%clean |
106 |
rm -rf %{buildroot} |
107 |
|
108 |
%post |
109 |
%_install_info a2ps.info |
110 |
%_install_info ogonkify.info |
111 |
%_install_info regex.info |
112 |
# Adapt /usr/share/a2ps/afm/fonts.map to the current system environment |
113 |
( cd %{_datadir}/%{name}/afm/ |
114 |
./make_fonts_map.sh > /dev/null 2>&1 |
115 |
mv -f fonts.map.new fonts.map |
116 |
) |
117 |
|
118 |
%preun |
119 |
%_remove_install_info a2ps.info |
120 |
%_remove_install_info ogonkify.info |
121 |
%_remove_install_info regex.info |
122 |
|
123 |
%files -f %{name}.lang |
124 |
%defattr(644,root,root,755) |
125 |
%config(noreplace) %{_sysconfdir}/a2ps.cfg |
126 |
%config(noreplace) %{_sysconfdir}/a2ps-site.cfg |
127 |
%doc AUTHORS NEWS README TODO THANKS |
128 |
%attr(755,root,root) %{_bindir}/* |
129 |
%attr(755,root,root) %{_datadir}/%{name}/afm/make_fonts_map.sh |
130 |
%{_infodir}/a2ps.info* |
131 |
%{_infodir}/ogonkify.info* |
132 |
%{_infodir}/regex.info* |
133 |
%{_mandir}/man1/* |
134 |
%dir %{_datadir}/%{name}/ |
135 |
%{_datadir}/%{name}/README |
136 |
%{_datadir}/%{name}/afm/*.afm |
137 |
%{_datadir}/%{name}/afm/*.map |
138 |
%{_datadir}/%{name}/encoding/ |
139 |
%{_datadir}/%{name}/fonts/ |
140 |
%{_datadir}/%{name}/ppd/ |
141 |
%{_datadir}/%{name}/ps/ |
142 |
%{_datadir}/%{name}/sheets/ |
143 |
%{_datadir}/ogonkify/ |
144 |
%{_datadir}/emacs/site-lisp/a2ps-print.el |
145 |
%{_datadir}/emacs/site-lisp/a2ps.el |
146 |
%{_datadir}/emacs/site-lisp/*.elc |
147 |
|
148 |
%files devel |
149 |
%defattr(644,root,root,755) |
150 |
%doc ChangeLog |
151 |
%{_includedir}/* |
152 |
%attr(755,root,root) %{_libdir}/*.la |
153 |
|
154 |
%files static-devel |
155 |
%defattr(644,root,root,755) |
156 |
%{_libdir}/*.a |