Use correct perl pathes according to package guidelines
This commit is contained in:
parent
8e2e08ff73
commit
df531a9f65
@ -233,15 +233,13 @@ mkdir -p %{_builddir}/include
|
|||||||
cp ../cryptlib.h %{_builddir}/include
|
cp ../cryptlib.h %{_builddir}/include
|
||||||
cp ../tools/GenPerl.pl .
|
cp ../tools/GenPerl.pl .
|
||||||
export PERL_CRYPT_LIB_HEADER=%{_builddir}/include/cryptlib.h
|
export PERL_CRYPT_LIB_HEADER=%{_builddir}/include/cryptlib.h
|
||||||
/usr/bin/perl Makefile.PL
|
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor
|
||||||
sed -i '/LDLOADLIBS = /s/thread/thread -L.. -lcl/' Makefile
|
sed -i '/LDLOADLIBS = /s/thread/thread -L.. -lcl/' Makefile
|
||||||
make
|
make
|
||||||
make pure_install DESTDIR=%{buildroot}
|
make pure_install DESTDIR=%{buildroot}
|
||||||
# clean the install
|
# clean the install
|
||||||
rm $(find %{buildroot}/usr/local/lib*/perl5 -name ".packlist")
|
find %{buildroot} -type f -name .packlist -delete
|
||||||
chmod 0755 %{buildroot}/usr/local/lib*/perl5/auto/PerlCryptLib/PerlCryptLib.so
|
find %{buildroot} -type f -name 'PerlCryptLib.so' -exec chmod 0755 {} \;
|
||||||
mv %{buildroot}/usr/local/lib*/perl5/* %{buildroot}%{_libdir}/perl5
|
|
||||||
mv %{buildroot}/usr/local/share/man/man3/* %{buildroot}%{_mandir}/man3
|
|
||||||
|
|
||||||
# install test programs
|
# install test programs
|
||||||
cp %{_builddir}/%{name}-%{version}/stestlib %{buildroot}%{cryptlibdir}
|
cp %{_builddir}/%{name}-%{version}/stestlib %{buildroot}%{cryptlibdir}
|
||||||
|
Loading…
Reference in New Issue
Block a user