2011-11-17 16:48:44 +01:00
|
|
|
#
|
|
|
|
# spec file for package perl-Sort-Versions
|
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2006-10-31 16:18:32 +01:00
|
|
|
%define modname Sort-Versions
|
2011-11-17 16:48:44 +01:00
|
|
|
|
2006-10-31 16:18:32 +01:00
|
|
|
Name: perl-%{modname}
|
|
|
|
Version: 1.5
|
|
|
|
Release: 1
|
|
|
|
Summary: A perl 5 module for sorting of revision (and similar) numbers
|
|
|
|
BuildRequires: perl
|
2010-12-03 15:50:09 +01:00
|
|
|
BuildRequires: perl-macros
|
2006-10-31 16:18:32 +01:00
|
|
|
License: GPL/Artistic
|
|
|
|
Group: Development/Libraries/Perl
|
2011-11-17 16:48:44 +01:00
|
|
|
Source: %{modname}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 15:50:09 +01:00
|
|
|
%{perl_requires}
|
2006-10-31 16:18:32 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module allows easy sorting (via comparisons) of mixed text and numeric
|
|
|
|
strings, similar to the complex "version numbers" that many revision control
|
|
|
|
packages and shared library systems use.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ed Avis <ed@membled.com>
|
|
|
|
Matt Johnson <mwj99@doc.ic.ac.uk>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
|
|
make
|
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc README Changes
|
|
|
|
%doc %{_mandir}/man?/*
|
2008-12-23 14:18:09 +01:00
|
|
|
%{perl_vendorlib}/Sort
|
|
|
|
%{perl_vendorarch}/auto/Sort
|
2006-10-31 16:18:32 +01:00
|
|
|
|
|
|
|
%changelog
|