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