Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:redwil:15.4
xdrawchem
xdrawchem.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xdrawchem.spec of Package xdrawchem
# # spec file for package xdrawchem # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: xdrawchem Version: 2.0r209 Release: 0 Summary: A 2D molecule drawing program License: GPL-2.0+ Group: Productivity/Scientific/Chemistry Url: http://xdrawchem.sourceforge.net/ Source: %{name}-%{version}.tar.xz Source1: %{name}.desktop Source2: %{name}.png Patch1: xdrawchem-gcc43.patch Patch4: xdrawchem-2.0r209-gcc47.patch # Imported from debian, cf. (deb#763037) Patch5: xdrawchem-fix-crash-after-text-tool.patch BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libopenbabel3-devel BuildRequires: libjpeg-devel BuildRequires: libqt4-devel BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: xorg-x11-devel BuildRequires: xz BuildRoot: %{_tmppath}/%{name}-%{version}-build %description XDrawChem is a two-dimensional molecule drawing program for Unix operating systems. It is similar in functionality to other molecule drawing programs such as ChemDraw (TM, CambridgeSoft). It can read and write MDL Molfiles and CML files to allow sharing between XDrawChem and other chemistry applications. %prep %setup -q %patch1 -p1 %if 0%{?suse_version} > 1110 %patch4 -p1 %endif %patch5 -p1 sed -e 's/xdrawchem2/xdrawchem/g' -i xdrawchem.pro %build export GC_MACIMUM_HEAP_SIZE="134217728" %configure qmake \ %if 0%{?suse_version} > 1320 QMAKE_CXXFLAGS+="-std=c++98" \ %endif xdrawchem.pro make %{?_smp_mflags} %install make %{?_smp_mflags} INSTALL_ROOT=%{buildroot} install install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png rm -f %{buildroot}%{_datadir}/xdrawchem/caslist.txt %suse_update_desktop_file -n -i %{name} "Education Science Chemistry" %fdupes -s %{buildroot} %files %defattr(-,root,root) %doc HISTORY.txt GPL.txt README.txt TODO.txt %{_bindir}/%{name} %dir %{_datadir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor