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