2011-12-13 20:26:56 +00:00
|
|
|
# Upstream occasionally releases a subversion snapshot, but no "regular"
|
|
|
|
# releases since the 0.1 release.
|
2012-08-10 22:37:03 +00:00
|
|
|
%global svnver 1666
|
|
|
|
%global svntim 20120615svn
|
2009-03-06 05:21:14 +00:00
|
|
|
|
|
|
|
Name: stp
|
|
|
|
Version: 0.1
|
2012-08-10 22:37:03 +00:00
|
|
|
Release: 11.%{svntim}%{?dist}
|
2009-03-06 05:21:14 +00:00
|
|
|
Summary: Constraint solver/decision procedure
|
|
|
|
|
|
|
|
Group: Applications/Engineering
|
|
|
|
License: MIT
|
|
|
|
URL: http://sourceforge.net/projects/stp-fast-prover/
|
2011-12-13 20:26:56 +00:00
|
|
|
# The source for this package was pulled from upstream's subversion repository.
|
|
|
|
# Use the following commands to generate the tarball:
|
|
|
|
#
|
|
|
|
# svn export -r %%{svnver} \
|
|
|
|
# https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp \
|
|
|
|
# stp-0.1
|
|
|
|
# tar cvJf stp-0.1.tar.xz stp-0.1
|
|
|
|
Source0: stp-%{version}.tar.xz
|
2012-08-10 22:37:03 +00:00
|
|
|
# This patch is specific to Fedora. Use the existing cryptominisat and boost
|
|
|
|
# libraries instead of the bundled versions.
|
|
|
|
Patch0: stp-unbundle.patch
|
2011-12-13 20:26:56 +00:00
|
|
|
# This patch has not yet been sent upstream. Fix a bunch of compiler warnings
|
|
|
|
# that may indicate miscompiled code.
|
2012-08-10 22:37:03 +00:00
|
|
|
Patch1: stp-warning.patch
|
2011-12-13 20:26:56 +00:00
|
|
|
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: flex
|
2012-01-10 23:56:22 +00:00
|
|
|
BuildRequires: time
|
2011-12-13 20:26:56 +00:00
|
|
|
BuildRequires: zlib-devel
|
2009-03-06 05:21:14 +00:00
|
|
|
|
|
|
|
%description
|
2011-12-13 20:26:56 +00:00
|
|
|
STP (Simple Theorem Prover) is a constraint solver (also referred to as
|
|
|
|
a decision procedure or automated prover) aimed at solving constraints
|
|
|
|
generated by program analysis tools, theorem provers, automated bug
|
|
|
|
finders, intelligent fuzzers and model checkers. STP has been used in
|
|
|
|
many research projects at Stanford, Berkeley, MIT, CMU and other
|
|
|
|
universities, as well as companies and government agencies.
|
2009-03-06 05:21:14 +00:00
|
|
|
|
|
|
|
The input to STP are formulas over the theory of bit-vectors and arrays
|
2011-12-13 20:26:56 +00:00
|
|
|
(this theory captures most expressions from languages like C/C++/Java
|
2009-03-06 05:21:14 +00:00
|
|
|
and Verilog), and the output of STP is a single bit of information that
|
2011-12-13 20:26:56 +00:00
|
|
|
indicates whether the formula is satisfiable or not. If the input is
|
|
|
|
satisfiable, then it also generates a variable assignment to satisfy the
|
|
|
|
input formula.
|
2009-03-06 05:21:14 +00:00
|
|
|
|
|
|
|
Additional information can be found at:
|
|
|
|
http://people.csail.mit.edu/vganesh/STP_files/stp.html
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for STP constraint solver/decision procedure
|
|
|
|
Group: Applications/Engineering
|
2012-01-10 23:20:28 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2009-03-06 05:21:14 +00:00
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
# This "devel" package provides a static (not dynamic) library because:
|
|
|
|
# 1. This is the normal usage mode when linking this as a library;
|
|
|
|
# it's what upstream and existing programs that use this program expect.
|
|
|
|
# 2. This speeds execution. In this library, speed matters.
|
|
|
|
# There's a speed penalty for .so files, and this program is much
|
|
|
|
# like a chess program - it's essentially an inner loop that searches
|
|
|
|
# a massive space of possibilities.
|
|
|
|
# A dynamic .so version could be create using:
|
|
|
|
# gcc -shared -Wl,-soname,libstp.so.1 -o libstp.so.1.0.1 libstp.a
|
|
|
|
# but this would require -fpic to compile (slowing the results).
|
|
|
|
# See my document:
|
|
|
|
# http://www.dwheeler.com/program-library/Program-Library-HOWTO/
|
|
|
|
%description devel
|
|
|
|
Development files for the STP (Simple Theorem Prover),
|
|
|
|
a constraint solver (also referred to as a decision procedure
|
2011-12-13 20:26:56 +00:00
|
|
|
or automated prover). Provides a static library.
|
2009-03-06 05:21:14 +00:00
|
|
|
|
|
|
|
%prep
|
2011-12-13 20:26:56 +00:00
|
|
|
%setup -q
|
|
|
|
%patch0
|
2012-01-10 23:38:29 +00:00
|
|
|
%patch1
|
2011-12-13 20:26:56 +00:00
|
|
|
|
2012-08-10 22:37:03 +00:00
|
|
|
# Make sure nothing uses the shipped boost or cryptominisat sources
|
|
|
|
rm -fr src/boost src/sat/cryptominisat2
|
2011-12-13 20:26:56 +00:00
|
|
|
|
|
|
|
# We do not want to know about the order of member initializers
|
2012-08-10 22:37:03 +00:00
|
|
|
sed -i "s/-Wno-deprecated/& -Wno-reorder/" scripts/Makefile.common
|
2011-12-13 20:26:56 +00:00
|
|
|
|
|
|
|
# Avoid a BR on subversion, as well as subversion version hell
|
2012-08-10 22:37:03 +00:00
|
|
|
sed -i "s|\`svnversion -c \$(TOP)\`|%{svnver}|" src/main/Makefile
|
|
|
|
|
|
|
|
# Fix Makefile bugs
|
|
|
|
sed -e "s/^\.PHONY:.*/& depend/" -e "s/^depend:.*/& ASTKind.h/" \
|
|
|
|
-i src/AST/Makefile
|
|
|
|
sed -i "s/^\.PHONY:.*/& depend/" src/main/Makefile
|
2009-03-06 05:21:14 +00:00
|
|
|
|
|
|
|
%build
|
2011-12-13 20:26:56 +00:00
|
|
|
scripts/configure --with-prefix=%{_prefix}
|
2009-03-06 05:21:14 +00:00
|
|
|
|
|
|
|
# DO NOT use _smp_mflags; build will fail.
|
2012-08-10 22:37:03 +00:00
|
|
|
make all OPTIMIZE="%{optflags} -DNDEBUG" LIB_DIR=%{_libdir} \
|
|
|
|
LDFLAGS="$RPM_LD_FLAGS -lcryptominisat"
|
2009-03-06 05:21:14 +00:00
|
|
|
|
2012-01-11 04:34:05 +00:00
|
|
|
# Currently the valgrind tests are failing, because valgrind reports the use
|
|
|
|
# of uninitialized variables deep within libdl. All other tests pass, so
|
|
|
|
# disable this until we can figure out how to get the valgrind tests to pass.
|
|
|
|
# %%check
|
|
|
|
# make regressall
|
2009-03-06 05:21:14 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
mkdir -p %{buildroot}%{_includedir}/stp
|
|
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
|
|
|
2011-12-13 20:26:56 +00:00
|
|
|
# This "make install" doesn't support DESTDIR=%%{buildroot}.
|
2009-03-06 05:21:14 +00:00
|
|
|
# We'll rig PREFIX/LIB_DIR, since that happens to work for this makefile.
|
|
|
|
make install PREFIX=%{buildroot}%{_prefix} LIB_DIR=%{buildroot}%{_libdir}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/*
|
2011-12-13 20:26:56 +00:00
|
|
|
%doc AUTHORS README LICENSE LICENSE_COMPONENTS papers
|
2009-03-06 05:21:14 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/libstp*.a
|
|
|
|
%{_includedir}/stp/
|
|
|
|
|
|
|
|
%changelog
|
2012-08-10 22:37:03 +00:00
|
|
|
* Tue Aug 7 2012 Jerry James <loganjerry@gmail.com> - 0.1-11.20120615svn
|
|
|
|
- Update to recent subversion snapshot
|
|
|
|
- Do not build bundled cryptominisat
|
|
|
|
|
2012-07-21 21:21:52 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-10.20120109svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-28 20:14:07 +00:00
|
|
|
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-9.20120109svn
|
|
|
|
- Rebuilt for c++ ABI breakage
|
|
|
|
|
2012-01-10 23:20:28 +00:00
|
|
|
* Tue Jan 10 2012 Jerry James <loganjerry@gmail.com> - 0.1-8.20120109svn
|
|
|
|
- Update to recent subversion snapshot
|
2012-01-10 23:56:22 +00:00
|
|
|
- Add GCC 4.7 patch
|
2012-01-11 04:34:05 +00:00
|
|
|
- Disable tests until valgrind doesn't cause failures in libdl
|
2012-01-10 23:20:28 +00:00
|
|
|
|
2011-12-13 20:26:56 +00:00
|
|
|
* Tue Dec 13 2011 Jerry James <loganjerry@gmail.com> - 0.1-7.20111130svn
|
|
|
|
- Update to recent subversion snapshot
|
|
|
|
- Minor spec file cleanups
|
|
|
|
|
2011-02-09 16:17:02 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2009-07-27 04:54:04 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-03-06 05:44:47 +00:00
|
|
|
* Mon Mar 6 2009 David A. Wheeler <dwheeler at, dwheeler.com> 0.1-4
|
|
|
|
- Re-sync with CVS
|
|
|
|
|
2009-03-06 05:41:07 +00:00
|
|
|
* Mon Mar 6 2009 David A. Wheeler <dwheeler at, dwheeler.com> 0.1-3
|
|
|
|
- Modified spec so can rebuild in proper order on Fedora
|
|
|
|
|
2009-03-06 05:21:14 +00:00
|
|
|
* Mon Mar 3 2009 David A. Wheeler <dwheeler at, dwheeler.com> 0.1-2
|
|
|
|
- Fixed comments by Marcela Maslanova, mmaslano (at) redhat*DOT*com 2009-02-26
|
|
|
|
- Moved definitions of subpackages to "top" of spec before prep.
|
|
|
|
- moved "check" before "files".
|
|
|
|
- Use macro for release version 0.1-11-18-2008 for future updates.
|
|
|
|
- No doc for -devel package; it's already in the base.
|
|
|
|
- CPPFLAGS now includes optflags.
|
|
|
|
|
|
|
|
* Mon Feb 23 2009 David A. Wheeler <dwheeler at, dwheeler.com> 0.1-1
|
|
|
|
- Initial packaging
|