Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:jayvdb:branches:devel:languages:python:numeric
python-apptools
python-apptools.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-apptools.spec of Package python-apptools
# # spec file for package python-apptools # # Copyright (c) 2018 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/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define X_display ":98" %bcond_with test Name: python-apptools Version: 4.4.0 Release: 0 Summary: Application tools in Python License: BSD-3-Clause and LGPL-2.1 and LGPL-3.0 # Source code is under BSD but images are under different licenses # and details are inside image_LICENSE.txt Group: Development/Libraries/Python Url: https://github.enthought.com/apptools Source: https://files.pythonhosted.org/packages/source/a/apptools/apptools-%{version}.tar.gz BuildRequires: %{python_module configobj} BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module traits} BuildRequires: fdupes BuildRequires: python-rpm-macros %if %{with test} BuildRequires: %{python_module Pygments} BuildRequires: %{python_module nose} BuildRequires: %{python_module pandas} BuildRequires: %{python_module tables} BuildRequires: %{python_module traitsui} BuildRequires: xorg-x11-server %endif Requires: python-configobj Requires: python-traits Recommends: python-pandas Recommends: python-tables BuildArch: noarch %python_subpackages %description The apptools project includes a set of packages that Enthought has found useful in creating a number of applications. They implement functionality that is commonly needed by many applications. Part of the Enthought Tool Suite (ETS). %prep %setup -q -n apptools-%{version} # Fix wrong-script-interpreter sed -i "s|#!/usr/bin/env python|#!%__python3|" examples/permissions/server/*.py %fdupes examples/ %build %python_build %install %python_install %{python_expand chmod a+x %{buildroot}%{$python_sitelib}/apptools/lru_cache/tests/test_lru_cache.py sed -i "s|^#!/usr/bin/env python$|#!%__$python|" %{buildroot}%{$python_sitelib}/apptools/lru_cache/tests/test_lru_cache.py %fdupes %{buildroot}%{$python_sitelib} $python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/apptools/ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/apptools/ %fdupes %{buildroot}%{$python_sitelib}/apptools/lru_cache/tests/ } %if %{with test} %check export DISPLAY=%{X_display} Xvfb %{X_display} >& Xvfb.log & trap "kill $! || true" EXIT sleep 10 %{python_expand mkdir tester_%{$python_bin_suffix} pushd tester_%{$python_bin_suffix} export PYTHONPATH=%{buildroot}%{$python_sitelib} $python -B -m nose.core -v apptools popd } %endif %files %{python_files} %defattr(-,root,root,-) %doc README.rst TODO.txt CHANGES.txt %doc examples/ %license LICENSE.txt image_LICENSE*.txt %{python_sitelib}/apptools/ %{python_sitelib}/apptools-%{version}-py*.egg-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor