91 lines
2.6 KiB
RPMSpec
91 lines
2.6 KiB
RPMSpec
Name: maeparser
|
|
Version: 1.3.0
|
|
Release: 1mamba
|
|
Summary: A parser for Schrodinger Maestro files
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://github.com/schrodinger/maeparser
|
|
## GITSOURCE https://github.com/schrodinger/maeparser.git v1.2.2
|
|
Source: https://github.com/schrodinger/maeparser.git/v%{version}/maeparser-%{version}.tar.bz2
|
|
License: MIT
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libboost-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libstdc++6-devel
|
|
BuildRequires: libz-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: cmake
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description
|
|
maeparser is a parser for Schrodinger Maestro files.
|
|
|
|
%package -n lib%{name}
|
|
Group: System/Libraries
|
|
Summary: A parser for Schrodinger Maestro files
|
|
|
|
%description -n lib%{name}
|
|
maeparser is a parser for Schrodinger Maestro files.
|
|
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
|
|
%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
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall -C build
|
|
|
|
%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}/libmaeparser.so.*
|
|
%doc LICENSE.txt
|
|
|
|
%files -n lib%{name}-devel
|
|
%defattr(-,root,root)
|
|
%dir %{_includedir}/maeparser
|
|
%{_includedir}/maeparser/*.hpp
|
|
%{_libdir}/libmaeparser.so
|
|
%{_libdir}/cmake/maeparser-config*.cmake
|
|
%doc README.md
|
|
|
|
%changelog
|
|
* Wed Sep 07 2022 Automatic Build System <autodist@mambasoft.it> 1.3.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Oct 14 2020 Automatic Build System <autodist@mambasoft.it> 1.2.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Mar 17 2020 Automatic Build System <autodist@mambasoft.it> 1.2.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Nov 22 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.2-1mamba
|
|
- package created using the webbuild interface
|