File gecode.spec of Package gecode
#
# spec file for package gecode
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gecode
Version: 3.7.3
Release: 0
Summary: This is a toolkit for developing constraint-based systems and applications
Group: Development/Libraries/Other
License: MIT
Url: http://www.gecode.org/
Source0: http://www.gecode.org/download/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: flex gcc-c++
%package devel
License: MIT
Summary: Gecode development files
Group: Development/Libraries/Other
Requires: gecode
%description
Gecode is a toolkit for developing constraint-based systems and
applications. Gecode provides a constraint solver with state-of-the-art
performance while being modular and extensible. Gecode is open, free,
portable, accessible, efficient and parallel.
%description devel
Gecode development package. Header files and static libraries
%prep
%setup -q
./configure --prefix=/usr --with-architectures=i386,x86_64 --libdir=%{_libdir}
%build
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
find %{buildroot}/usr/include -name "*.hpp" -exec chmod 644 {} \;
chmod 644 LICENSE
%files
%defattr(-,root,root)
%doc LICENSE
/usr/bin/*
%{_libdir}/*.so.*
/usr/share/gecode
%{_datadir}/gecode/*
%files devel
%defattr(-,root,root)
%{_libdir}/*.so
/usr/include/examples
/usr/include/examples/scowl.hpp
/usr/include/gecode
/usr/include/gecode/*
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog