Search
j0ke.net Open Build Service
>
Projects
>
vhcs
>
perl-Crypt-DH
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 4
[-]
[+]
Changed
perl-Crypt-DH.spec
@@ -25,25 +25,30 @@ %setup -n %{real_name}-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" -%{__make} %{?_smp_mflags} - -%install -%{__rm} -rf %{buildroot} -%makeinstall - -### Cleaning up buildroot -%{__rm} -rf %{buildroot}%{perl_archlib}/perllocal.pod %{buildroot}%{perl_vendorarch}/auto/*/*/.packlist +%__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} %clean -%{__rm} -rf %{buildroot} +rm -rf $RPM_BUILD_ROOT/* +rm -rf $RPM_BUILD_DIR/%{name}* +rm -rf ../file.list.%{name} -%files -%defattr(-, root, root, 0755) +%files -f ../file.list.%{name} %doc Changes README -%doc %{_mandir}/man3/* -%dir %{perl_vendorlib}/Crypt/ -%{perl_vendorlib}/Crypt/DH.pm %changelog * Sun Apr 02 2006 VHCS Packager <vhcs@j0ke.net>