]> git.pld-linux.org Git - packages/NuSMV.git/blame - NuSMV.spec
- release 11 (by relup.sh)
[packages/NuSMV.git] / NuSMV.spec
CommitLineData
5082b6a1 1#
6641397e
JR
2# Conditional build:
3%bcond_with zchaff # enable zChaff SAT Solver (zChaff is for non-commercial purposes only)
4#
5%define zchaff_ver 2008.10.12
6%define minisat_ver 070721
5082b6a1
JR
7#
8Summary: New Symbolic Model Verifier
d6427d08 9Summary(pl.UTF-8): Nowy weryfikator modeli symbolicznych
5082b6a1 10Name: NuSMV
cefc5ce4 11Version: 2.5.4
d12eb13c 12Release: 11
5082b6a1
JR
13License: LGPL
14Group: Applications
15Source0: http://nusmv.irst.itc.it/distrib/%{name}-%{version}.tar.gz
cefc5ce4 16# Source0-md5: 4d8ae6136fbd916d875cd48f82d5f327
6641397e
JR
17Source1: http://minisat.se/downloads/minisat2-%{minisat_ver}.zip
18# Source1-md5: fb12db9a13f86a2133758abfba239546
19Source2: http://www.princeton.edu/~chaff/zchaff/zchaff.%{zchaff_ver}.zip
20# Source2-md5: 7398b3e984a5046755cb3ef6b0e44d2e
5082b6a1 21Patch0: %{name}-build.patch
6641397e 22Patch1: %{name}-solvers.patch
cf278024 23Patch2: format-security.patch
09aa6f55 24Patch3: fork.patch
5082b6a1
JR
25URL: http://nusmv.irst.itc.it/
26BuildRequires: autoconf
27BuildRequires: automake
28BuildRequires: expat-devel
29BuildRequires: ghostscript
30BuildRequires: lynx
31# alternative for lynx
32#BuildRequires: links
33BuildRequires: perl-base
34BuildRequires: readline-devel
6641397e
JR
35BuildRequires: texlive-dvips
36BuildRequires: texlive-latex
37BuildRequires: texlive-latex-bibtex
38BuildRequires: texlive-latex-carlisle
39BuildRequires: texlive-latex-extend
40BuildRequires: texlive-latex-psnfss
41BuildRequires: texlive-makeindex
69f6bee2 42BuildRequires: unzip
5082b6a1
JR
43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
1cbb4be0
JR
45# a lot of inter-library deps confusing install_post_check_so
46%define no_install_post_check_so 1
47
5082b6a1
JR
48%description
49NuSMV is a reimplementation and extension of SMV, the first model
50checker based on BDDs. NuSMV has been designed to be an open
51architecture for model checking, which can be reliably used for the
52verification of industrial designs, as a core for custom verification
53tools, as a testbed for formal verification techniques, and applied
54to other research areas.
55
56NuSMV2, combines BDD-based model checking component that exploits the
57CUDD library developed by Fabio Somenzi at Colorado University and
58SAT-based model checking component that includes an RBC-based Bounded
59Model Checker, connected to the SIM SAT library developed by the
60University of Genova.
61
20305e49 62%description -l pl.UTF-8
6206e484 63NuSVM to reimplementacja i rozszerzenie SMV - pierwszego weryfikatora
20305e49
JR
64modeli opartego na BDD. NuSMV został zaprojektowany w otwartej
65architekturze sprawdzania modeli, przez co może być niezawodnie
66używany do weryfikacji projektów przemysłowych, jako podstawa własnych
67narzędzi weryfikujących, jako poligon dla technik weryfikacji
68formalnej oraz stosowany w innych obszarach badań.
6206e484 69
20305e49
JR
70NuSMV2 łączy komponent sprawdzający modele oparty na BDD,
71wykorzystujący bibliotekę CUDD stworzoną przez Fabio Somenziniego w
72Colorado University i komponent sprawdzający modele oparty na SAT
73zawierający weryfikator modeli ograniczonych oparty na RBC, połączony
74z biblioteką SIM SAT stworzoną przez University of Genova.
6206e484 75
5082b6a1
JR
76%package devel
77Summary: Header files for NuSMV
d6427d08 78Summary(pl.UTF-8): Pliki nagłówkowe NuSMV
5082b6a1 79Group: Development/Libraries
6206e484 80Requires: %{name} = %{version}-%{release}
5082b6a1
JR
81
82%description devel
83This is the package containing the header files for NuSMV.
84
20305e49
JR
85%description devel -l pl.UTF-8
86Ten pakiet zawiera pliki nagłówkowe NuSMV.
5082b6a1
JR
87
88%package static
89Summary: Static NuSMV library
d6427d08 90Summary(pl.UTF-8): Statyczna biblioteka NuSMV
5082b6a1
JR
91Group: Development/Libraries
92Requires: %{name}-devel = %{version}-%{release}
93
94%description static
95Static NuSMV library.
96
20305e49 97%description static -l pl.UTF-8
5082b6a1
JR
98Statyczna biblioteka NuSMV.
99
100%prep
101%setup -q
6641397e 102install %{SOURCE1} MiniSat/
17427a19
AM
103cd MiniSat
104unzip -q *.zip
105cd ..
6641397e
JR
106install %{SOURCE2} zchaff/
107
17427a19 108%patch0 -p1
6641397e 109%patch1 -p1
cf278024 110%patch2 -p1
09aa6f55 111%patch3 -p1
6641397e 112
5082b6a1 113%build
1cbb4be0 114ICFLAGS="%{rpmcflags} -fPIC"
d8d91413 115export ICFLAGS
5082b6a1 116
6641397e 117cd MiniSat/
1cbb4be0 118OPTFLAGS="%{rpmcxxflags} -fPIC" COPTIMIZE="%{rpmcxxflags} -fPIC" ./build.sh
6641397e
JR
119%if %{with zchaff}
120cd ../zchaff
1cbb4be0 121OPTFLAGS="%{rpmcxxflags} -fPIC" ./build.sh
6641397e
JR
122%endif
123cd ../cudd-*
25a3234b 124%ifarch %{x8664}
74c2172a
JR
125cp -f Makefile Makefile_32bit
126cp -f Makefile_64bit Makefile
25a3234b 127%endif
6641397e
JR
128%{__make}
129cd ..
25a3234b 130
74c2172a
JR
131cd nusmv
132
1cbb4be0
JR
133%{__libtoolize}
134%{__aclocal} -I m4
135%{__autoconf}
136%{__automake}
137%configure \
5082b6a1 138 --enable-shared \
6641397e
JR
139 %{?with_zchaff:--enable-zchaff} \
140 --enable-minisat
141
5082b6a1 142%{__make}
1cbb4be0 143
34c4f2ed 144%{__make} -j1 docs
5082b6a1
JR
145
146%install
147rm -rf $RPM_BUILD_ROOT
148install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
149
306c78b8 150%{__make} -j1 -C nusmv install \
1cbb4be0
JR
151 INSTALL_DATA="cp -a" \
152 INSTALL_HEADER="install -p" \
5082b6a1
JR
153 DESTDIR=$RPM_BUILD_ROOT
154
155cp -a nusmv/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
156
1cbb4be0
JR
157%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/nusmv/{doc,examples,LGPL*,NEWS,README*}
158%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/*.la
6641397e 159
5082b6a1
JR
160%clean
161rm -rf $RPM_BUILD_ROOT
162
163%post -p /sbin/ldconfig
164%postun -p /sbin/ldconfig
165
166%files
167%defattr(644,root,root,755)
168%doc nusmv/{AUTHORS,ChangeLog,NEWS,README*}
169%doc nusmv/doc/tutorial/tutorial.p*
170%doc nusmv/doc/user-man/nusmv.p*
171%doc nusmv/doc/html
172%attr(755,root,root) %{_bindir}/*
65c2d833 173%attr(755,root,root) %{_libdir}/lib*smv*.so.*.*.*
2ef2bad5
JR
174%attr(755,root,root) %ghost %{_libdir}/lib*smv*.so.0
175%attr(755,root,root) %{_libdir}/librbcdag.so.*.*.*
176%attr(755,root,root) %ghost %{_libdir}/librbcdag.so.0
5082b6a1
JR
177%dir %{_datadir}/nusmv
178%{_datadir}/nusmv/contrib
179%{_datadir}/nusmv/help
180%{_datadir}/nusmv/master.nusmvrc
181%{_examplesdir}/%{name}-%{version}
182
183%files devel
184%defattr(644,root,root,755)
65c2d833 185%attr(755,root,root) %{_libdir}/lib*smv*.so
2ef2bad5 186%attr(755,root,root) %{_libdir}/librbcdag.so
5082b6a1
JR
187%{_includedir}/cudd*
188%{_includedir}/nusmv
6206e484 189%{_pkgconfigdir}/*
5082b6a1
JR
190
191%files static
192%defattr(644,root,root,755)
65c2d833 193%attr(755,root,root) %{_libdir}/lib*smv*.a
2ef2bad5 194%attr(755,root,root) %{_libdir}/librbcdag.a
This page took 0.08346 seconds and 4 git commands to generate.