spglib/spglib.spec

77 lines
2.0 KiB
RPMSpec

Name: spglib
Version: 2.5.0
Release: 1mamba
Summary: C library for finding and handling crystal symmetries
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://spglib.readthedocs.io/en/latest/
Source: https://github.com/spglib/spglib.git/v%{version}/spglib-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
C library for finding and handling crystal symmetries.
%package -n lib%{name}
Group: System/Libraries
Summary: C library for finding and handling crystal symmetries
%description -n lib%{name}
C library for finding and handling crystal symmetries.
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
%cmake
%cmake_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%cmake_install
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libsymspg.so.*
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/spglib.h
%{_libdir}/libsymspg.so
%dir %{_libdir}/cmake/Spglib
%{_libdir}/cmake/Spglib/*.cmake
%{_libdir}/pkgconfig/spglib.pc
%doc ChangeLog.md README.md
%changelog
* Wed Jul 10 2024 Automatic Build System <autodist@openmamba.org> 2.5.0-1mamba
- automatic version update by autodist
* Sat May 04 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.0-1mamba
- package created using the webbuild interface