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