Files
perl-App-Maisha/perl-App-Maisha.spec
2025-08-12 18:11:46 +02:00

86 lines
2.8 KiB
RPMSpec

#
# spec file for package perl-App-Maisha
#
# 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 App-Maisha
Name: perl-App-Maisha
Version: 0.220.0
Release: 0
# 0.22 -> normalize -> 0.220.0
%define cpan_version 0.22
License: Artistic-2.0
Summary: Command line social micro-blog networking tool
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BA/BARBIE/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::Accessor::Fast)
BuildRequires: perl(Config::Any)
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(Module::Pluggable) >= 2.7
BuildRequires: perl(Net::Twitter) >= 3.18003
BuildRequires: perl(Term::Shell)
BuildRequires: perl(Test::More) >= 0.70
Requires: perl(Class::Accessor::Fast)
Requires: perl(Config::Any)
Requires: perl(File::HomeDir)
Requires: perl(Module::Pluggable) >= 2.7
Requires: perl(Net::Twitter) >= 3.18003
Requires: perl(Term::Shell)
Requires: perl(Test::More) >= 0.70
Provides: perl(App::Maisha) = %{version}
Provides: perl(App::Maisha::Plugin::Base) = %{version}
Provides: perl(App::Maisha::Plugin::Identica) = %{version}
Provides: perl(App::Maisha::Plugin::Test) = %{version}
Provides: perl(App::Maisha::Plugin::Twitter) = %{version}
Provides: perl(App::Maisha::Shell) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
This distribution provides the ability to micro-blog via social networking
websites and services, such as Identica and Twitter.
For further information regarding the commands and configuration, please
see the 'maisha' script included with this distribution.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes examples README
%license LICENSE
%changelog