Files
perl-JIRA-REST/perl-JIRA-REST.spec
2025-08-12 18:14:54 +02:00

101 lines
3.2 KiB
RPMSpec

#
# spec file for package perl-JIRA-REST
#
# 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 JIRA-REST
Name: perl-JIRA-REST
Version: 0.24.0
Release: 0
%define cpan_version 0.024
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Thin wrapper around Jira's REST API
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/G/GN/GNUSTAVO/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Config::Identity) >= 0.0019
BuildRequires: perl(HTML::TreeBuilder)
BuildRequires: perl(HTTP::CookieJar::LWP)
BuildRequires: perl(HTTP::Status)
BuildRequires: perl(JSON) >= 2.23
BuildRequires: perl(REST::Client)
BuildRequires: perl(URI)
BuildRequires: perl(URI::Escape)
Requires: perl(Config::Identity) >= 0.0019
Requires: perl(HTML::TreeBuilder)
Requires: perl(HTTP::CookieJar::LWP)
Requires: perl(HTTP::Status)
Requires: perl(JSON) >= 2.23
Requires: perl(REST::Client)
Requires: perl(URI)
Requires: perl(URI::Escape)
Provides: perl(JIRA::REST) = %{version}
%undefine __perllib_provides
Recommends: perl(HTTP::Status)
%{perl_requires}
%description
at http://www.atlassian.com/software/jira/ is a proprietary bug tracking
system from Atlassian.
This module implements a very thin wrapper around Jira's REST APIs:
* * at https://docs.atlassian.com/software/jira/docs/api/REST/latest/
This rich API superseded the old Jira SOAP
API|http://docs.atlassian.com/software/jira/docs/api/rpc-jira-plugin/latest
/com/atlassian/jira/rpc/soap/JiraSoapService.html which isn't supported
anymore as of Jira version 7.
The endpoints of this API have a path prefix of '/rest/api/VERSION'.
* * at https://docs.atlassian.com/jira-servicedesk/REST/server/
This API deals with the objects of the Jira Service Desk application. Its
endpoints have a path prefix of '/rest/servicedeskapi'.
* * at https://docs.atlassian.com/jira-software/REST/server/
This API deals with the objects of the Jira Software application. Its
endpoints have a path prefix of '/rest/agile/VERSION'.
%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.md
%license LICENSE
%changelog