Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
perl-version
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 4
[-]
[+]
Changed
perl-version.spec
@@ -7,9 +7,8 @@ URL: http://search.cpan.org/~jpeacock Source0: version-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -Packager: Carsten Schoene <cs@linux-administrator.com> -Vendor: linux-administrator.com BuildRequires: glibc-devel libgcc gcc gcc-c++ perl perl-Module-Build + %if 0%{?fedora_version} >= 7 BuildRequires: perl-ExtUtils-MakeMaker %endif @@ -19,29 +18,33 @@ %prep %setup -q -n version-%{version} -perl Makefile.PL -%__make -%makeinstall DESTDIR=$RPM_BUILD_ROOT -%if 0%{?suse_version} -%perl_process_packlist -%else -find $RPM_BUILD_ROOT -name perllocal.pod -exec rm {} \; >/dev/null -%endif -install -m 755 -d $RPM_BUILD_ROOT/usr/share/doc/packages/%{name} -cp README $RPM_BUILD_ROOT/usr/share/doc/packages/%{name} -cd $RPM_BUILD_ROOT -find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name} -find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} -find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} +%build +CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{_prefix}" +%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}" + +%install +%__make DESTDIR=%{buildroot} install + +### Clean up buildroot +%{__rm} -rf %{buildroot}%{perl_archlib} \ + %{buildroot}%{perl_vendorarch}/auto/*{,/*{,/*}}/.packlist + %clean rm -rf $RPM_BUILD_ROOT/* rm -rf $RPM_BUILD_DIR/%{name}* -rm -rf ../file.list.%{name} -%files -f ../file.list.%{name} +%files +%defattr(-,root,root) +%doc README +%{perl_vendorarch}/auto/version/vxs/vxs.bs +%{perl_vendorarch}/auto/version/vxs/vxs.so +%{perl_vendorarch}/version.pm +%{perl_vendorarch}/version.pod +%{perl_vendorarch}/version/vxs.pm +%{_mandir}/man3/version.3pm* %changelog * Fri Oct 17 2008 Carsten Schoene <cs@linux-administrator.com>