From e5c941d079c56e93dd6ca136912f54eb97dc891271a9a121677701a7b566733b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 8 Feb 2014 10:44:01 +0000 Subject: [PATCH] Accepting request 221280 from home:jengelh:branches:science OBS-URL: https://build.opensuse.org/request/show/221280 OBS-URL: https://build.opensuse.org/package/show/science/gap-orb?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++++ .gitignore | 1 + gap-orb.changes | 4 ++++ gap-orb.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ orb-4.6.tar.bz2 | 3 +++ orb-install.diff | 45 +++++++++++++++++++++++++++++++++++ 6 files changed, 137 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 gap-orb.changes create mode 100644 gap-orb.spec create mode 100644 orb-4.6.tar.bz2 create mode 100644 orb-install.diff 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/gap-orb.changes b/gap-orb.changes new file mode 100644 index 0000000..adfbfed --- /dev/null +++ b/gap-orb.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri May 10 13:47:02 UTC 2013 - jengelh@inai.de + +- Split orb (version 4.6) off the gap RPM package diff --git a/gap-orb.spec b/gap-orb.spec new file mode 100644 index 0000000..91678b6 --- /dev/null +++ b/gap-orb.spec @@ -0,0 +1,61 @@ +# +# spec file for package gap-orb +# +# 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-orb +Summary: GAP: Methods to enumerate Orbits +Version: 4.6 +Release: 0 +License: GPL-3.0+ +Group: Productivity/Scientific/Math +URL: http://www-groups.mcs.st-and.ac.uk/~neunhoef/Computer/Software/Gap/orb.html + +Source: ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/packages/orb-%version.tar.bz2 +Patch1: orb-install.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gap-devel >= 4.4.12 +BuildRequires: gap-rpm-devel +BuildRequires: gmp-devel +BuildRequires: libtool +Requires: gap-core >= 4.4.12 +Requires: gap-gapdoc >= 1.2 +Suggests: gap-io >= 3.3 + +%description +The orb package is about enumerating orbits in various ways. + +%prep +%setup -qn orb +%patch -P 1 -p1 + +%build +autoreconf -fi +%configure --with-gaproot="%gapdir" +# runs install :/ +make %{?_smp_mflags} DESTDIR="%buildroot" +rm -Rf {aclocal*,autom4*,cnf,config*,m4,src} +find . -type f -name "*.la" -delete + +%install +%gappkg_simple_install + +%files -f %name.files +%defattr(-,root,root) + +%changelog diff --git a/orb-4.6.tar.bz2 b/orb-4.6.tar.bz2 new file mode 100644 index 0000000..8ef9b9e --- /dev/null +++ b/orb-4.6.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e49e3a9c04dc37b9d2dc5e2c3fca46b603fdcfbd74ab951ae5897739cafca6c +size 1147512 diff --git a/orb-install.diff b/orb-install.diff new file mode 100644 index 0000000..0f754a2 --- /dev/null +++ b/orb-install.diff @@ -0,0 +1,45 @@ +From: Jan Engelhardt +Date: 2013-05-21 01:17:13.304398613 +0200 + +build: unbreak DESTDIR support +(3rd package in GAP) + ++ make -j10 DESTDIR=/home/abuild/rpmbuild/BUILDROOT/gap-orb-4.6-0.x86_64 +make[1]: Entering directory `/home/abuild/rpmbuild/BUILD/orb' +/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./src -I/usr/lib/gap -I/usr/lib/gap/bin/x86_64-suse-linux-gnu-gcc-default64 -DCONFIG_H -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -c -o orb_la-orb.lo `test -f 'src/orb.c' || echo './'`src/orb.c +libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I/usr/lib/gap -I/usr/lib/gap/bin/x86_64-suse-linux-gnu-gcc-default64 -DCONFIG_H -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -c src/orb.c -fPIC -DPIC -o .libs/orb_la-orb.o +/bin/sh ./libtool --tag=CC --mode=link gcc -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -module -avoid-version -o orb.la -rpath /usr/lib64 orb_la-orb.lo +libtool: link: gcc -shared -fPIC -DPIC .libs/orb_la-orb.o -O2 -Wl,-soname -Wl,orb.so -o .libs/orb.so +libtool: link: ( cd ".libs" && rm -f "orb.la" && ln -s "../orb.la" "orb.la" ) +test -z "/usr/lib64" || /usr/bin/mkdir -p "/home/abuild/rpmbuild/BUILDROOT/gap-orb-4.6-0.x86_64/usr/lib64" + /bin/sh ./libtool --mode=install /usr/bin/install -c orb.la '/home/abuild/rpmbuild/BUILDROOT/gap-orb-4.6-0.x86_64/usr/lib64' +libtool: install: /usr/bin/install -c .libs/orb.so /home/abuild/rpmbuild/BUILDROOT/gap-orb-4.6-0.x86_64/usr/lib64/orb.so +libtool: install: /usr/bin/install -c .libs/orb.lai /home/abuild/rpmbuild/BUILDROOT/gap-orb-4.6-0.x86_64/usr/lib64/orb.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/orb.so /home/abuild/rpmbuild/BUILD/orb/bin/x86_64-suse-linux-gnu-gcc-default64/orb.so +cp: cannot stat '/usr/lib64/orb.so': No such file or directory +make[1]: *** [all-local] Error 1 + +--- + Makefile.am | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +Index: orb/Makefile.am +=================================================================== +--- orb.orig/Makefile.am ++++ orb/Makefile.am +@@ -19,10 +19,11 @@ all-local: orb.la install-libLTLIBRARIES + # @$(MAKE) $(AM_MAKEFLAGS) install-libLTLIBRARIES + $(mkdir_p) $(top_srcdir)/$(BINARCHDIR) + if SYS_IS_CYGWIN +- cp $(libdir)/orb.dll $(GAPINSTALLLIB) ++ mv $(DESTDIR)$(libdir)/orb.dll $(GAPINSTALLLIB) + else +- cp $(libdir)/orb.so $(GAPINSTALLLIB) ++ mv $(DESTDIR)$(libdir)/orb.so $(GAPINSTALLLIB) + endif ++ rm -f $(DESTDIR)$(libdir)/orb.la + @echo "SUCCESS!" + + distclean-local: