File perl-Quantum-Superpositions.spec of Package perl-Quantum-Superpositions
#
# spec file for package perl-Quantum-Superpositions
#
# Copyright (c) 2011 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Quantum-Superpositions
BuildRequires: perl-Class-Multimethods
BuildRequires: perl-macros
Version: 2.02
Release: 266
Requires: perl-Class-Multimethods
AutoReqProv: on
Group: Development/Libraries/Perl
License: Artistic-1.0
Url: http://cpan.org/modules/by-module/Quantum/
Source0: http://cpan.org/modules/by-module/Quantum/Quantum-Superpositions-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Qm-like superpositions for Perl
%{perl_requires}
%description
The Quantum::Superpositions module provides a new scalar data
structure: the superposition. In a metaphor drawn from quantum
mechanics, superpositions store a collection of values by overlaying
them in parallel superimposed states within a single scalar variable.
Authors:
--------
Damian Conway <damian@conway.org>
%prep
%setup -n Quantum-Superpositions-%{version}
%build
for f in `find . -type f -exec grep -l /usr/local/bin/perl \{\} \;` ; do
rm -f tmp
sed -e "s:^#!.*/usr/local/bin/perl:#!/usr/bin/perl:g" $f > tmp
mv -f tmp $f
done
perl Makefile.PL
make %{?_smp_mflags}
make test
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
chmod 644 Changes $RPM_BUILD_ROOT%{perl_vendorlib}/Quantum/Superpositions.pm
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc Changes demo
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Quantum
%{perl_vendorarch}/auto/Quantum
%changelog