forked from pool/perl-String-CRC32
Accepting request 296841 from devel:languages:perl:autoupdate
- updated to 1.5 see /usr/share/doc/packages/perl-String-CRC32/ OBS-URL: https://build.opensuse.org/request/show/296841 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-String-CRC32?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
544fa04a72
commit
99de1111a7
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-String-CRC32
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,49 +16,46 @@
|
||||
#
|
||||
|
||||
|
||||
%define modname String-CRC32
|
||||
|
||||
Name: perl-%{modname}
|
||||
Version: 1.4
|
||||
Release: 1
|
||||
Name: perl-String-CRC32
|
||||
Version: 1.5
|
||||
Release: 0
|
||||
#Upstream: CRC algorithm code taken from CRC-32 by Craig Bruce. The module stuff is inspired by a similar perl module called String::CRC by David Sharnoff & Matthew Dillon. Horst Fickenscher told me that it could be useful to supply an init value to the crc checking function and so I included this possibility. the public domain.
|
||||
%define cpan_name String-CRC32
|
||||
Summary: Perl interface for cyclic redundency check generation
|
||||
License: SUSE-Public-Domain
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/String-CRC32/
|
||||
Source: http://www.cpan.org/authors/id/S/SO/SOENKE/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
License: Public Domain
|
||||
Group: Development/Libraries/Perl
|
||||
Source: %{modname}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
The CRC32 module calculates CRC sums of 32 bit lengths. It generates the same
|
||||
CRC values as ZMODEM, PKZIP, PICCHECK and many others.
|
||||
The *CRC32* module calculates CRC sums of 32 bit lenghts. It generates the
|
||||
same CRC values as ZMODEM, PKZIP, PICCHECK and many others.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Soenke J. Peters <peters__perl@opcenter.de>
|
||||
Despite its name, this module is able to compute the checksum of files as
|
||||
well as strings.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||
make
|
||||
make test
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc README
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorarch}/String
|
||||
%{perl_vendorarch}/auto/String
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user