- Spec cleanup.
- Disable "make test" by default (spams console).
This commit is contained in:
parent
887b604ec4
commit
afcc7bc7e7
@ -1,17 +1,14 @@
|
|||||||
%{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}
|
|
||||||
|
|
||||||
Summary: Perl interface to the UNIX syslog(3) calls
|
|
||||||
Name: perl-Unix-Syslog
|
Name: perl-Unix-Syslog
|
||||||
Version: 0.100
|
Version: 0.100
|
||||||
Release: 5
|
Release: 6%{?dist}
|
||||||
|
Summary: Perl interface to the UNIX syslog(3) calls
|
||||||
License: Artistic
|
License: Artistic
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://search.cpan.org/dist/Unix-Syslog/
|
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
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
||||||
|
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module provides an interface to the system logger syslogd(8) via
|
This module provides an interface to the system logger syslogd(8) via
|
||||||
@ -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
|
libc-functions of your system, so that anyone being familiar with
|
||||||
syslog.h should be able to use this module right away.
|
syslog.h should be able to use this module right away.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Unix-Syslog-%{version}
|
%setup -q -n Unix-Syslog-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||||
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
|
%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile
|
||||||
|
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 \
|
|
||||||
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/*
|
|
||||||
|
|
||||||
|
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 || :
|
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
|
||||||
make test
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{?_with_check:make test}
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc Changes README Artistic
|
%doc Changes README Artistic
|
||||||
@ -55,8 +47,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{perl_vendorarch}/Unix
|
%{perl_vendorarch}/Unix
|
||||||
%{_mandir}/man3/Unix::Syslog.3pm*
|
%{_mandir}/man3/Unix::Syslog.3pm*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%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>
|
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
||||||
- rebuilt
|
- rebuilt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user