Files
perl-REST-Utils/perl-REST-Utils.spec

70 lines
2.0 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-REST-Utils
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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 http://bugs.opensuse.org/
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
Name: perl-REST-Utils
Version: 0.5
Release: 0
Summary: Utility functions for REST applications
License: GPL-2.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/J/JA/JALDHAR/REST-Utils-%{version}.tar.gz
Url: http://search.cpan.org/dist/REST-Utils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl-macros
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::WWW::Mechanize::CGI)
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description
This module contains some functions that are useful for implementing REST
applications.
%prep
%setup -q -n "REST-Utils-%{version}"
%build
%__perl ./Build.PL
./Build
%install
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist
%check
./Build test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc README LICENSE Changes
%dir %{perl_vendorlib}/REST
%{perl_vendorlib}/REST/Utils.pm
%doc %{perl_man3dir}/REST::Utils.%{perl_man3ext}%{ext_man}
%changelog