maeparser/maeparser.spec

88 lines
2.5 KiB
RPMSpec
Raw Normal View History

Name: maeparser
Version: 1.2.4
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
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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 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