8
0
Christian Wittmer
2011-03-04 18:45:51 +00:00
committed by Git OBS Bridge
parent 74ff057dea
commit eba4596edb
4 changed files with 47 additions and 37 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-PHP-Serialization
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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,45 +15,37 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
#Distribution: %dist
#Packager: %packager
#Vendor: %vendor
Name: perl-PHP-Serialization
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: De-/serialize() PHP output into Perl
Version: 0.32
Version: 0.34
Release: 1
License: artistic
Group: Applications/CPAN
Url: http://www.cpan.org
Source0: %{cpan_name}-%{version}.tar.gz
License: GPL+ or Artistic
%define cpan_name PHP-Serialization
Summary: De-/serialize() PHP output into Perl
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/PHP-Serialization/
#Source: http://www.cpan.org/authors/id/B/BO/BOBTFISH/PHP-Serialization-0.34.tar.gz
Source: %{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
#BuildRequires: perl(Module::Build)
%{perl_requires}
%description
%{cpan_name} module for perl
This module provides a quick, clean, and simple means of decoding/encoding PHP
serialized memory structures/objects into compatible Perl memory structures.
It provides both a Object oriented methodology, as well as function based
wrappers using the same calling interface
as PHP`s serialize()/unserialize() functions.
Author: Jesse Brown <jbrown@cpan.org>
Provides a simple, quick means of serializing perl memory structures
(including object data!) into a format that PHP can deserialize() and
access, and vice versa.
NOTE: Converts PHP arrays into Perl Arrays when the PHP array used
exclusively numeric indexes, and into Perl Hashes then the PHP array did
not.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%{__make}
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
@@ -63,14 +55,11 @@ CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
# normally you only need to check for doc files
%defattr(-,root,root)
%defattr(644,root,root,755)
%doc Changes README
%changelog
* Mon Aug 25 2008 - rpm@scorpio-it.net - 0.27
- initial Package