From cd2ad0eda77c00c2a2746068beb352cad171c989e626b27556e1d32b5f4e8db9 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Mon, 21 Sep 2020 13:18:10 +0000 Subject: [PATCH] Accepting request 835118 from home:jengelh:branches:science OBS-URL: https://build.opensuse.org/request/show/835118 OBS-URL: https://build.opensuse.org/package/show/science/conauto?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++++++ .gitignore | 1 + conauto-2.03.tar.gz | 3 +++ conauto.changes | 5 +++++ conauto.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++ multipledef.patch | 36 +++++++++++++++++++++++++++++++++ 6 files changed, 117 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 conauto-2.03.tar.gz create mode 100644 conauto.changes create mode 100644 conauto.spec create mode 100644 multipledef.patch 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/conauto-2.03.tar.gz b/conauto-2.03.tar.gz new file mode 100644 index 0000000..a855726 --- /dev/null +++ b/conauto-2.03.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d76e9ef4c2449294ec4ce9b3be0abe8f5cbf8884c0ce799f10d659ad644d158a +size 21577 diff --git a/conauto.changes b/conauto.changes new file mode 100644 index 0000000..5324020 --- /dev/null +++ b/conauto.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Sep 17 08:31:52 UTC 2020 - Jan Engelhardt + +- Initial package (version 2.03) for build.opensuse.org +- Add multipledef.patch diff --git a/conauto.spec b/conauto.spec new file mode 100644 index 0000000..c4bb079 --- /dev/null +++ b/conauto.spec @@ -0,0 +1,49 @@ +# +# spec file for package buckygen +# +# Copyright (c) 2020 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +Name: conauto +Version: 2.03 +Release: 0 +Summary: Algorithm for graph isomorphism testing and automorphism group computation +License: GPL-3.0-or-later +Group: Productivity/Scientific/Math +URL: https://sites.google.com/site/giconauto/ +Source: https://sites.google.com/site/giconauto/home/conauto-2.03.tar.gz +#Patch1: multipledef.patch +BuildRequires: unzip + +%description +The "conauto" algorithm tests whether two graphs are isomorphic. This is the +reference implementation. + +%prep +%autosetup -p1 + +%build +pushd src/ +%make_build OFLAGS="%optflags -fcommon" + +%install +mkdir -p "%buildroot/%_bindir" +cp -a bin/conauto* "%buildroot/%_bindir/" + +%files +%_bindir/conauto* +%doc src/*.txt + +%changelog diff --git a/multipledef.patch b/multipledef.patch new file mode 100644 index 0000000..b76dfcd --- /dev/null +++ b/multipledef.patch @@ -0,0 +1,36 @@ +From: Jan Engelhardt +Date: 2020-09-17 10:32:23.591643664 +0200 + +It's either gcc -fcommon, or a source patch. + +--- + src/mismatches.c | 2 ++ + src/mismatches.h | 2 +- + 2 files changed, 3 insertions(+), 1 deletion(-) + +Index: conauto-2.03/src/mismatches.c +=================================================================== +--- conauto-2.03.orig/src/mismatches.c ++++ conauto-2.03/src/mismatches.c +@@ -23,6 +23,8 @@ + #define TRUE 1 + #define FALSE 0 + ++uint16_t mismatch_found_hash; ++ + void mark_new_mismatch ( Partition *p, uint8_t *mm_marked, Info_Vertex *info_vert, uint16_t mmv ) + { + const MismatchCollection *mm = p->mm_collection; +Index: conauto-2.03/src/mismatches.h +=================================================================== +--- conauto-2.03.orig/src/mismatches.h ++++ conauto-2.03/src/mismatches.h +@@ -22,7 +22,7 @@ + #include + #include + +-uint16_t mismatch_found_hash; ++extern uint16_t mismatch_found_hash; + + typedef struct { + uint16_t *mismatch_hash;