File nauty.spec of Package nauty
#
# spec file for package nauty
#
# Copyright (c) 2018 SUSE LINUX 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: nauty
%define lname libnauty-2_6_10
%define fuv 26r10
Version: 2.6.10
Release: 0
Summary: Tools for computing automorphism groups of graphs
License: Apache-2.0
Group: Productivity/Scientific/Math
URL: http://pallini.di.uniroma1.it/
Source: http://pallini.di.uniroma1.it/nauty%fuv.tar.gz
Patch1: nauty-am.diff
Patch2: nauty-uninitialized.diff
BuildRequires: automake
BuildRequires: gmp-devel
BuildRequires: libtool >= 2
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
nauty and Traces are programs for computing automorphism groups of
graphs and digraphs (*Traces does not accept digraphs at this time).
They can also produce a canonical label. They are written in a
portable subset of C, and run on a considerable number of different
systems.
There is a small suite of programs called gtools included in the
package. For example, geng can generate non-isomorphic graphs very
quickly. There are also generators for bipartite graphs, digraphs,
and multigraphs.
%package -n %lname
Summary: Graph automorphism group computation with Nauty
Group: System/Libraries
%description -n %lname
nauty and Traces are programs for computing automorphism groups of
graphs and digraphs. They can also produce a canonical label.
%package devel
Summary: Development files for nauty, a math library
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
nauty and Traces are programs for computing automorphism groups of
graphs and digraphs. They can also produce a canonical label.
This subpackage contains the header files for developing
applications that want to make use of libnauty.
%prep
%setup -qn nauty%fuv
%patch -P 1 -P 2 -p1
%build
rm -f makefile
autoreconf -fi
export CFLAGS="%optflags -Wno-unused"
%configure
make %{?_smp_mflags}
%install
%make_install
rm -f "%buildroot/%_libdir"/*.la
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%defattr(-,root,root)
%_bindir/*
%doc COPYRIGHT
%files -n %lname
%defattr(-,root,root)
%_libdir/libnauty*-2.6.7.so
%files devel
%defattr(-,root,root)
%_includedir/nauty/
%_libdir/libnauty.so
%_libdir/libnautyA1.so
%_libdir/libnautyL0.so
%_libdir/libnautyL1.so
%_libdir/libnautyS0.so
%_libdir/libnautyS1.so
%_libdir/libnautyW0.so
%_libdir/libnautyW1.so
%changelog