SPECS (AC-branch): beecrypt.spec - release 4 - moved so lib to /lib
baggins
baggins at pld-linux.org
Sun Jun 19 19:43:37 CEST 2005
Author: baggins Date: Sun Jun 19 17:43:37 2005 GMT
Module: SPECS Tag: AC-branch
---- Log message:
- release 4
- moved so lib to /lib
---- Files affected:
SPECS:
beecrypt.spec (1.36.2.3 -> 1.36.2.4)
---- Diffs:
================================================================
Index: SPECS/beecrypt.spec
diff -u SPECS/beecrypt.spec:1.36.2.3 SPECS/beecrypt.spec:1.36.2.4
--- SPECS/beecrypt.spec:1.36.2.3 Fri Jun 17 18:40:25 2005
+++ SPECS/beecrypt.spec Sun Jun 19 19:43:32 2005
@@ -12,7 +12,7 @@
Summary(pl): Biblioteka kryptograficzna BeeCrypt
Name: beecrypt
Version: 4.1.2
-Release: 3
+Release: 4
Epoch: 2
License: LGPL
Group: Libraries
@@ -55,6 +55,8 @@
%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _libaltdir /%{_lib}
+
%define specflags_alpha -mno-explicit-relocs
%description
@@ -186,7 +188,9 @@
%endif
--with-pic \
--with%{!?with_python:out}-python
-%{__make}
+
+%{__make} \
+ libaltdir=%{_libaltdir}
%if %{with python}
%{__make} -C python
@@ -200,13 +204,26 @@
rm -rf $RPM_BUILD_ROOT
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+ DESTDIR=$RPM_BUILD_ROOT \
+ libaltdir=%{_libaltdir}
%if %{with python}
%{__make} install -C python \
DESTDIR=$RPM_BUILD_ROOT
%endif
+rm -f $RPM_BUILD_ROOT%{_libexecdir}/lib*.so
+
+ln -sf %{_libaltdir}/$(cd $RPM_BUILD_ROOT%{_libaltdir} ; echo libbeecrypt.so.*.*.*) \
+ $RPM_BUILD_ROOT%{_libdir}/libbeecrypt.so
+%{__sed} "s|libdir='%{_libaltdir}'|libdir='%{_libdir}'|" \
+ $RPM_BUILD_ROOT%{_libaltdir}/libbeecrypt.la > $RPM_BUILD_ROOT%{_libdir}/libbeecrypt.la
+mv $RPM_BUILD_ROOT%{_libaltdir}/libbeecrypt.a $RPM_BUILD_ROOT%{_libdir}/
+
+mv $RPM_BUILD_ROOT%{_libaltdir}/libbeecrypt_java* $RPM_BUILD_ROOT%{_libdir}/
+%{__sed} -i "s|libdir='%{_libaltdir}'|libdir='%{_libdir}'|" \
+ $RPM_BUILD_ROOT%{_libdir}/libbeecrypt_java.la
+
rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
%clean
@@ -221,7 +238,7 @@
%files
%defattr(644,root,root,755)
%doc AUTHORS BENCHMARKS BUGS CONTRIBUTORS NEWS README
-%attr(755,root,root) %{_libdir}/libbeecrypt.so.*.*.*
+%attr(755,root,root) %{_libaltdir}/libbeecrypt.so.*.*.*
%files devel
%defattr(644,root,root,755)
@@ -266,6 +283,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.36.2.4 2005/06/19 17:43:32 baggins
+- release 4
+- moved so lib to /lib
+
Revision 1.36.2.3 2005/06/17 16:40:25 arekm
- rel3 to get proper tag
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/beecrypt.spec?r1=1.36.2.3&r2=1.36.2.4&f=u
More information about the pld-cvs-commit
mailing list