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