rpms/perl-Unix-Syslog/devel perl-Unix-Syslog.spec,1.8,1.9

Steven Pritchard (steve) fedora-extras-commits at redhat.com
Tue Sep 6 01:47:06 UTC 2005


Author: steve

Update of /cvs/extras/rpms/perl-Unix-Syslog/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21035

Modified Files:
	perl-Unix-Syslog.spec 
Log Message:
- Spec cleanup.
- Disable "make test" by default (spams console).



Index: perl-Unix-Syslog.spec
===================================================================
RCS file: /cvs/extras/rpms/perl-Unix-Syslog/devel/perl-Unix-Syslog.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- perl-Unix-Syslog.spec	6 Apr 2005 22:13:09 -0000	1.8
+++ perl-Unix-Syslog.spec	6 Sep 2005 01:47:04 -0000	1.9
@@ -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
 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))
+Requires:   perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
 This module provides an interface to the system logger syslogd(8) via
@@ -19,35 +16,30 @@
 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 @@
 %{perl_vendorarch}/Unix
 %{_mandir}/man3/Unix::Syslog.3pm*
 
-
 %changelog
+* Mon Sep 05 2005 Steven Pritchard <steve at 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
 




More information about the fedora-extras-commits mailing list