Blame a2ps-h.spec

Bernhard M. Wiedemann f9c255
#
Bernhard M. Wiedemann f9c255
# spec file for package a2ps-h
Bernhard M. Wiedemann f9c255
#
Bernhard M. Wiedemann f9c255
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
Bernhard M. Wiedemann f9c255
#
Bernhard M. Wiedemann f9c255
# All modifications and additions to the file contributed by third parties
Bernhard M. Wiedemann f9c255
# remain the property of their copyright owners, unless otherwise agreed
Bernhard M. Wiedemann f9c255
# upon. The license for this file, and modifications and additions to the
Bernhard M. Wiedemann f9c255
# file, is the same license as for the pristine package itself (unless the
Bernhard M. Wiedemann f9c255
# license for the pristine package is not an Open Source License, in which
Bernhard M. Wiedemann f9c255
# case the license is the MIT License). An "Open Source License" is a
Bernhard M. Wiedemann f9c255
# license that conforms to the Open Source Definition (Version 1.9)
Bernhard M. Wiedemann f9c255
# published by the Open Source Initiative.
Bernhard M. Wiedemann f9c255
Bernhard M. Wiedemann f9c255
# Please submit bugfixes or comments via https://bugs.opensuse.org/
Bernhard M. Wiedemann f9c255
#
Bernhard M. Wiedemann f9c255
Bernhard M. Wiedemann f9c255
Bernhard M. Wiedemann f9c255
Name:           a2ps-h
Bernhard M. Wiedemann f9c255
Requires:       python
Bernhard M. Wiedemann f9c255
Version:        20010113
Bernhard M. Wiedemann f9c255
Release:        0
Bernhard M. Wiedemann f9c255
Summary:        a2ps Support for Korean PostScript Filter (Python Version)
Bernhard M. Wiedemann f9c255
License:        GPL-2.0-or-later
Bernhard M. Wiedemann f9c255
Source0:        a2ps-h.py
Bernhard M. Wiedemann f9c255
Source1:        a2ps-h-font.patch
Bernhard M. Wiedemann f9c255
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Bernhard M. Wiedemann f9c255
BuildArch:      noarch
Bernhard M. Wiedemann f9c255
Bernhard M. Wiedemann f9c255
%description
Bernhard M. Wiedemann f9c255
a2ps support for Korean PostScript filter (Python version).
Bernhard M. Wiedemann f9c255
Bernhard M. Wiedemann f9c255
%prep
Bernhard M. Wiedemann f9c255
Bernhard M. Wiedemann f9c255
%build
Bernhard M. Wiedemann f9c255
Bernhard M. Wiedemann f9c255
%install
Bernhard M. Wiedemann f9c255
mkdir -p %{buildroot}%{_prefix}/bin
Bernhard M. Wiedemann f9c255
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
Bernhard M. Wiedemann f9c255
install -m 755 %{SOURCE0} %{buildroot}%{_prefix}/bin/a2ps-h.py
Bernhard M. Wiedemann f9c255
head -n 18 %{SOURCE0} > %{buildroot}%{_defaultdocdir}/%{name}/Copyright
Bernhard M. Wiedemann f9c255
find %{buildroot}%{_prefix}/bin -name a2ps-h.py -exec patch {} %{SOURCE1} \;
Bernhard M. Wiedemann f9c255
Bernhard M. Wiedemann f9c255
%files
Bernhard M. Wiedemann f9c255
%dir %{_defaultdocdir}/%{name}
Bernhard M. Wiedemann f9c255
%{_defaultdocdir}/%{name}/Copyright
Bernhard M. Wiedemann f9c255
%attr(555, root, root) %{_prefix}/bin/a2ps-h.py
Bernhard M. Wiedemann f9c255
Bernhard M. Wiedemann f9c255
%changelog