Mailinglist Archive: opensuse-packaging (116 mails)

< Previous Next >
[opensuse-packaging] Bug in singlespec?
  • From: Axel Braun <axel.braun@xxxxxx>
  • Date: Sun, 03 Dec 2017 09:59:49 +0100
  • Message-id: <2628369.Ixkct9MpWQ@t520.axxite.internal>
Morning,

I was building a new package, setup was made as for singlespec, but by
definition
%define skip_python2 1
it should only be py3.

I noticed a build failure for Leap 42.3, while Tumbleweed builds fine.
The error is:

[ 3s] -----------------------------------------------------------------
[ 3s] I have the following modifications for gnuhealth-thalamus.spec:
[ 3s] -----------------------------------------------------------------
[ 3s] ----- building gnuhealth-thalamus.spec (user abuild)
[ 3s] -----------------------------------------------------------------
[ 3s] -----------------------------------------------------------------
[ 3s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --
nosignature /home/abuild/rpmbuild/SOURCES/gnuhealth-thalamus.spec
[ 3s] error: line 82: Package does not exist: %files -n python-gnuhealth-
thalamus

No idea why it asks for this file, it was defined nowhere....
I have rewritten the specfile for Python3 only , and then it builds for Leap
42.3 as well.

See: https://build.opensuse.org/package/show/Application:ERP:Tryton:4.2/
gnuhealth-thalamus

I guess this is an error in the singlespec macros?

Best regards
Axel

#
# spec file for package gnuhealth-thalamus
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 Dr. Axel Braun
#
# 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-%{**}}
%bcond_without test

%define modname thalamus
Name: gnuhealth-%{modname}
Version: 0.0.6
Release: 0
License: GPL-3
Summary: The GNU Health Federation Message and Authentication Server
Url: http://health.gnu.org
Group: Development/Languages/Python
Source:
https://files.pythonhosted.org/packages/source/t/%{modname}/%{modname}-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
%if %{with test}
BuildRequires: %{python_module bcrypt}
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module Flask-HTTPAuth}
BuildRequires: %{python_module Flask-PyMongo}
BuildRequires: %{python_module Flask-RESTful}
%endif
BuildRequires: fdupes
Requires: python3-bcrypt
Requires: python3-Flask
Requires: python3-Flask-HTTPAuth
Requires: python3-Flask-PyMongo
Requires: python3-Flask-RESTful
BuildArch: noarch

%python_subpackages
%define skip_python2 1

%description
Thalamus: The GNU Health Federation Message and Authentication Server
=====================================================================

The Thalamus project provides a RESTful API hub to all the GNU Health
Federation nodes. The main functions are:

#. **Message server**: A concentrator and message relay from and to
the participating nodes in the GNU Health Federation and the GNU Health
Information System (MongoDB). Some of the participating nodes include
the GNU Health HMIS, MyGNUHealth mobile PHR application,
laboratories, research institutions and civil offices.

#. **Authentication Server**: Thalamus also serves as an authentication and
authorization server to interact with the GNUHealth Information System


Thalamus is part of the GNU Health project, but it is a self contained,
independent server that can be used in different health related scenarios.

%prep
%setup -q -n %{modname}-%{version}

%build
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{python_sitelib}/*

%changelog
< Previous Next >
Follow Ups