forked from pool/gap-io
Accepting request 221194 from home:jengelh:branches:science
OBS-URL: https://build.opensuse.org/request/show/221194 OBS-URL: https://build.opensuse.org/package/show/science/gap-io?expand=0&rev=1
This commit is contained in:
commit
dd5c834b19
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
4
gap-io.changes
Normal file
4
gap-io.changes
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 10 13:47:02 UTC 2013 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Split io (version 4.2) off the gap RPM package
|
62
gap-io.spec
Normal file
62
gap-io.spec
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
#
|
||||||
|
# spec file for package gap-io
|
||||||
|
#
|
||||||
|
# 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-io
|
||||||
|
Summary: GAP: Bindings for low level C library IO
|
||||||
|
Version: 4.2
|
||||||
|
Release: 0
|
||||||
|
License: GPL-3.0+
|
||||||
|
Group: Productivity/Scientific/Math
|
||||||
|
URL: http://www-groups.mcs.st-and.ac.uk/~neunhoef/Computer/Software/Gap/io.html
|
||||||
|
|
||||||
|
Source: ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/packages/io-4.2_for4.5.tar.bz2
|
||||||
|
Patch1: io-install.diff
|
||||||
|
BuildRequires: autoconf
|
||||||
|
BuildRequires: automake
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: gap-devel >= 4.5.3
|
||||||
|
BuildRequires: gap-rpm-devel
|
||||||
|
BuildRequires: gmp-devel
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
Requires: gap-core >= 4.5.3
|
||||||
|
Requires: gap-gapdoc >= 1.2
|
||||||
|
|
||||||
|
%description
|
||||||
|
The IO package provides bindings for GAP to the lower levels of
|
||||||
|
Input/Output functionality in the C library.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -qn io
|
||||||
|
%patch -P 1 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
autoreconf -fi
|
||||||
|
%configure --with-gaproot="%gapdir"
|
||||||
|
make %{?_smp_mflags} DESTDIR="%buildroot"
|
||||||
|
rm -Rf {aclocal*,autom4*,cnf,config*,m4,src}
|
||||||
|
find . -type f -name "*.la" -delete
|
||||||
|
|
||||||
|
%install
|
||||||
|
%gappkg_simple_install
|
||||||
|
%fdupes %buildroot/%_prefix
|
||||||
|
|
||||||
|
%files -f %name.files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
|
||||||
|
%changelog
|
3
io-4.2_for4.5.tar.bz2
Normal file
3
io-4.2_for4.5.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:093d7900fe08560ba7026538384d64f360a6995e0196fcfeeb865a03621eb2ba
|
||||||
|
size 801564
|
47
io-install.diff
Normal file
47
io-install.diff
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
From: Jan Engelhardt <jengelh@inai.de>
|
||||||
|
Date: 2013-05-19 19:31:21.739854572 +0200
|
||||||
|
|
||||||
|
build: unbreak DESTDIR support
|
||||||
|
(duh)
|
||||||
|
|
||||||
|
+ make -j10 DESTDIR=/home/abuild/rpmbuild/BUILDROOT/gap-io-4.2-0.x86_64
|
||||||
|
make[1]: Entering directory `/home/abuild/rpmbuild/BUILD/io'
|
||||||
|
/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 io_la-io.lo `test -f 'src/io.c' || echo './'`src/io.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/io.c -fPIC -DPIC -o .libs/io_la-io.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 io.la -rpath /usr/lib64 io_la-io.lo
|
||||||
|
libtool: link: gcc -shared -fPIC -DPIC .libs/io_la-io.o -O2 -Wl,-soname -Wl,io.so -o .libs/io.so
|
||||||
|
libtool: link: ( cd ".libs" && rm -f "io.la" && ln -s "../io.la" "io.la" )
|
||||||
|
test -z "/usr/lib64" || /usr/bin/mkdir -p "/home/abuild/rpmbuild/BUILDROOT/gap-io-4.2-0.x86_64/usr/lib64"
|
||||||
|
/bin/sh ./libtool --mode=install /usr/bin/install -c io.la '/home/abuild/rpmbuild/BUILDROOT/gap-io-4.2-0.x86_64/usr/lib64'
|
||||||
|
libtool: install: /usr/bin/install -c .libs/io.so /home/abuild/rpmbuild/BUILDROOT/gap-io-4.2-0.x86_64/usr/lib64/io.so
|
||||||
|
libtool: install: /usr/bin/install -c .libs/io.lai /home/abuild/rpmbuild/BUILDROOT/gap-io-4.2-0.x86_64/usr/lib64/io.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/io.so /home/abuild/rpmbuild/BUILD/io/bin/x86_64-suse-linux-gnu-gcc-default64/io.so
|
||||||
|
cp: cannot stat '/usr/lib64/io.so': No such file or directory
|
||||||
|
make[1]: *** [all-local] Error 1
|
||||||
|
make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/io'
|
||||||
|
make: *** [all-recursive] Error 1
|
||||||
|
|
||||||
|
---
|
||||||
|
Makefile.am | 5 +++--
|
||||||
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
Index: io/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- io.orig/Makefile.am
|
||||||
|
+++ io/Makefile.am
|
||||||
|
@@ -18,10 +18,11 @@ endif
|
||||||
|
all-local: io.la install-libLTLIBRARIES
|
||||||
|
$(mkdir_p) $(top_srcdir)/$(BINARCHDIR)
|
||||||
|
if SYS_IS_CYGWIN
|
||||||
|
- cp $(libdir)/io.dll $(GAPINSTALLLIB)
|
||||||
|
+ mv $(DESTDIR)$(libdir)/io.dll $(GAPINSTALLLIB)
|
||||||
|
else
|
||||||
|
- cp $(libdir)/io.so $(GAPINSTALLLIB)
|
||||||
|
+ mv $(DESTDIR)$(libdir)/io.so $(GAPINSTALLLIB)
|
||||||
|
endif
|
||||||
|
+ rm -f $(DESTDIR)$(libdir)/io.la
|
||||||
|
@echo "SUCCESS!"
|
||||||
|
|
||||||
|
distclean-local:
|
Loading…
Reference in New Issue
Block a user