Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package spglib for openSUSE:Factory checked in at 2024-05-01 14:58:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/spglib (Old) and /work/SRC/openSUSE:Factory/.spglib.new.1880 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "spglib" Wed May 1 14:58:03 2024 rev:9 rq:1171138 version:2.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/spglib/spglib.changes 2024-01-07 21:41:24.778443172 +0100 +++ /work/SRC/openSUSE:Factory/.spglib.new.1880/spglib.changes 2024-05-01 14:58:30.726392552 +0200 @@ -1,0 +2,15 @@ +Thu Apr 25 09:42:36 UTC 2024 - Atri Bhattacharya <badshah...@gmail.com> + +- Update to version 2.4.0: + * New features: + - feat: Refactor CMake project (gh#spglib/spglib#397). + - feat: Switch to importlib.resources (gh#spglib/spglib#308). + - feat: Mark C functions as deprecated (gh#spglib/spglib#435). + - feat: Explicitly mark exported API (gh#spglib/spglib#437). + * Bug fix: Python installation when running outside skbuild + (gh#spglib/spglib#335). +- Build fortran bindings and split put separate shared lib and + devel packages for fortran. +- BuildRequires: pkgconfig(gmock) required for tests. + +------------------------------------------------------------------- Old: ---- spglib-2.2.0.tar.gz New: ---- spglib-2.4.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ spglib.spec ++++++ --- /var/tmp/diff_new_pack.5i1q1U/_old 2024-05-01 14:58:31.222410550 +0200 +++ /var/tmp/diff_new_pack.5i1q1U/_new 2024-05-01 14:58:31.222410550 +0200 @@ -23,22 +23,26 @@ %endif %define shlib libsymspg2 +%define shlib_fort libspglib_f08-2 Name: spglib -Version: 2.2.0 +Version: 2.4.0 Release: 0 Summary: Find and handle crystal symmetries License: BSD-3-Clause Group: Productivity/Scientific/Physics URL: https://spglib.github.io/spglib/ Source0: https://github.com/spglib/spglib/archive/v%{version}.tar.gz#/spglib-%{version}.tar.gz -BuildRequires: cmake BuildRequires: c++_compiler +BuildRequires: cmake >= 3.24 +BuildRequires: gcc-fortran BuildRequires: python3-devel BuildRequires: python3-numpy-devel BuildRequires: python3-setuptools %if %{with tests} -BuildRequires: python3-pytest +BuildRequires: gmock BuildRequires: python3-PyYAML +BuildRequires: python3-pytest +BuildRequires: pkgconfig(gmock) BuildRequires: pkgconfig(gtest) %endif @@ -76,13 +80,33 @@ %description -n python3-spglib Spglib is a C library to find and handle crystal symmetries. +%package -n %{shlib_fort} +Summary: Shared library for SPGLIB fortran bindings + +%description -n %{shlib_fort} +Spglib is a C library to find and handle crystal symmetries. + +This package provides the shared library for fortran bindings of %{name}. + +%package -n spglib_f08-devel +Summary: Headers and sources for spglib fortran bindings +Requires: %{shlib_fort} = %{version} + +%description -n spglib_f08-devel +Spglib is a C library to find and handle crystal symmetries. + +This package provides the headers and sources for fortran bindings of %{name}. + %prep %setup -q %autopatch -p1 %build %cmake \ + -DSPGLIB_SHARED_LIBS:BOOL=ON \ + -DSPGLIB_WITH_Fortran:BOOL=ON \ -DSPGLIB_WITH_Python:BOOL=ON \ + -DCMAKE_INSTALL_MODULEDIR=%{_libdir} \ -DSPGLIB_WITH_TESTS:BOOL=%{?with_tests:ON}%{!?with_tests:OFF} \ %{nil} %cmake_build @@ -94,8 +118,8 @@ chmod 644 ruby/*.rb # Remove shared library and header copies from python directory -rm -Rf %{python3_sitearch}/spglib/include -rm -Rf %{python3_sitearch}/spglib/libsymspg.so* +rm -Rf %{buildroot}%{python3_sitearch}/spglib/include +rm -Rf %{buildroot}%{python3_sitearch}/spglib/lib %check %if %{with tests} @@ -104,8 +128,8 @@ %ctest %endif -%post -n %{shlib} -p /sbin/ldconfig -%postun -n %{shlib} -p /sbin/ldconfig +%ldconfig_scriptlets -n %{shlib} +%ldconfig_scriptlets -n %{shlib_fort} %files -n %{shlib} %license COPYING @@ -117,7 +141,20 @@ %{_libdir}/libsymspg.so %{_libdir}/cmake/Spglib %{_libdir}/pkgconfig/spglib.pc +%exclude %{_libdir}/cmake/Spglib/*fortran* %files -n python3-spglib %{python3_sitearch}/spglib +%files -n %{shlib_fort} +%license COPYING +%{_libdir}/libspglib_f08.so.2* + +%files -n spglib_f08-devel +%license COPYING +%{_includedir}/*.F90 +%{_libdir}/libspglib_f08.so +%{_libdir}/spglib_f08.mod +%{_libdir}/pkgconfig/spglib_f08.pc +%{_libdir}/cmake/Spglib/*fortran* + ++++++ spglib-2.2.0.tar.gz -> spglib-2.4.0.tar.gz ++++++ ++++ 40603 lines of diff (skipped)