File rasmol.spec of Package rasmol
Summary: A molecular graphics visualization tool
Name: rasmol
Version: 2.7.4.2
Release: 1.1
License: GPL-2.0-or-later
Group: Productivity/Scientific/Chemistry
URL: http://www.rasmol.org/
Source0: RasMol_%{version}.tar.bz2
Source1: CBFlib_0.7.9.1.tar.bz2
Patch0: RasMol_%{version}.patch
Patch1: RasMol_%{version}-decrement_var.patch
Patch2: RasMol_%{version}-no_wget_CBFlib.patch
Patch3: RasMol_%{version}-rpmoptflags.patch
Patch4: rasmol-gcc15.patch
BuildRequires: gcc-c++
%if "%{?_arch}" == "aarch64"
BuildRequires: xorg-x11-libX11-32bit-devel
BuildRequires: xorg-x11-libXext-32bit-devel
BuildRequires: xorg-x11-libXi-32bit-devel
%else
BuildRequires: xorg-x11-libX11-devel
BuildRequires: xorg-x11-libXext-devel
BuildRequires: xorg-x11-libXi-devel
%endif
%description
RasMol is a molecular graphics program intended for the
visualization of proteins, nucleic acids, and small molecules.
It reads in molecular structure files and interactively displays
the molecule on the screen in a variety of representations
and color schemes.
%prep
%setup -q -n RasMol_%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
Cd CBFlib_0.7.9 && ./configure && make && cp -r * ..
%build
cd RasMol_%{version}
make COPTIONS="%{optflags}" PIXELDEPTH=16
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_bindir}
make -C src DESTDIR=%{buildroot} PIXELDEPTH=16 install
make -C src DESTDIR=%{buildroot} install.man
%{__install} -d %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_mandir}/man1/rasmol.1x %{buildroot}%{_mandir}/man1/rasmol.1
%files
%{_bindir}/rasmol
%doc %{_mandir}/man1/rasmol.1
%doc README_FIRST
%changelog
* Mon Sep 22 2025 Package Maintainer <maintainer@example.com>
- Initial release of version 2.7.4.2