2010-04-29 14:44:44 +00:00
|
|
|
#
|
2011-11-18 11:34:45 +00:00
|
|
|
# spec file for package perl-Perl-Tidy
|
2010-04-29 14:44:44 +00:00
|
|
|
#
|
2013-06-10 10:35:31 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-04-29 14:44:44 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2010-10-13 23:13:00 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2010-12-19 13:07:54 +00:00
|
|
|
|
2010-10-13 23:13:00 +00:00
|
|
|
Name: perl-Perl-Tidy
|
|
|
|
|
%define cpan_name Perl-Tidy
|
|
|
|
|
Summary: Parses and beautifies perl source
|
2011-12-19 10:52:53 +00:00
|
|
|
License: GPL-2.0+
|
2010-10-13 23:13:00 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-06-10 10:35:31 +00:00
|
|
|
Version: 20121207
|
2011-12-19 10:52:53 +00:00
|
|
|
Release: 0
|
2010-10-13 23:13:00 +00:00
|
|
|
Url: http://search.cpan.org/dist/Perl-Tidy/
|
2011-12-19 10:52:53 +00:00
|
|
|
Source: http://www.cpan.org/modules/by-module/Perl/Perl-Tidy-%{version}.tar.gz
|
2010-10-13 23:13:00 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 14:46:55 +00:00
|
|
|
%{perl_requires}
|
2010-10-13 23:13:00 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl-macros
|
2010-04-29 14:44:44 +00:00
|
|
|
|
|
|
|
|
%description
|
2010-10-13 23:13:00 +00:00
|
|
|
This module makes the functionality of the perltidy utility available to
|
|
|
|
|
perl scripts. Any or all of the input parameters may be omitted, in which
|
|
|
|
|
case the @ARGV array will be used to provide input parameters as described
|
|
|
|
|
in the perltidy(1) man page.
|
2010-04-29 14:44:44 +00:00
|
|
|
|
|
|
|
|
%prep
|
2010-10-13 23:13:00 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
### rpmlint
|
|
|
|
|
# wrong-file-end-of-line-encoding
|
|
|
|
|
%{__perl} -p -i -e 's|\r\n|\n|' examples/pt.bat
|
|
|
|
|
# spurious-executable-perm
|
|
|
|
|
%{__chmod} 0644 pm2pl
|
2010-04-29 14:44:44 +00:00
|
|
|
|
|
|
|
|
%build
|
2010-10-13 23:13:00 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
%{__make} %{?_smp_mflags}
|
2010-04-29 14:44:44 +00:00
|
|
|
|
|
|
|
|
%check
|
2010-10-13 23:13:00 +00:00
|
|
|
%{__make} test
|
2010-04-29 14:44:44 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%perl_make_install
|
2010-10-13 23:13:00 +00:00
|
|
|
# do not perl_process_packlist (noarch)
|
|
|
|
|
# remove .packlist file
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
|
|
|
|
# remove perllocal.pod file
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
2010-04-29 14:44:44 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
|
|
%clean
|
2010-10-13 23:13:00 +00:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2010-04-29 14:44:44 +00:00
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2010-10-13 23:13:00 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc BUGS CHANGES COPYING Makefile.npm pm2pl README TODO examples
|
2010-04-29 14:44:44 +00:00
|
|
|
|
|
|
|
|
%changelog
|