]> git.pld-linux.org Git - packages/a2ps.git/blob - a2ps.spec
- rel 27
[packages/a2ps.git] / a2ps.spec
1 Summary:        Text to Postscript filter
2 Summary(ja):    ¥Æ¥­¥¹¥È¢ªPostScript ¥Õ¥£¥ë¥¿
3 Summary(pl):    Filtr text/plain do Postscriptu
4 Summary(zh_CN): ´¿Îı¾µ½Postscriptת»»Æ÷
5 Name:           a2ps
6 Version:        4.13b
7 Release:        27
8 License:        GPL
9 Group:          Applications/Text
10 Source0:        ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz
11 # Source0-md5:  0c8e0c31b08c14f7a7198ce967eb3281
12 Source1:        ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz
13 # Source1-md5:  fee1456d0e6e94af4fc5b5a1bb9687b7
14 Source2:        ogonkify.1.pl
15 Patch0:         %{name}-info.patch
16 Patch1:         %{name}-security.patch
17 Patch2:         %{name}-etc.patch
18 Patch3:         %{name}-flex.patch
19 Patch4:         %{name}-conf.patch
20 Patch5:         %{name}-glibcpaper.patch
21 Patch6:         %{name}-autoenc.patch
22 Patch7:         %{name}-i18n.patch
23 Patch8:         %{name}-ogonkify-xfig-fix.patch
24 Patch9:         %{name}-pl.po-update.patch
25 Patch10:        %{name}-locale-names.patch
26 URL:            http://www.inf.enst.fr/~demaille/a2ps/
27 BuildRequires:  automake
28 BuildRequires:  flex
29 BuildRequires:  gettext-devel
30 Requires(post,postun):  /sbin/ldconfig
31 Requires:       psutils
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %define         _sysconfdir     /etc/a2ps
35
36 %description
37 a2ps is a text to PostScript filter with pretty-printing capabilities.
38 It includes support for a wide number of programming languages,
39 encodings (ISO Latins, Cyrillic etc.), medias, and spoken languages
40 (for the interface). It has also the ability to delegate the
41 processing of some files to other applications, letting you print DVI,
42 PostScript etc. with the very same interface.
43
44 %description -l pl
45 A2ps jest programem pozwalaj±cym na ³adne drukowanie plików
46 tekstowych w PostScript. Posiada wsparcie dla wielu ró¿nych jêzyków
47 programowania, zestawów znaków (ISO Latins, Cyrilica etc.), wielko¶ci
48 papieru, i jêzyków komunikacji z u¿ytkownikiem. Potrafi tak¿e
49 przekazaæ przetwarzanie plików do innych programów (tak, ¿e mo¿na
50 wszystko drukowaæ (DVI, PostScript) przy u¿yciu tego samego polecenia.
51 Zawiera program ,,ogonkify'' poprawiaj±cy b³êdnie zakodowany
52 PostScript zawieraj±cy polskie znaki.
53
54 %package devel
55 Summary:        Header files and development documentation for a2ps
56 Summary(pl):    Pliki nag³ówkowe i dokumentacja do a2ps
57 Group:          Development/Libraries
58 Requires:       %{name} = %{version}-%{release}
59
60 %description devel
61 Header files and development documentation for a2ps.
62
63 %description devel -l pl
64 Pliki nag³ówkowe i dokumentacja do a2ps.
65
66 %package static
67 Summary:        a2ps static libraries
68 Summary(pl):    Biblioteki statyczne do a2ps
69 Group:          Development/Libraries
70 Requires:       %{name}-devel = %{version}-%{release}
71
72 %description static
73 a2ps static libraries.
74
75 %description static -l pl
76 Biblioteki statyczne do a2ps.
77
78 %prep
79 %setup -q -n %{name}-4.13 -a1
80 %patch0 -p1
81 %patch1 -p1
82 %patch2 -p1
83 %patch3 -p1
84 %patch4 -p1
85 %patch5 -p1
86 %patch6 -p1
87 %patch7 -p1
88 %patch8 -p0
89 %patch9 -p1
90 %patch10 -p1
91
92 mv -f po/{no,nb}.po
93
94 %build
95 cp -f /usr/share/automake/config.* auxdir
96 %configure2_13 \
97         --with-gnu-gettext \
98         --with-medium=_glibc  \
99         --with-encoding=latin1 \
100         --enable-shared \
101         --enable-kanji
102 %{__make}
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106 install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} \
107         $RPM_BUILD_ROOT%{_mandir}/pl/man1
108
109 %{__perl} -pi -e 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile
110
111 %{__make} install \
112         DESTDIR=$RPM_BUILD_ROOT
113
114 install i18n-fonts-0.1/afm/*.afm %{buildroot}%{_datadir}/a2ps/afm
115 install i18n-fonts-0.1/fonts/*.pfb %{buildroot}%{_datadir}/a2ps/fonts
116 install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1
117
118 %find_lang %{name}
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %post
124 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
125 /sbin/ldconfig
126
127 %postun
128 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
129 /sbin/ldconfig
130
131 %files -f %{name}.lang
132 %defattr(644,root,root,755)
133 %doc AUTHORS ChangeLog NEWS README THANKS
134 %dir %{_sysconfdir}
135 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps.cfg
136 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps-site.cfg
137 %attr(755,root,root) %{_bindir}/*
138 %attr(755,root,root) %{_libdir}/lib*.so.*.*
139 %{_mandir}/man1/*
140 %lang(pl) %{_mandir}/pl/man1/*
141 %{_infodir}/a2ps*info*
142 %{_infodir}/ogonkify*info*
143
144 %dir %{_datadir}/a2ps
145 %dir %{_datadir}/a2ps/afm
146 %{_datadir}/a2ps/afm/*.afm
147 %{_datadir}/a2ps/afm/*.map
148 %attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
149
150 %{_datadir}/a2ps/encoding
151 %{_datadir}/a2ps/fonts
152 %{_datadir}/a2ps/ppd
153 %{_datadir}/a2ps/ps
154 %{_datadir}/a2ps/sheets
155
156 %dir %{_datadir}/ogonkify
157 %{_datadir}/ogonkify/*.enc
158 %{_datadir}/ogonkify/*.ps
159 %{_datadir}/ogonkify/afm
160 %{_datadir}/ogonkify/fonts
161
162 %files devel
163 %defattr(644,root,root,755)
164 %{_libdir}/lib*.la
165 %attr(755,root,root) %{_libdir}/lib*.so
166 %{_includedir}/*
167
168 %files static
169 %defattr(644,root,root,755)
170 %{_libdir}/lib*.a
This page took 0.078652 seconds and 4 git commands to generate.