%define pkgname Kolab-Util %define snap 20050801 Summary: Kolab::Util - Perl extension for general utility functions Name: perl-%{pkgname} Version: 0.9.3 Release: 0.%{snap}.1mdk License: GPL or Artistic Group: Development/Perl URL: http://www.cpan.org Source0: %{pkgname}-%{version}-%{snap}.tar.bz2 BuildRequires: perl-devel BuildPreReq: perl BuildArch: noarch Buildroot: %{_tmppath}/%{name}-buildroot %description Kolab::Util contains several basic utility functions. %prep %setup -q -n %{pkgname}-%{version}-%{snap} # fix attribs find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; # cleanup for i in `find . -type d -name CVS` `find . -type d -name .svn` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null done # strip away annoying ^M find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//' find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//' # fix config file location perl -pi -e "s|^require \"config\.h\"\;|require \"%{_sysconfdir}/kolab/config\.h\"\;|g" *.pm %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make #make test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc Changes %{perl_vendorlib}/Kolab/Util.pm %{_mandir}/*/* %changelog * Mon Aug 01 2005 Oden Eriksson <oeriksson@mandriva.com> 0.9.3-0.20050801.1mdk - use a cvs snap instead * Wed Jul 06 2005 Oden Eriksson <oeriksson@mandriva.com> 0.9.2-1mdk - initial Mandriva package