Add profile file openbabel3.sh (rhbz#2112710)
This commit is contained in:
parent
98672ead77
commit
36f45c5c9a
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
Name: openbabel
|
Name: openbabel
|
||||||
Version: 3.1.1
|
Version: 3.1.1
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
Summary: Chemistry software file format converter
|
Summary: Chemistry software file format converter
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://openbabel.org/
|
URL: https://openbabel.org/
|
||||||
|
@ -242,6 +242,19 @@ rm -f %{buildroot}%{_libdir}/cmake/openbabel2/*.cmake
|
||||||
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
|
||||||
install -Dpm644 babel.png %{buildroot}%{_datadir}/pixmaps/babel.png
|
install -Dpm644 babel.png %{buildroot}%{_datadir}/pixmaps/babel.png
|
||||||
|
|
||||||
|
# Create profile files
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
||||||
|
cat > %{buildroot}%{_sysconfdir}/profile.d/openbabel3.sh <<EOF
|
||||||
|
BABEL_LIBDIR=%{_libdir}/%{name}
|
||||||
|
export BABEL_LIBDIR
|
||||||
|
BABEL_DATADIR=%{_datadir}/%{name}
|
||||||
|
export BABEL_DATADIR
|
||||||
|
EOF
|
||||||
|
cat > %{buildroot}%{_sysconfdir}/profile.d/openbabel3.csh <<EOF
|
||||||
|
setenv BABEL_LIBDIR %{_libdir}/%{name}
|
||||||
|
setenv BABEL_DATADIR %{_datadir}/%{name}
|
||||||
|
EOF
|
||||||
|
|
||||||
%if 1
|
%if 1
|
||||||
%check
|
%check
|
||||||
%define _vpath_builddir %{_target_platform}
|
%define _vpath_builddir %{_target_platform}
|
||||||
|
@ -269,6 +282,8 @@ ctest3 -j1 --force-new-ctest-process
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
%config(noreplace) %{_sysconfdir}/profile.d/openbabel3.sh
|
||||||
|
%config(noreplace) %{_sysconfdir}/profile.d/openbabel3.csh
|
||||||
%{_bindir}/ob*
|
%{_bindir}/ob*
|
||||||
%{_bindir}/roundtrip
|
%{_bindir}/roundtrip
|
||||||
%{_mandir}/man1/*.1*
|
%{_mandir}/man1/*.1*
|
||||||
|
@ -319,6 +334,9 @@ ctest3 -j1 --force-new-ctest-process
|
||||||
%{ruby_vendorarchdir}/openbabel.so
|
%{ruby_vendorarchdir}/openbabel.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Aug 07 2022 Antonio Trande <sagitter@fedoraproject.org> - 3.1.1-12
|
||||||
|
- Add profile file openbabel3.sh (rhbz#2112710)
|
||||||
|
|
||||||
* Thu Aug 04 2022 Scott Talbert <swt@techie.net> - 3.1.1-11
|
* Thu Aug 04 2022 Scott Talbert <swt@techie.net> - 3.1.1-11
|
||||||
- Rebuild with wxWidgets 3.2
|
- Rebuild with wxWidgets 3.2
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue