Accepting request 685776 from home:jengelh:sct
- Implement shared library packaging policy. - Remove --with-pic which is useless with --disable-static. - Use noun phrase in summary. - Resolve PreReq FIXMEs. OBS-URL: https://build.opensuse.org/request/show/685776 OBS-URL: https://build.opensuse.org/package/show/Publishing/a2ps?expand=0&rev=76
This commit is contained in:
parent
fb70441e1b
commit
875062bfa8
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 17 10:41:39 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Implement shared library packaging policy.
|
||||||
|
- Remove --with-pic which is useless with --disable-static.
|
||||||
|
- Use noun phrase in summary.
|
||||||
|
- Resolve PreReq FIXMEs.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 16 14:40:35 UTC 2018 - werner@suse.de
|
Tue Oct 16 14:40:35 UTC 2018 - werner@suse.de
|
||||||
|
|
||||||
|
38
a2ps.spec
38
a2ps.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package a2ps
|
# spec file for package a2ps
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,14 +12,14 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: a2ps
|
Name: a2ps
|
||||||
Version: 4.14
|
Version: 4.14
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Converts ASCII Text into PostScript
|
Summary: Tool to convert ASCII/Latin Text into PostScript
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
Group: Productivity/Publishing/PS
|
Group: Productivity/Publishing/PS
|
||||||
Url: http://www.gnu.org/software/a2ps/a2ps.html
|
Url: http://www.gnu.org/software/a2ps/a2ps.html
|
||||||
@ -65,8 +65,6 @@ Requires: glibc
|
|||||||
Requires: sed
|
Requires: sed
|
||||||
Requires: w3m
|
Requires: w3m
|
||||||
Requires: wdiff
|
Requires: wdiff
|
||||||
# FIXME: use proper Requires(pre/post/preun/...)
|
|
||||||
PreReq: %{install_info_prereq}
|
|
||||||
Requires(post): %{install_info_prereq}
|
Requires(post): %{install_info_prereq}
|
||||||
Requires(preun): %{install_info_prereq}
|
Requires(preun): %{install_info_prereq}
|
||||||
Suggests: ImageMagick
|
Suggests: ImageMagick
|
||||||
@ -89,24 +87,30 @@ BuildRequires: texinfo
|
|||||||
a2ps converts ASCII text into PostScript. This feature is used by
|
a2ps converts ASCII text into PostScript. This feature is used by
|
||||||
apsfilter, for example, to pretty-print ASCII text.
|
apsfilter, for example, to pretty-print ASCII text.
|
||||||
|
|
||||||
Warning: a2ps is not able to convert complex unicode (UTF-8) text to
|
Warning: a2ps is not able to convert complex Unicode (UTF-8) text to
|
||||||
PostScript. Only language text which can be converted from UTF-8 to
|
PostScript. Only language text which can be converted from UTF-8 to
|
||||||
latin encodings are supported.
|
Latin encodings are supported.
|
||||||
|
|
||||||
|
%package -n liba2ps1
|
||||||
|
Summary: Library to convert ASCII/Latin text into PostScript
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n liba2ps1
|
||||||
|
liba2ps converts ASCII text into PostScript.
|
||||||
|
|
||||||
%package -n a2ps-devel
|
%package -n a2ps-devel
|
||||||
Summary: Library and header file for the interface of a2ps
|
Summary: Library and header file for the interface of a2ps
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
Requires: %{name} = %{version}
|
|
||||||
Requires: glibc-devel
|
Requires: glibc-devel
|
||||||
Provides: a2ps:%{_libdir}/liba2ps.a
|
Requires: liba2ps1 = %{version}
|
||||||
|
|
||||||
%description -n a2ps-devel
|
%description -n a2ps-devel
|
||||||
a2ps converts ASCII text into PostScript. This feature is used by
|
a2ps converts ASCII text into PostScript. This feature is used by
|
||||||
apsfilter, for example, to pretty-print ASCII text.
|
apsfilter, for example, to pretty-print ASCII text.
|
||||||
|
|
||||||
Warning: a2ps is not able to convert complex unicode (UTF-8) text to
|
Warning: a2ps is not able to convert complex Unicode (UTF-8) text to
|
||||||
PostScript. Only language text which can be converted from UTF-8 to
|
PostScript. Only language text which can be converted from UTF-8 to
|
||||||
latin encodings are supported.
|
Latin encodings are supported.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n a2ps-4.14
|
%setup -q -n a2ps-4.14
|
||||||
@ -152,7 +156,7 @@ find -name Makefile.in | xargs touch
|
|||||||
export LPR=lpr
|
export LPR=lpr
|
||||||
export CC=gcc
|
export CC=gcc
|
||||||
export TZ=UTC
|
export TZ=UTC
|
||||||
%configure --enable-shared --disable-static --with-pic --with-medium=LC_PAPER \
|
%configure --enable-shared --disable-static --with-medium=LC_PAPER \
|
||||||
--with-encoding=LC_CTYPE
|
--with-encoding=LC_CTYPE
|
||||||
con=""
|
con=""
|
||||||
pushd contrib
|
pushd contrib
|
||||||
@ -193,7 +197,7 @@ find -name Makefile.in | xargs touch
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot} PSFONT_PATH=%{_datadir}/ghostscript/fonts
|
%make_install PSFONT_PATH=%{_datadir}/ghostscript/fonts
|
||||||
rm -r %{buildroot}/%{_infodir}/regex*
|
rm -r %{buildroot}/%{_infodir}/regex*
|
||||||
rm -r %{buildroot}/%{_infodir}/dir
|
rm -r %{buildroot}/%{_infodir}/dir
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
@ -201,7 +205,6 @@ find -name Makefile.in | xargs touch
|
|||||||
install -m 0755 %{SOURCE4} %{buildroot}/%{_bindir}/
|
install -m 0755 %{SOURCE4} %{buildroot}/%{_bindir}/
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||||
%install_info --info-dir=%{_infodir} %{_infodir}/ogonkify.info.gz
|
%install_info --info-dir=%{_infodir} %{_infodir}/ogonkify.info.gz
|
||||||
|
|
||||||
@ -209,10 +212,10 @@ find -name Makefile.in | xargs touch
|
|||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/ogonkify.info.gz
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/ogonkify.info.gz
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%post -n liba2ps1 -p /sbin/ldconfig
|
||||||
|
%postun -n liba2ps1 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc AUTHORS COPYING ABOUT-NLS ChangeLog NEWS THANKS README doc/a2ps.html
|
%doc AUTHORS COPYING ABOUT-NLS ChangeLog NEWS THANKS README doc/a2ps.html
|
||||||
%config %{_sysconfdir}/a2ps-site.cfg
|
%config %{_sysconfdir}/a2ps-site.cfg
|
||||||
%config %{_sysconfdir}/a2ps.cfg
|
%config %{_sysconfdir}/a2ps.cfg
|
||||||
@ -233,10 +236,11 @@ find -name Makefile.in | xargs touch
|
|||||||
%{_datadir}/emacs/site-lisp/*.el
|
%{_datadir}/emacs/site-lisp/*.el
|
||||||
%{_datadir}/emacs/site-lisp/*.elc
|
%{_datadir}/emacs/site-lisp/*.elc
|
||||||
%{_datadir}/ogonkify
|
%{_datadir}/ogonkify
|
||||||
|
|
||||||
|
%files -n liba2ps1
|
||||||
%{_libdir}/liba2ps.so.*
|
%{_libdir}/liba2ps.so.*
|
||||||
|
|
||||||
%files -n a2ps-devel
|
%files -n a2ps-devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_includedir}/liba2ps.h
|
%{_includedir}/liba2ps.h
|
||||||
%{_libdir}/liba2ps.so
|
%{_libdir}/liba2ps.so
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user