]> git.pld-linux.org Git - packages/a2ps.git/blame - a2ps.spec
- added texinfo patch (fixes build with texinfo 6.7+)
[packages/a2ps.git] / a2ps.spec
CommitLineData
cc4bd0f6 1Summary: Text to Postscript filter
0c09f6e7
ER
2Summary(ja.UTF-8): テキスト→PostScript フィルタ
3Summary(pl.UTF-8): Filtr text/plain do Postscriptu
4Summary(zh_CN.UTF-8): 纯文本到Postscript转换器
842ab1c6 5Name: a2ps
49f59e19 6Version: 4.14
9402a7cb 7Release: 3
82372bb1 8License: GPL v3+
cc4bd0f6 9Group: Applications/Text
46bdc2f0 10Source0: https://ftp.gnu.org/gnu/a2ps/%{name}-%{version}.tar.gz
49f59e19 11# Source0-md5: 781ac3d9b213fa3e1ed0d79f986dc8c7
f4c7b40d 12Source1: ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz
40a6492c 13# Source1-md5: fee1456d0e6e94af4fc5b5a1bb9687b7
3984b7c7 14Source2: ogonkify.1.pl
6f1a19c3 15Patch0: %{name}-info.patch
e5d03e50 16Patch1: %{name}-security.patch
f4c7b40d 17Patch2: %{name}-etc.patch
18Patch3: %{name}-flex.patch
19Patch4: %{name}-conf.patch
20Patch5: %{name}-glibcpaper.patch
21Patch6: %{name}-autoenc.patch
8d12198d 22Patch7: %{name}-i18n.patch
a4bc71e1 23Patch8: %{name}-ogonkify-xfig-fix.patch
8bfe0f1c 24Patch9: %{name}-pl.po-update.patch
ab646c7a 25Patch10: %{name}-locale-names.patch
2a0a5b50 26Patch11: %{name}-atan2.patch
9402a7cb 27Patch12: format-security.patch
46bdc2f0 28Patch13: %{name}-texinfo.patch
3a6ccbc6 29URL: http://www.gnu.org/software/a2ps/
8bfe0f1c 30BuildRequires: automake
e6246505 31BuildRequires: flex
e35531e3 32BuildRequires: gettext-tools
7b991c32 33BuildRequires: gperf
718daff3 34BuildRequires: libpaper-devel
fe10624c 35BuildRequires: texinfo
8bfe0f1c 36Requires(post,postun): /sbin/ldconfig
f4c7b40d 37Requires: psutils
ce89659f 38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49e058ba 39
bb1d7181 40%define _sysconfdir /etc/a2ps
75b4d611 41
49e058ba 42%description
27031e15 43a2ps is a text to PostScript filter with pretty-printing capabilities.
44It includes support for a wide number of programming languages,
45encodings (ISO Latins, Cyrillic etc.), medias, and spoken languages
46(for the interface). It has also the ability to delegate the
47processing of some files to other applications, letting you print DVI,
48PostScript etc. with the very same interface.
49e058ba 49
3f520e73
JR
50%description -l pl.UTF-8
51A2ps jest programem pozwalającym na ładne drukowanie plików tekstowych
52w PostScript. Posiada wsparcie dla wielu różnych języków
53programowania, zestawów znaków (ISO Latins, Cyrilica etc.), wielkości
54papieru, i języków komunikacji z użytkownikiem. Potrafi także
55przekazać przetwarzanie plików do innych programów (tak, że można
56wszystko drukować (DVI, PostScript) przy użyciu tego samego polecenia.
57Zawiera program ,,ogonkify'' poprawiający błędnie zakodowany
58PostScript zawierający polskie znaki.
49e058ba 59
06185f79 60%package devel
82372bb1
JB
61Summary: Header files for a2ps library
62Summary(pl.UTF-8): Pliki nagłówkowe biblioteki a2ps
e5d03e50 63Group: Development/Libraries
ab646c7a 64Requires: %{name} = %{version}-%{release}
49e058ba 65
66%description devel
82372bb1 67Header files for a2ps library.
49e058ba 68
3f520e73 69%description devel -l pl.UTF-8
82372bb1 70Pliki nagłówkowe biblioteki a2ps.
49e058ba 71
06185f79 72%package static
82372bb1
JB
73Summary: a2ps static library
74Summary(pl.UTF-8): Biblioteka statyczna a2ps
e5d03e50 75Group: Development/Libraries
ab646c7a 76Requires: %{name}-devel = %{version}-%{release}
49e058ba 77
78%description static
82372bb1 79a2ps static library.
49e058ba 80
3f520e73 81%description static -l pl.UTF-8
82372bb1 82Biblioteka statyczna a2ps.
49e058ba 83
84%prep
ffdb9d61 85%setup -q -a1
90210d62 86%patch0 -p1
e5d03e50 87%patch1 -p1
f4c7b40d 88%patch2 -p1
89%patch3 -p1
90%patch4 -p1
91%patch5 -p1
92%patch6 -p1
8d12198d 93%patch7 -p1
a4bc71e1 94%patch8 -p0
8bfe0f1c 95%patch9 -p1
ab646c7a 96%patch10 -p1
2a0a5b50 97%patch11 -p1
9402a7cb 98%patch12 -p1
46bdc2f0 99%patch13 -p1
ab646c7a 100
46bdc2f0 101%{__mv} po/{no,nb}.po
bb21d86a 102
49e058ba 103%build
8bfe0f1c 104cp -f /usr/share/automake/config.* auxdir
82372bb1 105%configure \
f4c7b40d 106 --with-gnu-gettext \
107 --with-medium=_glibc \
842ab1c6 108 --with-encoding=latin1 \
f4c7b40d 109 --enable-shared \
110 --enable-kanji
f4a8a2ee 111%{__make}
49e058ba 112
113%install
114rm -rf $RPM_BUILD_ROOT
3984b7c7 115install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} \
116 $RPM_BUILD_ROOT%{_mandir}/pl/man1
842ab1c6 117
8bfe0f1c 118%{__perl} -pi -e 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile
c4af5858 119
bacca9a2
PG
120%{__make} install \
121 DESTDIR=$RPM_BUILD_ROOT
bb1d7181 122
bfc88ea4
ER
123install i18n-fonts-0.1/afm/*.afm $RPM_BUILD_ROOT%{_datadir}/a2ps/afm
124install i18n-fonts-0.1/fonts/*.pfb $RPM_BUILD_ROOT%{_datadir}/a2ps/fonts
3984b7c7 125install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1
9136753d 126
46bdc2f0
JB
127# it doesn't belong here (part of glibc in PLD case)
128%{__rm} $RPM_BUILD_ROOT%{_infodir}/regex.info
129
ee2b9d7b 130%find_lang %{name}
131
bb1d7181 132%clean
133rm -rf $RPM_BUILD_ROOT
134
c4af5858 135%post
47e8a5bf 136[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
842ab1c6 137/sbin/ldconfig
c4af5858 138
19eb8916 139%postun
47e8a5bf 140[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
19eb8916 141/sbin/ldconfig
49e058ba 142
ee2b9d7b 143%files -f %{name}.lang
253202e5 144%defattr(644,root,root,755)
9136753d 145%doc AUTHORS ChangeLog NEWS README THANKS
1011688d 146%dir %{_sysconfdir}
bfc88ea4
ER
147%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/a2ps.cfg
148%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/a2ps-site.cfg
46bdc2f0
JB
149%attr(755,root,root) %{_bindir}/a2ps
150%attr(755,root,root) %{_bindir}/card
151%attr(755,root,root) %{_bindir}/composeglyphs
152%attr(755,root,root) %{_bindir}/fixnt
153%attr(755,root,root) %{_bindir}/fixps
154%attr(755,root,root) %{_bindir}/ogonkify
155%attr(755,root,root) %{_bindir}/pdiff
156%attr(755,root,root) %{_bindir}/psmandup
157%attr(755,root,root) %{_bindir}/psset
158%attr(755,root,root) %{_bindir}/texi2dvi4a2ps
3f321ca1 159%attr(755,root,root) %{_libdir}/liba2ps.so.*.*.*
160%attr(755,root,root) %ghost %{_libdir}/liba2ps.so.1
46bdc2f0
JB
161%{_mandir}/man1/a2ps.1*
162%{_mandir}/man1/card.1*
163%{_mandir}/man1/fixps.1*
164%{_mandir}/man1/ogonkify.1*
165%{_mandir}/man1/pdiff.1*
166%{_mandir}/man1/psmandup.1*
167%{_mandir}/man1/psset.1*
168%{_mandir}/man1/texi2dvi4a2ps.1*
169%lang(pl) %{_mandir}/pl/man1/ogonkify.1*
82372bb1
JB
170%{_infodir}/a2ps.info*
171%{_infodir}/ogonkify.info*
842ab1c6 172
2f5e00bd 173%dir %{_datadir}/a2ps
8f471631 174%dir %{_datadir}/a2ps/afm
175%{_datadir}/a2ps/afm/*.afm
176%{_datadir}/a2ps/afm/*.map
177%attr(755,root,root) %{_datadir}/a2ps/afm/*.sh
178
06185f79 179%{_datadir}/a2ps/encoding
180%{_datadir}/a2ps/fonts
181%{_datadir}/a2ps/ppd
182%{_datadir}/a2ps/ps
183%{_datadir}/a2ps/sheets
8f471631 184
75b4d611
JR
185%dir %{_datadir}/ogonkify
186%{_datadir}/ogonkify/*.enc
187%{_datadir}/ogonkify/*.ps
b370eb7b 188%{_datadir}/ogonkify/afm
189%{_datadir}/ogonkify/fonts
8f471631 190
49e058ba 191%files devel
842ab1c6 192%defattr(644,root,root,755)
3f321ca1 193%attr(755,root,root) %{_libdir}/liba2ps.so
82372bb1
JB
194%{_libdir}/liba2ps.la
195%{_includedir}/liba2ps.h
49e058ba 196
197%files static
842ab1c6 198%defattr(644,root,root,755)
3f321ca1 199%{_libdir}/liba2ps.a
This page took 0.128386 seconds and 4 git commands to generate.