%global pkg_name Net-OAuth %global pkg_version 0.03 %global rpm_pkg_version 0.03 %global rpm_pkg_release 1.n0i.1 Summary: Perl implementation of the OAuth protocol Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/modules/by-module//%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(Module::Build) BuildRequires: perl(Test::More) >= 0.66 BuildRequires: perl(Class::Accessor) >= 0.31 BuildRequires: perl(Class::Data::Inheritable) >= 0.06 BuildRequires: perl(Digest::HMAC_SHA1) >= 1.01 BuildRequires: perl(UNIVERSAL::require) >= 0.10 BuildRequires: perl(URI::Escape) >= 3.28 # not specified BuildRequires: perl(MIME::Base64) # for full tests BuildRequires: perl(Crypt::OpenSSL::RSA) Requires: perl(Class::Accessor) >= 0.31 Requires: perl(Class::Data::Inheritable) >= 0.06 Requires: perl(Digest::HMAC_SHA1) >= 1.01 Requires: perl(UNIVERSAL::require) >= 0.10 Requires: perl(URI::Escape) >= 3.28 %global perl_filter_req 'perl\\((Class::Accessor|Class::Data::Inheritable|Digest::HMAC_SHA1|UNIVERSAL::require|URI::Escape)\\)$' %description Net::OAuth is an implementation of the OAuth protocol. OAuth is an open protocol to allow secure API authentication in a simple and standard method from desktop and web applications: http://oauth.net/ %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README %{perl_files} %changelog * Mon Oct 15 2007 Marius Feraru - 0.03-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.14.11 - rebuild on perl 5.8.8