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