Sync with perl spec template, improve dep filtering.

This commit is contained in:
Ville Skyttä 2005-04-02 16:08:38 +00:00
parent 70175412fe
commit b871a04913

View File

@ -1,8 +1,6 @@
%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)}
Name: perl-IPC-Run Name: perl-IPC-Run
Version: 0.78 Version: 0.78
Release: 1 Release: 2
Summary: Perl module for interacting with child processes Summary: Perl module for interacting with child processes
License: GPL or Artistic License: GPL or Artistic
@ -13,6 +11,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: perl(IO::Tty) BuildRequires: perl(IO::Tty)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description %description
IPC::Run allows you run and interact with child processes using files, IPC::Run allows you run and interact with child processes using files,
@ -27,28 +26,25 @@ and DOS command lines are provided.
%setup -q -n IPC-Run-%{version} %setup -q -n IPC-Run-%{version}
chmod 644 lib/IPC/*.pm lib/IPC/Run/*.pm Changes chmod 644 lib/IPC/*.pm lib/IPC/Run/*.pm Changes
# Create our own find-requires to avoid some nasty Win32 specific dependencies. # Create our own find-requires to avoid some Win32 specific dependencies.
%define _use_internal_dependency_generator 0 cat <<EOF > %{name}-perlreq
cat <<EOF > %{name}-findreq
#!/bin/sh #!/bin/sh
%{__find_requires} | grep -v 'perl(Win32' %{__find_requires} | grep -v 'perl(Win32'
EOF EOF
%define __find_requires %{_builddir}/IPC-Run-%{version}/%{name}-findreq %define __perl_requires %{_builddir}/IPC-Run-%{version}/%{name}-perlreq
chmod +x %{__find_requires} chmod +x %{__perl_requires}
%build %build
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install \ make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib} find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \
-o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/* chmod -R u+w $RPM_BUILD_ROOT/*
@ -69,6 +65,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Sat Apr 2 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.78-2
- Sync with fedora-rpmdevtools' Perl spec template.
- Improve dependency filtering script.
* Sun Mar 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.78-0.fdr.1 * Sun Mar 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.78-0.fdr.1
- Update to 0.78. - Update to 0.78.