156 lines
5.2 KiB
RPMSpec
156 lines
5.2 KiB
RPMSpec
#
|
|
# spec file for package perl-Vimana
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%define cpan_name Vimana
|
|
Name: perl-Vimana
|
|
Version: 2.260.0
|
|
Release: 0
|
|
# 2.26 -> normalize -> 2.260.0
|
|
%define cpan_version 2.26
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Vim script port manager
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/C/CO/CORNELIUS/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(App::CLI) >= 0.08
|
|
BuildRequires: perl(Archive::Extract)
|
|
BuildRequires: perl(Archive::Zip)
|
|
BuildRequires: perl(DateTime)
|
|
BuildRequires: perl(Exporter::Lite)
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
BuildRequires: perl(File::Path) >= 2.07
|
|
BuildRequires: perl(File::Type)
|
|
BuildRequires: perl(HTML::Entities)
|
|
BuildRequires: perl(HTTP::Lite)
|
|
BuildRequires: perl(JSON::PP)
|
|
BuildRequires: perl(LWP::Simple)
|
|
BuildRequires: perl(LWP::UserAgent)
|
|
BuildRequires: perl(Mouse)
|
|
BuildRequires: perl(Path::Class)
|
|
BuildRequires: perl(Regexp::Common)
|
|
BuildRequires: perl(Test::More) >= 0.92
|
|
BuildRequires: perl(URI) >= 1.37
|
|
BuildRequires: perl(Web::Scraper)
|
|
BuildRequires: perl(YAML)
|
|
BuildRequires: perl(parent)
|
|
Requires: perl(App::CLI) >= 0.08
|
|
Requires: perl(Archive::Extract)
|
|
Requires: perl(Archive::Zip)
|
|
Requires: perl(DateTime)
|
|
Requires: perl(Exporter::Lite)
|
|
Requires: perl(File::Path) >= 2.07
|
|
Requires: perl(File::Type)
|
|
Requires: perl(HTML::Entities)
|
|
Requires: perl(HTTP::Lite)
|
|
Requires: perl(JSON::PP)
|
|
Requires: perl(LWP::Simple)
|
|
Requires: perl(LWP::UserAgent)
|
|
Requires: perl(Mouse)
|
|
Requires: perl(Path::Class)
|
|
Requires: perl(Regexp::Common)
|
|
Requires: perl(URI) >= 1.37
|
|
Requires: perl(Web::Scraper)
|
|
Requires: perl(YAML)
|
|
Requires: perl(parent)
|
|
Provides: perl(Vimana) = %{version}
|
|
Provides: perl(Vimana::Archive)
|
|
Provides: perl(Vimana::Command)
|
|
Provides: perl(Vimana::Command::Download)
|
|
Provides: perl(Vimana::Command::Help)
|
|
Provides: perl(Vimana::Command::Info)
|
|
Provides: perl(Vimana::Command::Install)
|
|
Provides: perl(Vimana::Command::Installed)
|
|
Provides: perl(Vimana::Command::Rate)
|
|
Provides: perl(Vimana::Command::Remove)
|
|
Provides: perl(Vimana::Command::Search)
|
|
Provides: perl(Vimana::Command::Update)
|
|
Provides: perl(Vimana::Command::Upgrade)
|
|
Provides: perl(Vimana::GitInstall)
|
|
Provides: perl(Vimana::Index)
|
|
Provides: perl(Vimana::Installer)
|
|
Provides: perl(Vimana::Installer::Auto)
|
|
Provides: perl(Vimana::Installer::Makefile)
|
|
Provides: perl(Vimana::Installer::Meta)
|
|
Provides: perl(Vimana::Installer::Rakefile)
|
|
Provides: perl(Vimana::Installer::Text)
|
|
Provides: perl(Vimana::Installer::Vimball)
|
|
Provides: perl(Vimana::Logger)
|
|
Provides: perl(Vimana::Logger::Compat)
|
|
Provides: perl(Vimana::Record)
|
|
Provides: perl(Vimana::Recursive) = 0.380.0
|
|
Provides: perl(Vimana::Util)
|
|
Provides: perl(Vimana::VimOnline)
|
|
Provides: perl(Vimana::VimOnline::ScriptPage)
|
|
Provides: perl(Vimana::VimOnline::Search)
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
# MANUAL BEGIN
|
|
BuildRequires: vim
|
|
BuildRequires: perl(Data::Util)
|
|
Requires: vim
|
|
# MANUAL END
|
|
|
|
%description
|
|
Vimana is an easy to use system for searching , installing, and downloading
|
|
vim script.
|
|
|
|
Vimana provides a command-line interface such like 'aptitude' programe on
|
|
Debian linux, for you to search , download , install , upgrade scripts from
|
|
http://www.vim.org (vimonline site).
|
|
|
|
Vimana can install a vim script package to your vim runtime path
|
|
automatically by inspecting the content of archive file or vim script. For
|
|
example , if an archive file contains 'syntax','plugin','indent' directory
|
|
, then these files should be installed to _~/.vim/_ directory (default vim
|
|
runtime directory). if it's a vim color scheme , then it should be put into
|
|
_~/.vim/colors/_, or Vimana will inspect the script type tag in script
|
|
file.
|
|
|
|
* Getting started from Vimana::Manual.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
# MANUAL BEGIN
|
|
rm t/*online* t/*update*
|
|
# MANUAL END
|
|
|
|
%build
|
|
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
# MANUAL BEGIN
|
|
sed -i "s/env perl/perl/" %{buildroot}%{_bindir}/*
|
|
# MANUAL END
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README.mkd todo
|
|
|
|
%changelog
|