Name: molsketch Version: 0.5.1 Release: 7%{?dist} Summary: Molecular Structures Editor License: GPLv2+ URL: http://molsketch.sourceforge.net # Mask while using test builds #Source0: https://downloads.sourceforge.net/molsketch/Molsketch-%%{version}-src.tar.gz # Mask for regular builds Source0: https://downloads.sourceforge.net/molsketch/Molsketch-latest-src.tar.gz BuildRequires: gcc-c++ BuildRequires: qt5-qtbase-devel BuildRequires: kdelibs-devel BuildRequires: openbabel-devel BuildRequires: dos2unix BuildRequires: pkgconfig(Qt5Svg) BuildRequires: desktop-file-utils BuildRequires: libappstream-glib Requires: hicolor-icon-theme Requires: openbabel%{?_isa} %description Molsketch is a 2D molecular editing tool. Its goal is to help you draw molecules quickly and easily. Of course your creation can be exported afterwards in high quality, in a number of vector and bitmap formats. %package doc Summary: Documentation files for %{name} License: GPLv2+ BuildArch: noarch %description doc %{summary}. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: qt5-qttools-devel %description devel 2D molecular structures editor. This package contains header files and libraries needed to develop applications that use %{name}. # Regular builds: #%%setup -q -n Molsketch-%%{version} # Test buids: #%%setup -q -n Molsketch-latest %prep %setup -q -n Molsketch-latest dos2unix -k doc/cs/molsketch.adp %build %{qmake_qt5} "MSK_PREFIX=%{_prefix}" "MSK_INSTALL_PREFIX=%{_prefix}" "MSK_INSTALL_DOCS=%{_docdir}/%{name}" "MSK_INSTALL_LIBS=%{_libdir}/%{name}" "MSK_INSTALL_INCLUDES=%{_includedir}" ./Molsketch.pro %make_build %install %make_install INSTALL_ROOT="%{buildroot}" %check desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml %files %license COPYING %doc CHANGELOG %{_bindir}/%{name}-qt5 %{_libdir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/metainfo/*.appdata.xml %{_datadir}/mime/packages/%{name}.xml %{_datadir}/icons/hicolor/scalable/mimetypes/application-x-%{name}.svg %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{_datadir}/pixmaps/* %files doc %license COPYING %{_docdir}/%{name} %files devel %{_includedir}/lib%{name}/ %changelog * Sun Feb 11 2018 Alexander Ploumistos - 0.5.1-7 - New release - Remove headers patch - Remove obsolete Group tag * Fri Feb 09 2018 Alexander Ploumistos - 0.5.1-6 - New bugfix release - Patch by Antonio Trante to install all header files in devel subpackage - Some more corrections * Wed Feb 07 2018 Alexander Ploumistos - 0.5.1-5 - New version with refactored installation - Use ldconfig scriptlets * Mon Jan 22 2018 Alexander Ploumistos - 0.5.1-4 - More cleaning up * Mon Jan 22 2018 Alexander Ploumistos - 0.5.1-3 - Clean up spec file according to remarks by Antonio Trande (rhbz#1536852) * Sun Jan 21 2018 Alexander Ploumistos - 0.5.1-2 - Remove obsolete scriptlets - AppData changes merged upstream * Fri Jan 05 2018 Alexander Ploumistos - 0.5.1-1 - New version - Remove conditional for AppData on F25 * Tue Dec 05 2017 Alexander Ploumistos - 0.5.0-8 - Add conditional for AppData on F25 * Tue Dec 05 2017 Alexander Ploumistos - 0.5.0-7 - New version with several improvements - Add AppData XML file (submitted upstream) * Wed Nov 01 2017 Alexander Ploumistos - 0.5.0-6 - Fix post & postun scriptlets * Wed Nov 01 2017 Alexander Ploumistos - 0.5.0-5 - Fix for upstream bug #21 - Re-add xpm icon * Tue Oct 31 2017 Alexander Ploumistos - 0.5.0-4 - New release with modernized desktop file and mimetypes - Move setup tasks from scriptlets to Qt project files * Fri Oct 13 2017 Alexander Ploumistos - 0.5.0-3 - More bugfixes * Wed Oct 11 2017 Alexander Ploumistos - 0.5.0-2 - New bugfix release * Tue Sep 26 2017 Alexander Ploumistos - 0.5.0-1 - New version * Wed Jun 28 2017 Alexander Ploumistos - 0.4.1-1 - Update to newer version * Sat Apr 02 2016 Alexander Ploumistos - 0.3.1-1 - First release based on work by Huaren Zhong