From 386f429c81baea4c623ae83d9eeb713a78b65820356e2fa7062e059899f95862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 5 Feb 2014 10:19:00 +0000 Subject: [PATCH] Accepting request 220888 from home:jengelh:branches:science OBS-URL: https://build.opensuse.org/request/show/220888 OBS-URL: https://build.opensuse.org/package/show/science/gap-cvec?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + cvec-2.4.tar.bz2 | 3 ++ cvec-install.diff | 35 +++++++++++++++++++++++ gap-cvec.changes | 4 +++ gap-cvec.spec | 72 +++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 138 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 cvec-2.4.tar.bz2 create mode 100644 cvec-install.diff create mode 100644 gap-cvec.changes create mode 100644 gap-cvec.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/cvec-2.4.tar.bz2 b/cvec-2.4.tar.bz2 new file mode 100644 index 0000000..38968b7 --- /dev/null +++ b/cvec-2.4.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:093cd0e6f1f82e0bf13637fc99743299267ff5f11cde8e07782cb9dce8df1a83 +size 817263 diff --git a/cvec-install.diff b/cvec-install.diff new file mode 100644 index 0000000..89c853f --- /dev/null +++ b/cvec-install.diff @@ -0,0 +1,35 @@ +From: Jan Engelhardt +Date: 2013-05-13 17:34:18.087851151 +0200 + +build: fix wrong source operand for copy operation + +/bin/sh ./libtool --mode=install /usr/bin/install -c cvec.la '/home/abuild/rpmbuild/BUILDROOT/gap-cvec-2.4-0.x86_64/usr/lib64' +libtool: install: /usr/bin/install -c .libs/cvec.so /home/abuild/rpmbuild/BUILDROOT/gap-cvec-2.4-0.x86_64/usr/lib64/cvec.so +libtool: install: /usr/bin/install -c .libs/cvec.lai /home/abuild/rpmbuild/BUILDROOT/gap-cvec-2.4-0.x86_64/usr/lib64/cvec.la +libtool: install: warning: remember to run `libtool --finish /usr/lib64' +/usr/bin/mkdir -p ./bin/x86_64-suse-linux-gnu-gcc-default64 +cp /usr/lib64/cvec.so /home/abuild/rpmbuild/BUILD/cvec/bin/x86_64-suse-linux-gnu-gcc-default64/cvec.so +cp: cannot stat '/usr/lib64/cvec.so': No such file or directory + +--- + Makefile.am | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +Index: cvec/Makefile.am +=================================================================== +--- cvec.orig/Makefile.am ++++ cvec/Makefile.am +@@ -19,10 +19,11 @@ all-local: cvec.la install-libLTLIBRARIE + # @$(MAKE) $(AM_MAKEFLAGS) install-libLTLIBRARIES + $(mkdir_p) $(top_srcdir)/$(BINARCHDIR) + if SYS_IS_CYGWIN +- cp $(libdir)/cvec.dll $(GAPINSTALLLIB) ++ cp $(DESTDIR)$(libdir)/cvec.dll $(GAPINSTALLLIB) + else +- cp $(libdir)/cvec.so $(GAPINSTALLLIB) ++ cp $(DESTDIR)$(libdir)/cvec.so $(GAPINSTALLLIB) + endif ++ rm -f $(DESTDIR)$(libdir)/cvec.la + @echo "SUCCESS!" + + distclean-local: diff --git a/gap-cvec.changes b/gap-cvec.changes new file mode 100644 index 0000000..e78310f --- /dev/null +++ b/gap-cvec.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri May 10 13:47:02 UTC 2013 - jengelh@inai.de + +- Split cvec (version 2.4) off the gap RPM package diff --git a/gap-cvec.spec b/gap-cvec.spec new file mode 100644 index 0000000..978aa39 --- /dev/null +++ b/gap-cvec.spec @@ -0,0 +1,72 @@ +# +# spec file for package gap-cvec +# +# Copyright (c) 2013 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/ +# + + +Name: gap-cvec +Summary: GAP: Compact vectors over finite fields +Version: 2.4 +Release: 0 +License: GPL-2.0 +Group: Productivity/Scientific/Math +Url: http://www-groups.mcs.st-and.ac.uk/~neunhoef/Computer/Software/Gap/cvec.html + +Source: ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/packages/cvec-%version.tar.bz2 +Patch1: cvec-install.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gap-devel >= 4.5.5 +BuildRequires: gap-rpm-devel +BuildRequires: gmp-devel +BuildRequires: libtool +BuildRequires: xz +Requires: gap-core >= 4.5.5 +Requires: gap-gapdoc >= 1.2 +Requires: gap-io >= 4.1 +Requires: gap-orb >= 4.2 + +%description +This package provides an implementation of compact vectors over +finite fields. Contrary to earlier implementations no table lookups +are used but only word-based processor arithmetic. This allows for +bigger finite fields and higher speed. + +%prep +%setup -qn cvec +%patch -P 1 -p1 + +%build +autoreconf -fi +%configure --with-gaproot="%gapdir" +make %{?_smp_mflags} DESTDIR="%buildroot" +. "%gapdir/sysinfo.gap" +if [ -e "bin/$GAParch/cvec.so" ]; then + # kill preexisting copy + ln -fs "%_libdir/cvec.so" "bin/$GAParch/cvec.so" +fi + +rm -Rf {autom4*,aclocal*,config*,cnf,m4,src} +find . -type f -name "*.la" -delete + +%install +%gappkg_simple_install + +%files -f %name.files +%defattr(-,root,root) +%_libdir/cvec.so + +%changelog