[sympol] Initial import.
Jerry James
jjames at fedoraproject.org
Wed Aug 22 14:41:06 UTC 2012
commit 5ed0e6fde10b733c1906a1dbe0a532e661b5c6b0
Author: Jerry James <jamesjer at betterlinux.com>
Date: Wed Aug 22 08:40:53 2012 -0600
Initial import.
.gitignore | 2 +
sources | 2 +
sympol.spec | 100 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 104 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..52915f7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/sympol-0.1.7.tar.gz
+/sympol-manual-0.1.pdf
diff --git a/sources b/sources
index e69de29..7e52ffc 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+66edeeee4e53b36d7825879098c1ff70 sympol-0.1.7.tar.gz
+150e9f22652a4ce3dc98b66c88c7082e sympol-manual-0.1.pdf
diff --git a/sympol.spec b/sympol.spec
new file mode 100644
index 0000000..8b1155d
--- /dev/null
+++ b/sympol.spec
@@ -0,0 +1,100 @@
+# There is currently no check script because upstream's tests have bitrotted.
+# Upstream has been informed of the situation.
+
+Name: sympol
+Version: 0.1.7
+Release: 2%{?dist}
+Summary: Symmetric polyhedra tool
+
+Group: Applications/Engineering
+License: GPLv2+
+URL: http://www.math.uni-rostock.de/~rehn/software/sympol.html
+Source0: http://www.math.uni-rostock.de/~rehn/software/%{name}-%{version}.tar.gz
+Source1: http://www.math.uni-rostock.de/~rehn/software/%{name}-manual-0.1.pdf
+
+BuildRequires: bliss-devel
+BuildRequires: boost-devel
+BuildRequires: cmake
+BuildRequires: cddlib-devel
+BuildRequires: eigen3-devel
+BuildRequires: gmp-devel
+BuildRequires: lrslib-devel
+BuildRequires: permlib-devel
+
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+
+%description
+SymPol is a C++ tool to work with symmetric polyhedra. It helps to
+compute restricted automorphisms (parts of the linear symmetry group) of
+polyhedra and performs polyhedral description conversion up to a given
+or computed symmetry group.
+
+%package libs
+Summary: Symmetric polyhedra library
+Group: Development/Libraries
+
+%description libs
+This package contains the SymPol library.
+
+%package devel
+Summary: Headers and libraries for developing SymPol applications
+Group: Development/Libraries
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+Requires: boost-devel%{?_isa}
+Requires: eigen3-devel
+Requires: gmp-devel%{?_isa}
+Requires: permlib-devel
+
+%description devel
+This package contains the headers and library files needed to develop
+SymPol applications.
+
+%prep
+%setup -q
+cp -p %{SOURCE1} .
+
+# Do not use the bundled cddlib, lrslib, or permlib
+rm -fr external/{cddlib-094f,lrslib-042c,permlib}
+sed -e "/(external/d" \
+ -e "s|-O3 -g|-I%{_includedir}/cddlib -I%{_includedir}/lrslib|" \
+ -i CMakeLists.txt
+
+%build
+export LDFLAGS="$RPM_LD_FLAGS -Wl,--as-needed"
+%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+# Fix some header files with broken includes
+cd $RPM_BUILD_ROOT%{_includedir}/%{name}
+for f in *.h; do
+ sed -r -e 's|(#include ").*/(.*")|\1\2|' -i.orig $f
+ touch -r $f.orig $f
+ rm -f $f.orig
+done
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+%files
+%doc %{name}-manual-0.1.pdf
+%{_bindir}/%{name}
+%{_mandir}/man1/%{name}.1*
+
+%files libs
+%doc AUTHORS COPYING
+%{_libdir}/lib%{name}.so.*
+
+%files devel
+%{_libdir}/lib%{name}.so
+%{_includedir}/%{name}/
+
+%changelog
+* Mon Aug 20 2012 Jerry James <loganjerry at gmail.com> - 0.1.7-2
+- Move COPYING to the -libs subpackage
+
+* Mon Apr 30 2012 Jerry James <loganjerry at gmail.com> - 0.1.7-1
+- Initial RPM
More information about the scm-commits
mailing list