## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: spglib Summary: C library for finding and handling crystal symmetries Version: 2.2.0 Release: %autorelease License: BSD URL: https://spglib.readthedocs.io/ Source: https://github.com/spglib/spglib/archive/refs/tags/v%{version}.tar.gz BuildRequires: ninja-build BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gcc-fortran BuildRequires: gtest-devel BuildRequires: python3-devel %description C library for finding and handling crystal symmetries. %package devel Summary: Development files for spglib Requires: spglib%{?_isa} = %{version}-%{release} %description devel This package contains libraries and header files for developing applications that use spglib. %package fortran Summary: Runtime files for spglib Fortran bindings Requires: spglib = %{version}-%{release} Requires: gcc-gfortran%{_isa} %description fortran This package contains runtime files to run applications that were built using spglib's Fortran bindings. %package fortran-devel Summary: Development files for spglib with Fortran bindings Requires: spglib-fortran%{?_isa} = %{version}-%{release} Requires: spglib-devel = %{version}-%{release} %description fortran-devel This package contains Fortran module and header files for developing Fortran applications that use spglib. %package -n python3-spglib Summary: Python3 library of spglib Requires: spglib = %{version} %description -n python3-spglib This package contains the libraries to develop applications with spglib Python3 bindings. %prep %autosetup -n spglib-%{version} %generate_buildrequires %pyproject_buildrequires -x test %build %cmake \ -DSPGLIB_SHARED_LIBS=ON \ -DSPGLIB_WITH_Fortran=ON \ -DSPGLIB_WITH_Python=OFF \ -DSPGLIB_WITH_TESTS=ON \ -DCMAKE_INSTALL_MODULEDIR=%{_fmoddir} %cmake_build %pyproject_wheel %install %cmake_install %pyproject_install %pyproject_save_files spglib rm %{buildroot}%{python3_sitearch}/spglib/libsymspg.so* rm %{buildroot}%{python3_sitearch}/spglib/spglib.h # Delete from pyproject_files as well sed -i "/libsymspg.so/d" %{pyproject_files} sed -i "/spglib.h/d" %{pyproject_files} %check %ctest # Need to set LD_LIBRARY_PATH manually for this test LD_LIBRARY_PATH=%{buildroot}%{_libdir} %pytest -v %files %doc README.md %license COPYING %{_libdir}/libsymspg.so.* %files fortran %{_libdir}/libspglib_f08.so.* %files devel %{_libdir}/libsymspg.so %{_includedir}/spglib.h %{_libdir}/cmake/Spglib %exclude %{_libdir}/cmake/Spglib/SpglibTargets_fortran* %{_libdir}/pkgconfig/spglib.pc %files fortran-devel %{_libdir}/libspglib_f08.so %{_includedir}/spglib_f08.F90 %{_fmoddir}/spglib_f08.mod %{_libdir}/pkgconfig/spglib_f08.pc %{_libdir}/cmake/Spglib/SpglibTargets_fortran* %files -n python3-%{name} -f %{pyproject_files} %changelog ## START: Generated by rpmautospec * Sat Jan 27 2024 Fedora Release Engineering - 2.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Dec 08 2023 Packit - 2.2.0-1 - [packit] 2.2.0 upstream release * Mon Sep 11 2023 Packit - 2.1.0-1 - 2.1.0 upstream release * Sat Jul 22 2023 Fedora Release Engineering - 2.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 2.0.2-2 - Rebuilt for Python 3.12 * Mon May 15 2023 Antonio Trande - 2.0.2-1 - Release 2.0.2 * Sat Jan 21 2023 Fedora Release Engineering - 1.16.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 1.16.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.16.1-6 - Rebuilt for Python 3.11 * Sat Jan 22 2022 Fedora Release Engineering - 1.16.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Dec 08 2021 Charalampos Stratakis - 1.16.1-4 - Use pytest instead of the deprecated nose test runner * Fri Jul 23 2021 Fedora Release Engineering - 1.16.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.16.1-2 - Rebuilt for Python 3.10 * Sat Jan 30 2021 Antonio T - 1.16.1-1 - Release 1.16.1 * Wed Jan 27 2021 Fedora Release Engineering - 1.15.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 08 2021 Tom Stellard - 1.15.1-4 - Add BuildRequires: make * Wed Jul 29 2020 Fedora Release Engineering - 1.15.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 24 2020 Jeff Law - 1.15.1-2 - Use __cmake_in_source_build * Wed Jun 24 2020 sagitter - 1.15.1-1 - Release 1.15.1| BuildRequires python3-setuptools explicitly * Tue May 26 2020 Miro Hrončok - 1.14.1-3 - Rebuilt for Python 3.9 * Fri Jan 31 2020 Fedora Release Engineering - 1.14.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jan 23 2020 sagitter - 1.14.1-1 - Release 1.14.1 * Thu Oct 03 2019 Miro Hrončok - 1.11.1-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.11.1-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.11.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 03 2019 Fedora Release Engineering - 1.11.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Nov 20 2018 sagitter - 1.11.1-1 - Update to 1.11.1 * Sat Jul 14 2018 Fedora Release Engineering - 1.10.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.10.3-2 - Rebuilt for Python 3.7 * Thu Feb 22 2018 sagitter - 1.10.3-1 - Update to 1.10.3 * Sat Feb 17 2018 sagitter - 1.10.2-3 - Use %%%%ldconfig_scriptlets * Fri Feb 09 2018 Fedora Release Engineering - 1.10.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Dec 14 2017 sagitter - 1.10.2-1 - Update to 1.10.2 * Fri Dec 08 2017 sagitter - 1.10.1-2 - Fix upstream bug #41 * Thu Nov 23 2017 sagitter - 1.10.1-1 - Update to 1.10.1 * Thu Aug 03 2017 Fedora Release Engineering - 1.9.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.9.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jul 03 2017 sagitter - 1.9.9-3 - Modified for epel builds * Sun Mar 26 2017 sagitter - 1.9.9-2 - Update to git commit #825e80 * Fri Mar 17 2017 sagitter - 1.9.9-1 - New package (bz#1431443) ## END: Generated by rpmautospec