]>
Commit | Line | Data |
---|---|---|
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 | # |
8 | Summary: New Symbolic Model Verifier | |
d6427d08 | 9 | Summary(pl.UTF-8): Nowy weryfikator modeli symbolicznych |
5082b6a1 | 10 | Name: NuSMV |
cefc5ce4 | 11 | Version: 2.5.4 |
d12eb13c | 12 | Release: 11 |
5082b6a1 JR |
13 | License: LGPL |
14 | Group: Applications | |
15 | Source0: http://nusmv.irst.itc.it/distrib/%{name}-%{version}.tar.gz | |
cefc5ce4 | 16 | # Source0-md5: 4d8ae6136fbd916d875cd48f82d5f327 |
6641397e JR |
17 | Source1: http://minisat.se/downloads/minisat2-%{minisat_ver}.zip |
18 | # Source1-md5: fb12db9a13f86a2133758abfba239546 | |
19 | Source2: http://www.princeton.edu/~chaff/zchaff/zchaff.%{zchaff_ver}.zip | |
20 | # Source2-md5: 7398b3e984a5046755cb3ef6b0e44d2e | |
5082b6a1 | 21 | Patch0: %{name}-build.patch |
6641397e | 22 | Patch1: %{name}-solvers.patch |
cf278024 | 23 | Patch2: format-security.patch |
09aa6f55 | 24 | Patch3: fork.patch |
5082b6a1 JR |
25 | URL: http://nusmv.irst.itc.it/ |
26 | BuildRequires: autoconf | |
27 | BuildRequires: automake | |
28 | BuildRequires: expat-devel | |
29 | BuildRequires: ghostscript | |
30 | BuildRequires: lynx | |
31 | # alternative for lynx | |
32 | #BuildRequires: links | |
33 | BuildRequires: perl-base | |
34 | BuildRequires: readline-devel | |
6641397e JR |
35 | BuildRequires: texlive-dvips |
36 | BuildRequires: texlive-latex | |
37 | BuildRequires: texlive-latex-bibtex | |
38 | BuildRequires: texlive-latex-carlisle | |
39 | BuildRequires: texlive-latex-extend | |
40 | BuildRequires: texlive-latex-psnfss | |
41 | BuildRequires: texlive-makeindex | |
69f6bee2 | 42 | BuildRequires: unzip |
5082b6a1 JR |
43 | BuildRoot: %{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 |
49 | NuSMV is a reimplementation and extension of SMV, the first model | |
50 | checker based on BDDs. NuSMV has been designed to be an open | |
51 | architecture for model checking, which can be reliably used for the | |
52 | verification of industrial designs, as a core for custom verification | |
53 | tools, as a testbed for formal verification techniques, and applied | |
54 | to other research areas. | |
55 | ||
56 | NuSMV2, combines BDD-based model checking component that exploits the | |
57 | CUDD library developed by Fabio Somenzi at Colorado University and | |
58 | SAT-based model checking component that includes an RBC-based Bounded | |
59 | Model Checker, connected to the SIM SAT library developed by the | |
60 | University of Genova. | |
61 | ||
20305e49 | 62 | %description -l pl.UTF-8 |
6206e484 | 63 | NuSVM to reimplementacja i rozszerzenie SMV - pierwszego weryfikatora |
20305e49 JR |
64 | modeli opartego na BDD. NuSMV został zaprojektowany w otwartej |
65 | architekturze sprawdzania modeli, przez co może być niezawodnie | |
66 | używany do weryfikacji projektów przemysłowych, jako podstawa własnych | |
67 | narzędzi weryfikujących, jako poligon dla technik weryfikacji | |
68 | formalnej oraz stosowany w innych obszarach badań. | |
6206e484 | 69 | |
20305e49 JR |
70 | NuSMV2 łączy komponent sprawdzający modele oparty na BDD, |
71 | wykorzystujący bibliotekę CUDD stworzoną przez Fabio Somenziniego w | |
72 | Colorado University i komponent sprawdzający modele oparty na SAT | |
73 | zawierający weryfikator modeli ograniczonych oparty na RBC, połączony | |
74 | z biblioteką SIM SAT stworzoną przez University of Genova. | |
6206e484 | 75 | |
5082b6a1 JR |
76 | %package devel |
77 | Summary: Header files for NuSMV | |
d6427d08 | 78 | Summary(pl.UTF-8): Pliki nagłówkowe NuSMV |
5082b6a1 | 79 | Group: Development/Libraries |
6206e484 | 80 | Requires: %{name} = %{version}-%{release} |
5082b6a1 JR |
81 | |
82 | %description devel | |
83 | This is the package containing the header files for NuSMV. | |
84 | ||
20305e49 JR |
85 | %description devel -l pl.UTF-8 |
86 | Ten pakiet zawiera pliki nagłówkowe NuSMV. | |
5082b6a1 JR |
87 | |
88 | %package static | |
89 | Summary: Static NuSMV library | |
d6427d08 | 90 | Summary(pl.UTF-8): Statyczna biblioteka NuSMV |
5082b6a1 JR |
91 | Group: Development/Libraries |
92 | Requires: %{name}-devel = %{version}-%{release} | |
93 | ||
94 | %description static | |
95 | Static NuSMV library. | |
96 | ||
20305e49 | 97 | %description static -l pl.UTF-8 |
5082b6a1 JR |
98 | Statyczna biblioteka NuSMV. |
99 | ||
100 | %prep | |
101 | %setup -q | |
6641397e | 102 | install %{SOURCE1} MiniSat/ |
17427a19 AM |
103 | cd MiniSat |
104 | unzip -q *.zip | |
105 | cd .. | |
6641397e JR |
106 | install %{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 | 114 | ICFLAGS="%{rpmcflags} -fPIC" |
d8d91413 | 115 | export ICFLAGS |
5082b6a1 | 116 | |
6641397e | 117 | cd MiniSat/ |
1cbb4be0 | 118 | OPTFLAGS="%{rpmcxxflags} -fPIC" COPTIMIZE="%{rpmcxxflags} -fPIC" ./build.sh |
6641397e JR |
119 | %if %{with zchaff} |
120 | cd ../zchaff | |
1cbb4be0 | 121 | OPTFLAGS="%{rpmcxxflags} -fPIC" ./build.sh |
6641397e JR |
122 | %endif |
123 | cd ../cudd-* | |
25a3234b | 124 | %ifarch %{x8664} |
74c2172a JR |
125 | cp -f Makefile Makefile_32bit |
126 | cp -f Makefile_64bit Makefile | |
25a3234b | 127 | %endif |
6641397e JR |
128 | %{__make} |
129 | cd .. | |
25a3234b | 130 | |
74c2172a JR |
131 | cd 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 | |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | install -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 | ||
155 | cp -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 |
161 | rm -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 |