File perl-Quantum-Superpositions.spec of Package perl-Quantum-Superpositions
#
# spec file for package perl-Quantum-Superpositions (Version 2.02)
#
# Copyright (c) 2004 SuSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
# usedforbuild aaa_base acl attr bash bind-utils bison bzip2 coreutils cpio cpp cvs cyrus-sasl db devs diffutils e2fsprogs file filesystem fillup findutils flex gawk gdbm-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv kbd less libacl libattr libgcc libstdc++ libxcrypt m4 make man mktemp modutils ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-devel pam-modules patch permissions popt ps rcs readline sed sendmail shadow strace syslogd sysvinit tar texinfo timezone unzip util-linux vim zlib zlib-devel autoconf automake binutils cracklib gcc gdbm gettext libtool perl perl-Class-Multimethods rpm
Name: perl-Quantum-Superpositions
BuildRequires: perl-Class-Multimethods
Version: 2.02
Release: 71
Requires: perl-Class-Multimethods
Requires: perl = %{perl_version}
Autoreqprov: on
Group: Development/Libraries/Perl
License: Artistic License
URL: http://cpan.org/modules/by-module/Quantum/
Source0: http://cpan.org/modules/by-module/Quantum/Quantum-Superpositions-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Qm-like superpositions for Perl
%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
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
/var/adm/perl-modules/%{name}
%changelog -n perl-Quantum-Superpositions
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 11 2004 - adrian@suse.de
- build as user
* Fri Aug 22 2003 - mjancar@suse.cz
- require the perl version we build with
* Thu Jul 24 2003 - mjancar@suse.cz
- update to 2.02
* Thu Jul 17 2003 - mjancar@suse.cz
- adapt to perl-5.8.1
- use %%perl_process_packlist
* Wed Jun 18 2003 - coolo@suse.de
- package directories
* Tue May 20 2003 - mjancar@suse.cz
- remove unpackaged files
* Fri Dec 27 2002 - prehak@suse.cz
- updated to version 1.05
- added doc files
* Tue Jul 02 2002 - mls@suse.de
- remove race in .packlist generation
* Thu Aug 02 2001 - rvasice@suse.cz
- initial package release (version 1.03)