- Spec cleanup.
- Disable "make test" by default (spams console).
This commit is contained in:
parent
887b604ec4
commit
afcc7bc7e7
@ -1,14 +1,11 @@
|
||||
%{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}
|
||||
|
||||
Summary: Perl interface to the UNIX syslog(3) calls
|
||||
Name: perl-Unix-Syslog
|
||||
Version: 0.100
|
||||
Release: 5
|
||||
|
||||
Release: 6%{?dist}
|
||||
Summary: Perl interface to the UNIX syslog(3) calls
|
||||
License: Artistic
|
||||
Group: System Environment/Libraries
|
||||
URL: http://search.cpan.org/dist/Unix-Syslog/
|
||||
Source0: http://www.cpan.org/authors/id/M/MH/MHARNISCH/Unix-Syslog-0.100.tar.gz
|
||||
Source0: http://www.cpan.org/authors/id/M/MH/MHARNISCH/Unix-Syslog-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
||||
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
@ -19,35 +16,30 @@ Perl's XSUBs. The implementation attempts to resemble the native
|
||||
libc-functions of your system, so that anyone being familiar with
|
||||
syslog.h should be able to use this module right away.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n Unix-Syslog-%{version}
|
||||
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install \
|
||||
PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \
|
||||
INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib}
|
||||
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 ';'
|
||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%check || :
|
||||
make test
|
||||
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
%{?_with_check:make test}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README Artistic
|
||||
@ -55,8 +47,11 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{perl_vendorarch}/Unix
|
||||
%{_mandir}/man3/Unix::Syslog.3pm*
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Sep 05 2005 Steven Pritchard <steve@kspei.com> 0.100-6
|
||||
- Spec cleanup.
|
||||
- Disable "make test" by default (spams console).
|
||||
|
||||
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
||||
- rebuilt
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user