Christian Wittmer
2011-01-15 12:18:28 +00:00
committed by Git OBS Bridge
parent 57d395731d
commit 062723a072
4 changed files with 115 additions and 85 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Data-Serializer
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# spec file for package perl-Data-Serializer (Version 0.56)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,119 +15,101 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
#Distribution: %dist
#Packager: %packager
#Vendor: %vendor
Name: perl-Data-Serializer
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Modules that serialize data structures
Version: 0.49
Version: 0.56
Release: 1
License: GPL/artistic
License: GPL+ or Artistic
%define cpan_name Data-Serializer
Summary: Modules that serialize data structures
Url: http://search.cpan.org/dist/Data-Serializer/
Group: Development/Libraries/Perl
Url: http://www.cpan.org
Source0: %{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
#Source: http://www.cpan.org/authors/id/N/NE/NEELY/Data-Serializer-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildRequires: perl(AutoLoader)
BuildRequires: perl(Exporter)
BuildRequires: perl(Data::Dumper) >= 2.08
BuildRequires: perl(IO::File)
BuildRequires: perl(MIME::Base64)
BuildRequires: perl(Storable)
# other not perl || perl-base
BuildRequires: perl(Compress::Zlib)
BuildRequires: perl(Bencode)
#BuildRequires: perl(Compress::PPMd)
BuildRequires: perl(Config::General)
BuildRequires: perl(Crypt::CBC)
BuildRequires: perl(Convert::Bencode)
BuildRequires: perl(Convert::Bencode_XS)
BuildRequires: perl(Crypt::Blowfish)
BuildRequires: perl(Crypt::CBC)
BuildRequires: perl(Data::Denter)
BuildRequires: perl(Data::Dumper) >= 2.08
BuildRequires: perl(Data::Taxi)
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(Digest::SHA1)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Spec)
BuildRequires: perl(FreezeThaw)
BuildRequires: perl(IO::File)
BuildRequires: perl(JSON)
BuildRequires: perl(JSON::XS)
BuildRequires: perl(JSON::Syck)
BuildRequires: perl(JSON::XS)
BuildRequires: perl(PHP::Serialization)
BuildRequires: perl(XML::Simple)
BuildRequires: perl(XML::Dumper)
BuildRequires: perl(XML::Simple)
BuildRequires: perl(YAML)
BuildRequires: perl(YAML::Syck)
# Compress::PPMd not available for 64bit
#%ifarch ix86
#BuildRequires: perl(Compress::PPMd)
#Requires: perl(Compress::PPMd)
#%endif
Requires: perl(AutoLoader)
Requires: perl(Exporter)
Requires: perl(Data::Dumper) >= 2.08
Requires: perl(IO::File)
Requires: perl(MIME::Base64)
Requires: perl(Storable)
# other not perl || perl-base
Requires: perl(Compress::Zlib)
Requires: perl(Config::General)
Requires: perl(Crypt::CBC)
Requires: perl(Crypt::Blowfish)
Requires: perl(Data::Denter)
Requires: perl(Data::Taxi)
Requires: perl(Digest::SHA)
Requires: perl(Digest::SHA1)
Requires: perl(FreezeThaw)
Requires: perl(JSON)
Requires: perl(JSON::XS)
Requires: perl(JSON::Syck)
Requires: perl(PHP::Serialization)
Requires: perl(XML::Simple)
Requires: perl(XML::Dumper)
Requires: perl(YAML)
Requires: perl(YAML::Syck)
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build)
Requires: perl(AutoLoader)
Requires: perl(Bencode)
#Requires: perl(Compress::PPMd)
Requires: perl(Config::General)
Requires: perl(Convert::Bencode)
Requires: perl(Convert::Bencode_XS)
Requires: perl(Crypt::Blowfish)
Requires: perl(Crypt::CBC)
Requires: perl(Data::Denter)
Requires: perl(Data::Dumper) >= 2.08
Requires: perl(Data::Taxi)
Requires: perl(Digest::SHA)
Requires: perl(Digest::SHA1)
Requires: perl(Exporter)
Requires: perl(FreezeThaw)
Requires: perl(IO::File)
Requires: perl(JSON)
Requires: perl(JSON::Syck)
Requires: perl(JSON::XS)
Requires: perl(PHP::Serialization)
Requires: perl(XML::Dumper)
Requires: perl(XML::Simple)
Requires: perl(YAML)
Requires: perl(YAML::Syck)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{perl_requires}
%description
%{cpan_name} module for perl
Provides a unified interface to the various serializing modules
currently available. Adds the functionality of both compression and
encryption.
Author: Neil Neely <neil (at) neely.cx>
Provides a unified interface to the various serializing modules currently
available. Adds the functionality of both compression and encryption.
By default the Data::Serializer(3) manpage adds minor metadata and encodes
serialized data structures in it's own format. If you are looking for a
simple unified pass through interface to the underlying serializers then
look into the Data::Serializer::Raw(3) manpage that comes bundled with the
Data::Serializer(3) manpage.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" perl Build.PL --prefix $RPM_BUILD_ROOT/usr --installdirs vendor
./Build
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install
%perl_process_packlist
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root)
%doc Changes INSTALL README
%defattr(644,root,root,755)
%doc Changes examples README
%changelog
* Mon Aug 25 2008 - rpm@scorpio-it.net - 0.48
- initial Package