]> git.pld-linux.org Git - packages/beecrypt.git/commitdiff
- libdir files placement workaround for amd64
authorJacek Konieczny <jajcus@pld-linux.org>
Thu, 18 Dec 2003 18:48:02 +0000 (18:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- without_python bcond (usefull during bootstrap)
- new bconds

Changed files:
    beecrypt.spec -> 1.28

beecrypt.spec

index 7f0220db3dd3b45783cdf0deaa0d12bd63332939..1a2808beef55dd49e2e0d310e492bd461929ad0a 100644 (file)
@@ -1,6 +1,7 @@
 #
 # Conditional build:
-# _with_javaglue
+%bcond_with javaglue
+%bcond_without python
 #
 %include       /usr/lib/rpm/macros.python
 Summary:       The BeeCrypt Cryptography Library
@@ -92,19 +93,28 @@ rm -f missing
        --with%{?!_with_javaglue:out}-javaglue \
        --with-cpu=%{_target_cpu} \
        --with-arch=%{_target_cpu} \
-       --with-python
+       --with%{?!_with_python:out}-python
 %{__make}
 
+%if %{with python}
 %{__make} -C python
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%if %{with python}
 %{__make} install -C python \
        DESTDIR=$RPM_BUILD_ROOT
+%endif
+
+%ifarch amd64
+mv $RPM_BUILD_ROOT{%{_prefix}/lib/*,%{_libdir}}
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -127,6 +137,8 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
 
+%if %{with python}
 %files -n python-beecrypt
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py_sitedir}/*.so
+%endif
This page took 0.081465 seconds and 4 git commands to generate.