LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File a2ps-h.spec of Package a2ps-h (Project Publishing)

#
# spec file for package a2ps-h (Version 20010113)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#

# norootforbuild


Name:           a2ps-h
License:        GPL-2.0+
Group:          Hardware/Printing
Requires:       python
AutoReqProv:    on
Version:        20010113
Release:        657
Summary:        a2ps Support for Korean PostScript Filter (Python Version)
Source0:        a2ps-h.py
Source1:        a2ps-h-font.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
a2ps support for Korean PostScript filter (Python version).



Authors:
--------
    Hwang, ChiDeok <hwang@mizi.co.kr>

%prep

%build

%install
if [ -n "%{?buildroot}" ] ; then
   [ %{buildroot} != "/" ] && rm -rf %{buildroot}
fi
mkdir -p %{buildroot}%{_prefix}/bin
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
install -m 755 %{SOURCE0} %{buildroot}%{_prefix}/bin/a2ps-h.py
head -n 18 %{SOURCE0} > %{buildroot}%{_defaultdocdir}/%{name}/Copyright
find %{buildroot}%{_prefix}/bin -name a2ps-h.py -exec patch {} %{SOURCE1} \;

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%dir %{_defaultdocdir}/%{name}
%{_defaultdocdir}/%{name}/Copyright
%attr(555, root, root) %{_prefix}/bin/a2ps-h.py

%changelog