diff --git a/README.md b/README.md index 64db10d..34547c2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libmsym +libmsym is a C library dealing with point group symmetry in molecules. + diff --git a/libmsym.spec b/libmsym.spec new file mode 100644 index 0000000..1a203b3 --- /dev/null +++ b/libmsym.spec @@ -0,0 +1,69 @@ +Name: libmsym +Version: 0.2.3 +Release: 1mamba +Summary: A C library dealing with point group symmetry in molecules +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/mcodev31/libmsym +Source: https://github.com/mcodev31/libmsym.git/v%{version}/libmsym-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +Obsoletes: avogadro <= 1.2.0-2mamba +Obsoletes: libavogadro <= 1.2.0-2mamba +BuildRequires: cmake + +%description +libmsym is a C library dealing with point group symmetry in molecules. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Obsoletes: libavogadro-devel <= 1.2.0-2mamba + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%cmake \ + -DINSTALL_LIB_DIR=%{_libdir} \ + -DINSTALL_CMAKE_DIR=%{_libdir}/cmake/libmsym + +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libmsym.so.* +%doc LICENSE + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/libmsym +%{_includedir}/libmsym/* +%{_libdir}/libmsym.so +%dir %{_libdir}/cmake/libmsym +%{_libdir}/cmake/libmsym/libmsym*.cmake +%doc README.md + +%changelog +* Thu May 09 2024 Silvan Calarco 0.2.3-1mamba +- package created using the webbuild interface