File dtd2vim.spec of Package dtd2vim

#
# spec file for package dtd2vim
#
# Copyright (c) 2018 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
# 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 https://bugs.opensuse.org/
#


Name:           dtd2vim
Version:        2.0+git.1728599345.aa30284
Release:        0
Summary:        Script for creation XML data file for Vim7 XML omni-completion from DTDs
License:        GPL-2.0-only
Group:          Productivity/Publishing/XML
URL:            https://www.vim.org/scripts/script.php?script_id=1462
Source0:        dtd2vim-%{version}.tar.gz
BuildRequires:  perl-SGML
BuildRequires:  python3-docutils
Requires:       perl-SGML
BuildArch:      noarch

%description
This script generates XML files which vim7+/neovim can use for
omni-completion.

%prep
%autosetup -p1
sed -i -e '1s/bin\/env perl/usr\/bin\/perl/' dtd2vim

%build
rst2man dtd2vim.rst dtd2vim.1

%install
install -p -D dtd2vim %{buildroot}%{_bindir}/dtd2vim
install -m 0644 -D dtd2vim %{buildroot}%{_mandir}/man1/dtd2vim.1

%files
%{_bindir}/dtd2vim
%{_mandir}/man1/dtd2vim.*

%changelog
openSUSE Build Service is sponsored by