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:
Tomáš Chvátal 2019-03-17 15:28:24 +00:00 committed by Git OBS Bridge
parent fb70441e1b
commit 875062bfa8
2 changed files with 29 additions and 17 deletions

View File

@ -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

View File

@ -1,7 +1,7 @@
#
# 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
# 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)
# 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
Version: 4.14
Release: 0
Summary: Converts ASCII Text into PostScript
Summary: Tool to convert ASCII/Latin Text into PostScript
License: GPL-3.0-or-later
Group: Productivity/Publishing/PS
Url: http://www.gnu.org/software/a2ps/a2ps.html
@ -65,8 +65,6 @@ Requires: glibc
Requires: sed
Requires: w3m
Requires: wdiff
# FIXME: use proper Requires(pre/post/preun/...)
PreReq: %{install_info_prereq}
Requires(post): %{install_info_prereq}
Requires(preun): %{install_info_prereq}
Suggests: ImageMagick
@ -89,24 +87,30 @@ BuildRequires: texinfo
a2ps converts ASCII text into PostScript. This feature is used by
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
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
Summary: Library and header file for the interface of a2ps
Group: Development/Libraries/Other
Requires: %{name} = %{version}
Requires: glibc-devel
Provides: a2ps:%{_libdir}/liba2ps.a
Requires: liba2ps1 = %{version}
%description -n a2ps-devel
a2ps converts ASCII text into PostScript. This feature is used by
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
latin encodings are supported.
Latin encodings are supported.
%prep
%setup -q -n a2ps-4.14
@ -152,7 +156,7 @@ find -name Makefile.in | xargs touch
export LPR=lpr
export CC=gcc
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
con=""
pushd contrib
@ -193,7 +197,7 @@ find -name Makefile.in | xargs touch
fi
%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}/dir
%find_lang %{name}
@ -201,7 +205,6 @@ find -name Makefile.in | xargs touch
install -m 0755 %{SOURCE4} %{buildroot}/%{_bindir}/
%post
/sbin/ldconfig
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.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}/ogonkify.info.gz
%postun -p /sbin/ldconfig
%post -n liba2ps1 -p /sbin/ldconfig
%postun -n liba2ps1 -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ABOUT-NLS ChangeLog NEWS THANKS README doc/a2ps.html
%config %{_sysconfdir}/a2ps-site.cfg
%config %{_sysconfdir}/a2ps.cfg
@ -233,10 +236,11 @@ find -name Makefile.in | xargs touch
%{_datadir}/emacs/site-lisp/*.el
%{_datadir}/emacs/site-lisp/*.elc
%{_datadir}/ogonkify
%files -n liba2ps1
%{_libdir}/liba2ps.so.*
%files -n a2ps-devel
%defattr(-,root,root)
%{_includedir}/liba2ps.h
%{_libdir}/liba2ps.so