commit dd5c834b191c6de78abc7b06b40ff5073f8acce5be57dd6c071ee010e2335fc8 Author: Matthias Mailänder Date: Fri Feb 7 13:49:43 2014 +0000 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 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-io.changes b/gap-io.changes new file mode 100644 index 0000000..412dd05 --- /dev/null +++ b/gap-io.changes @@ -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 diff --git a/gap-io.spec b/gap-io.spec new file mode 100644 index 0000000..58000d6 --- /dev/null +++ b/gap-io.spec @@ -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 diff --git a/io-4.2_for4.5.tar.bz2 b/io-4.2_for4.5.tar.bz2 new file mode 100644 index 0000000..7397444 --- /dev/null +++ b/io-4.2_for4.5.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:093d7900fe08560ba7026538384d64f360a6995e0196fcfeeb865a03621eb2ba +size 801564 diff --git a/io-install.diff b/io-install.diff new file mode 100644 index 0000000..7da4e43 --- /dev/null +++ b/io-install.diff @@ -0,0 +1,47 @@ +From: Jan Engelhardt +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: