commit 934aab2098e1fe2743cc67877e435e4fad7ce922 Author: Ruediger Landmann <r.landmann@xxxxxxxxxx> Date: Mon Mar 14 16:00:16 2011 +1000 New package .gitignore | 1 + perl-JSON-Util.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 53 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..b5684f9 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/JSON-Util-0.05.tar.gz diff --git a/perl-JSON-Util.spec b/perl-JSON-Util.spec new file mode 100644 index 0000000..46be28e --- /dev/null +++ b/perl-JSON-Util.spec @@ -0,0 +1,51 @@ +Name: perl-JSON-Util +Version: 0.05 +Release: 1%{?dist} +Summary: Easy and portable encode/decode of JSON +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/JSON-Util/ +Source0: http://www.cpan.org/authors/id/J/JK/JKUTEJ/JSON-Util-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(IO::Any) +BuildRequires: perl(JSON::XS) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Test::Differences) +BuildRequires: perl(Test::Exception) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Provides methods to encode and decode JSON. + +%prep +%setup -q -n JSON-Util-%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +rm -rf $RPM_BUILD_ROOT + +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Jan 17 2011 RÃdiger Landmann <r.landmann@xxxxxxxxxx> 0.05-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..ee776ed 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f770285c478750100b6b0765c4a914a6 JSON-Util-0.05.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel