coordgenlibs/coordgenlibs.spec

110 lines
3.2 KiB
RPMSpec
Raw Permalink Normal View History

Name: coordgenlibs
Version: 3.0.2
Release: 1mamba
Summary: Schrodinger-developed 2D Coordinate Generation
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/schrodinger/coordgenlibs
Source: https://github.com/schrodinger/coordgenlibs.git/v%{version}/coordgenlibs-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libmaeparser-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: libcoordgen = %{?epoch:%epoch:}%{version}-%{release}
%description
Schrodinger-developed 2D Coordinate Generation.
%package -n libcoordgen
Group: System/Libraries
Summary: Schrodinger-developed 2D Coordinate Generation.
%description -n libcoordgen
Schrodinger-developed 2D Coordinate Generation.
This package contains shared libraries for %{name}.
%package -n libcoordgen-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: libcoordgen = %{?epoch:%epoch:}%{version}-%{release}
%description -n libcoordgen-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%ifarch x86_64
sed -i "s|LIBRARY DESTINATION lib)|LIBRARY DESTINATION %{_lib})|" CMakeLists.txt
sed -i "s|ARCHIVE DESTINATION lib$|ARCHIVE DESTINATION %{_lib}|" CMakeLists.txt
sed -i "s|lib/cmake|%{_lib}/cmake|" CMakeLists.txt
%endif
%build
%cmake -d build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCOORDGEN_USE_MAEPARSER=ON
#-Dmaeparser_DIR=%{_libdir}/cmake
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
install -Dm644 templates.mae -t %{buildroot}%{_datadir}/coordgen/templates.mae
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libcoordgen -p /sbin/ldconfig
%postun -n libcoordgen -p /sbin/ldconfig
%files -n libcoordgen
%defattr(-,root,root)
%{_libdir}/libcoordgen.so.*
%dir %{_datadir}/coordgen
%{_datadir}/coordgen/templates.mae
%doc LICENSE
%files -n libcoordgen-devel
%defattr(-,root,root)
%dir %{_includedir}/coordgen
%{_includedir}/coordgen/*
%{_libdir}/libcoordgen.so
%{_libdir}/cmake/coordgen-config*.cmake
%doc README.md
%changelog
* Thu Feb 02 2023 Automatic Build System <autodist@mambasoft.it> 3.0.2-1mamba
- automatic version update by autodist
* Wed Sep 07 2022 Automatic Build System <autodist@mambasoft.it> 3.0.1-1mamba
- automatic version update by autodist
* Thu Sep 16 2021 Automatic Build System <autodist@mambasoft.it> 3.0.0-1mamba
- automatic version update by autodist
* Mon Apr 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.3-1mamba
- update to 2.0.3
* Tue Apr 06 2021 Automatic Build System <autodist@mambasoft.it> 2.0.2-1mamba
- automatic version update by autodist
* Wed Mar 31 2021 Automatic Build System <autodist@mambasoft.it> 2.0.0-1mamba
- automatic version update by autodist
* Thu Feb 04 2021 Automatic Build System <autodist@mambasoft.it> 1.4.2-1mamba
- automatic version update by autodist
* Fri Nov 22 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.2-1mamba
- package created using the webbuild interface