- python3-fixes.patch added a fix for python3 UTF-8 support OBS-URL: https://build.opensuse.org/request/show/491757 OBS-URL: https://build.opensuse.org/package/show/science/python3-instant?expand=0&rev=2
62 lines
1.9 KiB
RPMSpec
62 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package python-instant
|
|
#
|
|
# Copyright (c) 2015 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/
|
|
#
|
|
|
|
|
|
%define modname instant
|
|
Name: python3-instant
|
|
Version: 2016.2.0
|
|
Release: 0
|
|
Summary: A Python module that allows for instant inlining
|
|
License: LGPL-3.0+
|
|
Group: Development/Languages/Python
|
|
Url: http://fenicsproject.org
|
|
Source0: http;//bitbucket.org/fenics-project/%{modname}/downloads/%{modname}-%{version}.tar.gz
|
|
Patch0: python3-fixes.patch
|
|
BuildArch: noarch
|
|
BuildRequires: python3-devel >= 3.2
|
|
BuildRequires: python3-numpy
|
|
BuildRequires: python3-setuptools
|
|
Requires: swig >= 3.0
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Instant is a Python module that allows for instant inlining of C and C++
|
|
code in Python. It is a small Python module built on top of SWIG and
|
|
Distutils. It is part of the FEniCS Project (http://fenicsproject.org).
|
|
|
|
%prep
|
|
%setup -q -n %{modname}-%{version}
|
|
%patch0 -p1
|
|
|
|
%build
|
|
python3 setup.py build
|
|
|
|
%install
|
|
python3 setup.py install --root %{buildroot} --prefix=%{_prefix}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS ChangeLog COPYING COPYING.LESSER README.rst
|
|
%{_bindir}/*
|
|
%{_mandir}/man1/*
|
|
%{python3_sitelib}/*
|
|
|
|
%changelog
|