SHA256
1
0
forked from pool/gap-orb

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
This commit is contained in:
Matthias Mailänder 2014-02-08 10:44:01 +00:00 committed by Git OBS Bridge
commit e5c941d079
6 changed files with 137 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

4
gap-orb.changes Normal file
View File

@ -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

61
gap-orb.spec Normal file
View File

@ -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

3
orb-4.6.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7e49e3a9c04dc37b9d2dc5e2c3fca46b603fdcfbd74ab951ae5897739cafca6c
size 1147512

45
orb-install.diff Normal file
View File

@ -0,0 +1,45 @@
From: Jan Engelhardt <jengelh@inai.de>
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: