X-Git-Url: http://git.pld-linux.org/?p=packages%2Fopenssl.git;a=blobdiff_plain;f=openssl.spec;h=c8e1f414f9566477804b1f409afcc1da88f20213;hp=ed99bcff396c7916278e413c7469b10b101d78cc;hb=779bb536894171c1dce69c7ca31be07affaf73d9;hpb=9c05bcacd8919517febc8db5881f482bbfe587f4 diff --git a/openssl.spec b/openssl.spec index ed99bcf..c8e1f41 100644 --- a/openssl.spec +++ b/openssl.spec @@ -1,16 +1,18 @@ +%include /usr/lib/rpm/macros.perl Summary: Library and toolkit for the "Secure Sockets Layer" (SSL v2/v3) Summary(de): Secure Sockets Layer (SSL)-Kommunikationslibrary & Utilities +Summary(fr): Utilitaires et librairies de communication SSL (Secure Sockets Layer) Name: openssl -Version: 0.9.3a +Version: 0.9.5 Release: 1 Group: Libraries Group(pl): Biblioteki Source: ftp://ftp.openssl.org/source/%{name}-%{version}.tar.gz -Patch0: openssl-sslcrypto.patch -Patch1: openssl-perl.patch +Patch: openssl-perl.patch Vendor: The OpenSSL Project License: Apache-style License -BuildPrereq: perl +BuildRequires: symlinks +BuildRequires: perl BuildRoot: /tmp/%{name}-%{version}-root Obsoletes: SSLeay Obsoletes: SSLeay-devel @@ -48,8 +50,8 @@ DES, RC4, RSA et SSL. %package devel Summary: Development part of OpenSSL library -Summary(fr): Librairies statiques, headers et utilitaires pour communication SSL (Secure Sockets Layer) Summary(de): Secure Sockets Layer Kommunikationslibrary: statische libraries+header +Summary(fr): Librairies statiques, headers et utilitaires pour communication SSL (Secure Sockets Layer) Summary(pl): Czê¶æ bibiloteki OpenSSL przeznaczona dla programistów Group: Development/Libraries Group(pl): Programowanie/Biblioteki @@ -75,27 +77,25 @@ Static OpenSSL library. Statyczna wersja biblioteki OpenSSL. %prep -%setup -q -%patch0 -p1 -%patch1 -p1 +%setup -q +%patch -p1 %build -for i in ` echo Configure Makefile.org `; do - sed -e 's#-m486##g' \ - -e 's#-O3 -fomit-frame-pointer#%{optflags}#g' \ - <$i >$i.work - mv $i.work $i +for i in Configure Makefile.org ; do + perl -pi -e 's#-m486##g' $i + perl -pi -e 's#-O3 -fomit-frame-pointer#%{optflags}#g' $i done perl util/perlpath.pl %{_bindir} -ln -s crypto sslcrypto - ./config --openssldir=%{openssldir} make OPT_FLAGS="$RPM_OPT_FLAGS" linux-shared make INSTALLTOP=%{_prefix} OPT_FLAGS="$RPM_OPT_FLAGS" make rehash +#cd perl +#perl Makefile.PL +#make %install rm -rf $RPM_BUILD_ROOT @@ -108,11 +108,14 @@ make install \ install libRSAglue.a $RPM_BUILD_ROOT%{_libdir} install lib*.so.*.* $RPM_BUILD_ROOT%{_libdir} -mv lib*.so $RPM_BUILD_ROOT%{_libdir} +cp -d lib*.so $RPM_BUILD_ROOT%{_libdir} +#cd perl +#make install DESTDIR=$RPM_BUILD_ROOT +#cd .. mv $RPM_BUILD_ROOT%{openssldir}/openssl.cnf $RPM_BUILD_ROOT%{_sysconfdir} -ln -s $RPM_BUILD_ROOT%{_sysconfdir}/openssl.cnf \ +ln -s %{_sysconfdir}/openssl.cnf \ $RPM_BUILD_ROOT%{openssldir}/openssl.cnf symlinks -cs $RPM_BUILD_ROOT%{openssldir} @@ -123,7 +126,7 @@ strip $RPM_BUILD_ROOT%{_bindir}/* || : strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* || : gzip -9fn CHANGES CHANGES.SSLeay LICENSE NEWS README \ - doc/*.pod doc/*.txt + doc/*.txt doc/*/*pod %post %{_bindir}/c_rehash certs @@ -137,7 +140,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc {CHANGES,CHANGES.SSLeay,LICENSE,NEWS,README}.gz -%doc doc/*.pod.gz doc/*.txt.gz +%doc doc/*.txt.gz doc/apps %doc doc/openssl_button.gif doc/openssl_button.html %attr(755,root,root) %{_bindir}/* @@ -151,6 +154,7 @@ rm -rf $RPM_BUILD_ROOT %files devel %defattr(644,root,root,755) +%doc doc/ssl doc/crypto %attr(755,root,root) %{_libdir}/lib*.so %{_pkgincludedir}