]> git.pld-linux.org Git - packages/NuSMV.git/commitdiff
- fixed build and install
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 6 Apr 2011 19:09:57 +0000 (19:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- eliminated bashizms

Changed files:
    NuSMV.spec -> 1.17

NuSMV.spec

index 0e93af493cf2c74a6fc2592bf6c7f1812b51855c..9847d6f53638749ca28413d245ffc4ab18b2404a 100644 (file)
@@ -40,6 +40,9 @@ BuildRequires:        texlive-makeindex
 BuildRequires: unzip
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# a lot of inter-library deps confusing install_post_check_so
+%define                no_install_post_check_so        1
+
 %description
 NuSMV is a reimplementation and extension of SMV, the first model
 checker based on BDDs. NuSMV has been designed to be an open
@@ -102,14 +105,14 @@ install %{SOURCE2} zchaff/
 %patch1 -p1
 
 %build
-ICFLAGS="%{rpmcflags}"
+ICFLAGS="%{rpmcflags} -fPIC"
 export ICFLAGS
 
 cd MiniSat/
-OPTFLAGS="%{rpmcxxflags}" ./build.sh
+OPTFLAGS="%{rpmcxxflags} -fPIC" COPTIMIZE="%{rpmcxxflags} -fPIC" ./build.sh
 %if %{with zchaff}
 cd ../zchaff
-OPTFLAGS="%{rpmcxxflags}" ./build.sh
+OPTFLAGS="%{rpmcxxflags} -fPIC" ./build.sh
 %endif
 cd ../cudd-*
 %ifarch %{x8664}
@@ -121,27 +124,32 @@ cd ..
 
 cd nusmv
 
-/bin/bash %configure \
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__automake}
+%configure \
        --enable-shared \
-       --enable-psl \
        %{?with_zchaff:--enable-zchaff} \
        --enable-minisat
 
 %{__make}
-%{__make} docs \
-       SHELL=/bin/bash
+
+%{__make} docs
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %{__make} -j1 -C nusmv install \
-       SHELL=/bin/bash \
+       INSTALL_DATA="cp -a" \
+       INSTALL_HEADER="install -p" \
        DESTDIR=$RPM_BUILD_ROOT
 
 cp -a nusmv/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-rm -r $RPM_BUILD_ROOT%{_datadir}/nusmv/{doc,examples,LGPL*,NEWS,README*}
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/nusmv/{doc,examples,LGPL*,NEWS,README*}
+%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/*.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.169586 seconds and 4 git commands to generate.