Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package framel for openSUSE:Factory checked 
in at 2021-04-21 20:59:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/framel (Old)
 and      /work/SRC/openSUSE:Factory/.framel.new.12324 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "framel"

Wed Apr 21 20:59:10 2021 rev:3 rq:886941 version:8.40.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/framel/framel.changes    2020-10-23 
12:24:44.628890233 +0200
+++ /work/SRC/openSUSE:Factory/.framel.new.12324/framel.changes 2021-04-21 
20:59:24.298201868 +0200
@@ -1,0 +2,13 @@
+Sun Apr 18 19:51:44 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- Fix the overeager python-rpm-macros error for main and devel
+  package declaration
+- Fix the cmake expansion for flavors
+
+-------------------------------------------------------------------
+Sat Feb 27 01:09:54 UTC 2021 - Atri Bhattacharya <badshah...@gmail.com>
+
+- Adapt for multiple python3 builds.
+- Disable building for python 3.6 since it does not support numpy.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ framel.spec ++++++
--- /var/tmp/diff_new_pack.PGMcGr/_old  2021-04-21 20:59:24.766202605 +0200
+++ /var/tmp/diff_new_pack.PGMcGr/_new  2021-04-21 20:59:24.770202611 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package framel
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,9 @@
 #
 
 
+%define skip_python2 1
+# Disable py 3.6: no numpy
+%define skip_python36 1
 %global shlib lib%{name}8
 Name:           framel
 Version:        8.40.1
@@ -26,10 +29,12 @@
 Source:         
http://software.igwn.org/lscsoft/source/%{name}-%{version}.tar.xz
 # PATCH-FIX-UPSTREAM framel-fix-pkgconfig.patch badshah...@gmail.com -- Fix 
include and lib dir paths in pkgconfig file
 Patch0:         framel-fix-pkgconfig.patch
+BuildRequires:  %{python_module numpy-devel}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  cmake >= 3.12
 BuildRequires:  gcc-c++
-BuildRequires:  python3-numpy-devel
-BuildRequires:  python3-setuptools
+BuildRequires:  python-rpm-macros
+%python_subpackages
 
 %description
 A Common Data Frame Format for Interferometric Gravitational Wave Detector has
@@ -46,60 +51,62 @@
 
 This package provides the shared library for framel.
 
-%package devel
+%package -n %{name}-devel
 Summary:        Headers and sources for developing with the gravitational wave 
frame library
 Requires:       %{shlib} = %{version}
 
-%description devel
+%description -n %{name}-devel
 The Frame Library is a software in C language, with interfaces to python and
 matlab, dedicated to frame data manipulation including file input/output.
 
 This package property the headers and sources needed to develop applications
 against the frame library.
 
-%package -n python3-%{name}
-Summary:        Python module for framel - a library for gravitational wave 
frame data
-Requires:       python3
-
-%description -n python3-%{name}
-The Frame Library is a software in C language, with interfaces to python and
-matlab, dedicated to frame data manipulation including file input/output.
-
-This package provides the python3 module for frame library.
-
 %prep
 %autosetup -p1
 
 %build
+%{python_expand #for supported py3 flavours
+export PYTHON=$python
+mkdir ../${PYTHON}_build
+cp -pr ./ ../${PYTHON}_build
+pushd ../${PYTHON}_build
+sed -i 's/find_package(Python3 /find_package(Python3 %{$python_version} EXACT 
/' Python/CMakeLists.txt
 %cmake \
   -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}/%{name} \
   -DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name} \
   -DENABLE_PYTHON=yes
-
 %cmake_build
+popd
+}
 
 %install
+%{python_expand #for supported py3 flavours
+export PYTHON=$python
+pushd ../${PYTHON}_build
 %cmake_install
+popd
+}
 
 %post -n %{shlib} -p /sbin/ldconfig
 %postun -n %{shlib} -p /sbin/ldconfig
 
-%files
+%files -n %{name}
 %license LICENSE
 %{_bindir}/*
 
 %files -n %{shlib}
 %{_libdir}/libframel.so.*
 
-%files devel
+%files -n %{name}-devel
 %license LICENSE
 %doc %{_docdir}/%{name}
 %{_includedir}/%{name}/
 %{_libdir}/libframel.so
 %{_libdir}/pkgconfig/*.pc
 
-%files -n python3-%{name}
+%files %{python_files}
 %license LICENSE
-%{python3_sitearch}/*
+%{python_sitearch}/*
 
 %changelog

Reply via email to