perl-SGMLS/perl-SGMLS.spec

66 lines
2.0 KiB
RPMSpec

#
# spec file for package perl-SGMLS (Version 1.03ii)
#
# Copyright (c) 2011 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/
#
Name: perl-SGMLS
Version: 1.03ii
Release: 528
License: LGPLv2.1+
Summary: SGML/XML Parsers
Url: http://www.garshol.priv.no/download/xmltools/prod/SGMLSpm.html
Group: Productivity/Publishing/SGML
Source: SGMLSpm-%version.tar.bz2
BuildRequires: perl perl-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%perl_requires
%description
SGMLSpm is a Perl script that reads ESIS output (from parsers like SP)
and offers an event-based interface to the parser. As long as the
parser can parse XML this also works for XML.
%prep
%setup -n SGMLSpm -q
%build
%install
mkdir -p %{buildroot}%perl_vendorlib
mkdir -p %{buildroot}%perl_vendorlib/SGMLS
mkdir -p %{buildroot}%{_prefix}/bin
install SGMLS.pm %{buildroot}%perl_vendorlib
install skel.pl %{buildroot}%perl_vendorlib
install Output.pm Refs.pm %{buildroot}%perl_vendorlib/SGMLS
install sgmlspl.pl %{buildroot}%{_bindir}/sgmlspl
mv DOC/sample.pl DOC/HTML/SGMLSpm/sample.pl
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING README BUGS ChangeLog TODO DOC/HTML/*
%dir %perl_vendorlib/SGMLS
%perl_vendorlib/SGMLS.pm
%perl_vendorlib/skel.pl
%perl_vendorlib/SGMLS/Output.pm
%perl_vendorlib/SGMLS/Refs.pm
%{_bindir}/sgmlspl
%changelog