88 lines
3.1 KiB
RPMSpec
88 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package perl-WWW-Google-URLShortener
|
|
#
|
|
# 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 WWW-Google-URLShortener
|
|
Name: perl-WWW-Google-URLShortener
|
|
Version: 0.240.0
|
|
Release: 0
|
|
# 0.24 -> normalize -> 0.240.0
|
|
%define cpan_version 0.24
|
|
License: Artistic-2.0
|
|
Summary: Interface to Google URL Shortener API
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: WWW-Google-URLShortener-0.24.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Data::Validate::Domain) >= 0.10
|
|
BuildRequires: perl(Data::Validate::URI) >= 0.60.0
|
|
BuildRequires: perl(JSON) >= 2.53
|
|
BuildRequires: perl(Moo) >= 2.000000
|
|
BuildRequires: perl(WWW::Google::UserAgent) >= 0.200
|
|
BuildRequires: perl(namespace::clean) >= 0.24
|
|
Requires: perl(Data::Validate::Domain) >= 0.10
|
|
Requires: perl(Data::Validate::URI) >= 0.60.0
|
|
Requires: perl(JSON) >= 2.53
|
|
Requires: perl(Moo) >= 2.000000
|
|
Requires: perl(WWW::Google::UserAgent) >= 0.200
|
|
Requires: perl(namespace::clean) >= 0.24
|
|
Provides: perl(WWW::Google::URLShortener) = %{version}
|
|
Provides: perl(WWW::Google::URLShortener::Analytics) = %{version}
|
|
Provides: perl(WWW::Google::URLShortener::Analytics::Result) = %{version}
|
|
Provides: perl(WWW::Google::URLShortener::Analytics::Result::Browser) = %{version}
|
|
Provides: perl(WWW::Google::URLShortener::Analytics::Result::Country) = %{version}
|
|
Provides: perl(WWW::Google::URLShortener::Analytics::Result::Platform) = %{version}
|
|
Provides: perl(WWW::Google::URLShortener::Analytics::Result::Referrer) = %{version}
|
|
Provides: perl(WWW::Google::URLShortener::Params) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
The Google URL Shortener at goo.gl is a service that takes long URLs and
|
|
squeezes them into fewer characters to make a link that is easier to share,
|
|
tweet or email to friends. Currently it supports version v1.
|
|
|
|
The official Google API document can be found at
|
|
https://developers.google.com/url-shortener/v1/getting_started.
|
|
|
|
IMPORTANT: The version v1 of Google URL Shortener API is in Labs and its
|
|
features might change unexpectedly until it graduates.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%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 README
|
|
%license LICENSE
|
|
|
|
%changelog
|