|
@@ -32,11 +32,11 @@ Packager: The OpenPKG Project
|
|
|
Distribution: OpenPKG [EXP]
|
|
Distribution: OpenPKG [EXP]
|
|
|
Group: Development
|
|
Group: Development
|
|
|
License: GPL
|
|
License: GPL
|
|
|
-Version: 20011231
|
|
|
|
|
|
|
+Version: 20020225
|
|
|
Release: 20020206
|
|
Release: 20020206
|
|
|
|
|
|
|
|
# list of sources
|
|
# list of sources
|
|
|
-Source0: http://prdownloads.sourceforge.net/perltidy/perltidy-%{version}.tgz
|
|
|
|
|
|
|
+Source0: http://prdownloads.sourceforge.net/perltidy/Perl-Tidy-%{version}.tar.gz
|
|
|
|
|
|
|
|
# build information
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
Prefix: %{l_prefix}
|
|
@@ -52,7 +52,7 @@ AutoReqProv: no
|
|
|
in perlstyle(1).
|
|
in perlstyle(1).
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
|
- %setup -q
|
|
|
|
|
|
|
+ %setup -q -n Perl-Tidy-%{version}
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
|
|
|
|
|
@@ -60,14 +60,16 @@ AutoReqProv: no
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin \
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/libexec/perltidy/Perl \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/man/man1
|
|
$RPM_BUILD_ROOT%{l_prefix}/man/man1
|
|
|
%{l_shtool} install -c -m 755 \
|
|
%{l_shtool} install -c -m 755 \
|
|
|
- -e 's;#!/usr/bin/env perl;#!%{l_prefix}/bin/perl;g' \
|
|
|
|
|
- perltidy \
|
|
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/bin/
|
|
|
|
|
|
|
+ -e 's;#!/usr/bin/perl;#!%{l_prefix}/bin/perl;g' \
|
|
|
|
|
+ -e 's:package main;:package main; use lib "%{l_prefix}/libexec/perltidy";:' \
|
|
|
|
|
+ bin/perltidy $RPM_BUILD_ROOT%{l_prefix}/bin/
|
|
|
%{l_shtool} install -c -m 644 \
|
|
%{l_shtool} install -c -m 644 \
|
|
|
- perltidy.1 perl2web.1 \
|
|
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/man/man1/
|
|
|
|
|
|
|
+ lib/Perl/Tidy.pm $RPM_BUILD_ROOT%{l_prefix}/libexec/perltidy/Perl/
|
|
|
|
|
+ %{l_shtool} install -c -m 644 \
|
|
|
|
|
+ docs/perltidy.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
|
|
|
|
|
%files -f files
|
|
%files -f files
|