[gecode] Initial import (bz#843695)

Julian C. Dunn jdunn at fedoraproject.org
Thu Aug 23 16:20:44 UTC 2012


commit 0d859edfabaf14aa0962d366c9a5bd0378521201
Author: Julian C. Dunn <jdunn at aquezada.com>
Date:   Thu Aug 23 12:20:31 2012 -0400

    Initial import (bz#843695)

 .gitignore                     |    1 +
 gecode-3.7.3-no_examples.patch |   12 +++
 gecode.spec                    |  148 ++++++++++++++++++++++++++++++++++++++++
 sources                        |    1 +
 4 files changed, 162 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..687c6d9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gecode-3.7.3.tar.gz
diff --git a/gecode-3.7.3-no_examples.patch b/gecode-3.7.3-no_examples.patch
new file mode 100644
index 0000000..de9f205
--- /dev/null
+++ b/gecode-3.7.3-no_examples.patch
@@ -0,0 +1,12 @@
+--- gecode-3.7.3/Makefile.in.orig	2012-05-19 17:37:45.640218480 -0400
++++ gecode-3.7.3/Makefile.in	2012-05-19 17:36:59.064237685 -0400
+@@ -777,8 +777,7 @@
+ ALLHDR = \
+ 	$(SUPPORTHDR) $(KERNELHDR) $(SEARCHHDR) \
+         $(INTHDR) $(SETHDR) $(MMHDR) \
+-	$(DRIVERHDR) $(ITERHDR) $(GISTHDR) $(FLATZINCHDR) \
+-	$(INTEXAMPLEHDR)
++	$(DRIVERHDR) $(ITERHDR) $(GISTHDR) $(FLATZINCHDR) 
+ ALLOBJ0 = $(ALLSRC:%.cpp=%$(OBJSUFFIX)) \
+ 	$(GISTMOCSRC:%.cpp=%$(OBJSUFFIX)) \
+ 	$(FLATZINC_GENSRC:%.cpp=%$(OBJSUFFIX))
diff --git a/gecode.spec b/gecode.spec
new file mode 100644
index 0000000..578a0c0
--- /dev/null
+++ b/gecode.spec
@@ -0,0 +1,148 @@
+Name:           gecode
+Version:        3.7.3
+Release:        2%{?dist}
+Summary:        Generic constraint development environment
+
+Group:          System Environment/Libraries
+License:        MIT
+URL:            http://www.gecode.org/
+Source0:        http://www.gecode.org/download/%{name}-%{version}.tar.gz
+Patch0:         gecode-3.7.3-no_examples.patch
+
+BuildRequires:  automake
+BuildRequires:  bison
+BuildRequires:  boost-devel
+BuildRequires:  flex >= 2.5.33
+BuildRequires:  graphviz
+BuildRequires:  qt-devel
+
+# for documentation
+BuildRequires:  doxygen tex(latex) tex(dvips)
+
+%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.
+
+
+%package devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%package doc
+Summary:        Documentation for %{name}
+Group:          Documentation
+Requires:       %{name} = %{version}-%{release}
+%if 0%{?fedora} >= 10 || 0%{?rhel} >= 6
+BuildArch: noarch
+%endif
+
+%description doc
+The %{name}-doc package contains documentation files for %{name}.
+
+
+%package examples
+Summary:        Example code for %{name}
+Group:          Documentation
+Requires:       %{name} = %{version}-%{release}
+%if 0%{?fedora} >= 10 || 0%{?rhel} >= 6
+BuildArch: noarch
+%endif
+
+%description examples
+The %{name}-examples package contains example code for %{name}.
+
+
+%prep
+%setup -q
+%patch0 -p1 -b .no_examples
+
+# Fix permissions
+find . -name '*.hh' -exec chmod 0644 '{}' \;
+find . -name '*.hpp' -exec chmod 0644 '{}' \;
+find . -name '*.cpp' -exec chmod 0644 '{}' \;
+chmod 0644 LICENSE misc/doxygen/*.png
+
+# Fix encoding
+pushd examples
+for file in bin-packing.cpp black-hole.cpp dominating-queens.cpp scowl.hpp word-square.cpp; do
+    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
+    touch -r $file $file.new && \
+    mv $file.new $file
+done
+popd
+
+
+%build
+aclocal
+autoconf
+
+%configure \
+  --disable-examples \
+  --enable-float-vars \
+  --enable-leak-debug \
+  --with-boost-include=%{_includedir}/boost
+
+make %{?_smp_mflags}
+make doc
+make ChangeLog
+
+iconv --from=ISO-8859-1 --to=UTF-8 -o ChangeLog.new ChangeLog
+mv ChangeLog.new ChangeLog
+
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+#move docs and examples to build root
+mkdir -p ${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name}-doc-%{version}
+mv doc/html ${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name}-doc-%{version}
+
+
+%clean
+
+
+%post -p /sbin/ldconfig
+
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc ChangeLog LICENSE
+%{_libdir}/*.so.*
+
+%files devel
+%{_bindir}/fz
+%{_bindir}/mzn-gecode
+%{_datadir}/%{name}
+%{_includedir}/%{name}
+%{_libdir}/*.so
+
+%files doc
+%{_defaultdocdir}/%{name}-doc-%{version}
+
+%files examples
+%doc examples/*
+
+
+%changelog
+* Tue Aug 21 2012 Julian C. Dunn <jdunn at aquezada.com> 3.7.3-2
+- Post-review comments in bz#843695
+
+* Sun May 20 2012 Julian C. Dunn <jdunn at aquezada.com> 3.7.3-1
+- Update for 3.7.3
+- Drop support for EPEL5. flex is too old
+
+* Fri Apr 01 2011 Erik Sabowski and James Sulinski <team at aegisco.com> 3.5.0-1
+- Update for gecode-3.5.0
+- Disabled "gist" and "qt" configure options
+
+* Sat May  8 2010 ELMORABITY Mohamed <melmorabity at fedoraproject.org> 3.3.1-1
+- Initial RPM release
diff --git a/sources b/sources
index e69de29..71b1bff 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7a5cb9945e0bb48f222992f2106130ac  gecode-3.7.3.tar.gz


More information about the scm-commits mailing list