Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1486166
 поиск   регистрация   авторизация 
 
Группа :: Разработка/Прочее
Пакет: cpan2rpm

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Name: cpan2rpm
Version: 2.027
Release: alt0.0.M24.0.5

Summary: cpan2rpm - A Perl module packager

Packager: Vitaly Lipatov <lav at altlinux.ru>

License: GPL
Group: Development/Other
Url: http://perl.arix.com/cpan2rpm/

BuildArch: noarch
Source: %name-%version.tar.bz2
Patch: %name-%version-alt.patch

# Automatically added by buildreq on Sun Feb 27 2005

BuildRequires: perl-Compress-Zlib perl-URI perl-devel perl-libwww-perl

%description
This script generates an RPM package from a Perl module.  It uses the
standard RPM file structure and creates a spec file, a source RPM,
and a binary, leaving these in their respective directories.

The script can operate on local files, directories, urls and CPAN
module names.  Install this package if you want to create RPMs out of
Perl modules.

The syntax for cpan2rpm supports multiple *distribution* names, which
can take one of four different forms:

1. a CPAN module name (e.g. XML::Simple) - When a module name is passed,
  the script will "walk" search.cpan.org to determine the latest distribution.
  If an exact match is not found, the CPAN module is used to make
  this determination.  If you have not yet configured this module,
  please refer to the REQUIREMENTS section below for further instructions.

2. a URL (both http:// and ftp:// style locators will work) -
  In this and the above case, an automatic download of the needed tarball
  is performed (see notes for how).  The tarball is deposited in the SOURCES
  directory.

3. a path to a tarball (e.g. /tmp/XML-Simple-1.05.tar.gz) -
  In this case, the tarball indicated gets copied to the SOURCES directory.

4. a directory path - The directory specified must contain a Makefile.PL.
  If the user intends to build a package from a directory
  (i.e. user does NOT specify --spec-only), the commands:

   perl Makefile.PL
   make
   make dist

will be performed in that directory in order to create the tarball
necessary for package creation.

%prep
%setup -q
%patch -p0 -b .orig
%__subst "s|.*system.*||g" Makefile.PL

%build
# Do not build spec, it is unneeded
>cpan2rpm.spec
%perl_vendor_build

%install
%perl_vendor_install

%files
%_bindir/*
%_man1dir/*
%doc README Changes

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005