rpms/perl-Mail-Alias/devel perl-Mail-Alias.spec,1.7,1.8

Oliver Falk (oliver) fedora-extras-commits at redhat.com
Thu Aug 11 10:58:53 UTC 2005


Author: oliver

Update of /cvs/extras/rpms/perl-Mail-Alias/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29770

Modified Files:
	perl-Mail-Alias.spec 
Log Message:

* Thu Aug 11 2005 Oliver Falk <oliver at linux-kernel.at>                - 1.12-5
- Use Fedora perl specfile
- Cleanup
- Took over maintainership



Index: perl-Mail-Alias.spec
===================================================================
RCS file: /cvs/extras/rpms/perl-Mail-Alias/devel/perl-Mail-Alias.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- perl-Mail-Alias.spec	6 Apr 2005 22:13:06 -0000	1.7
+++ perl-Mail-Alias.spec	11 Aug 2005 10:58:51 -0000	1.8
@@ -1,21 +1,20 @@
-%define		perl_vendorlib	%(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
+%define			pkgname		Mail-Alias
 
-%define		tarname	Mail-Alias
+Summary:		Module for manipulating e-mail alias files
+Name:			perl-%{pkgname}
+Version:		1.12
+Release:		5
+
+License:		Artistic
+Group:			Development/Libraries
+URL:			http://www.cpan.org/
+
+Source0:		http://search.cpan.org//CPAN/authors/id/Z/ZE/ZELT/%{pkgname}-%{version}.tar.gz
+BuildArch:		noarch
+BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-buildroot
 
-Summary:	Mail::Alias perl module
-Name:		perl-%{tarname}
-Version:	1.12
-Release:	4
-
-License:	Artistic
-Group:		Development/Libraries
-URL:		http://www.cpan.org/
-# Tarball grabbed with perl -MCPAN -e shell -> get Mail::Alias.
-Source0:	%{tarname}-%{version}.tar.gz
-BuildArch:	noarch
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
-
-# -----------------------------------------------------------------------------
+BuildRequires:	perl
+Requires:		perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
 This module allows direct manipulation of various types of E-Mail
@@ -24,35 +23,25 @@
 to read some other formats and to convert between various alias file
 formats.
 
-# -----------------------------------------------------------------------------
-
 %prep
-%setup -q -n %{tarname}-%{version}
-
-# -----------------------------------------------------------------------------
+%setup -q -n %{pkgname}-%{version}
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
-make test
-
-# -----------------------------------------------------------------------------
 
 %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 {} ';'
+%{__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 d -depth -exec rmdir {} 2>/dev/null ';'
 
-# -----------------------------------------------------------------------------
+%check || :
+%{__make} test
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-# -----------------------------------------------------------------------------
-
 %files
 %defattr(-,root,root,-)
 %doc README Changes
@@ -60,9 +49,12 @@
 %{perl_vendorlib}/Mail/Alias.pm
 %{_mandir}/man3/Mail::Alias.3pm*
 
-# -----------------------------------------------------------------------------
-
 %changelog
+* Thu Aug 11 2005 Oliver Falk <oliver at linux-kernel.at>		- 1.12-5
+- Use Fedora perl specfile
+- Cleanup
+- Took over maintainership
+
 * Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
 - rebuilt
 




More information about the scm-commits mailing list