Package avogadro: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 | %def_disable python %if_enabled python %define sipver2 %(rpm -q --qf '%%{VERSION}' python-module-sip) %endif %define sover 1 %define sover_oq 0 %define libname libavogadro%sover %define libname_openqube libavogadro-openqube%sover_oq Name: avogadro Version: 1.2.0 Release: alt8 Group: Sciences/Chemistry Summary: An advanced molecular editor for chemical purposes Url: http://avogadro.openmolecules.net/ License: GPLv2 Packager: Sergey V Turchin <zerg@altlinux.org> %if_enabled python Requires: python-module-sip = %sipver2 %setup_python_module Avogadro %endif ExcludeArch: armh Source: %name-%version.tar # FC Patch1: avogadro-1.0.3-mkspecs-dir.patch Patch2: avogadro-1.0.3-no-strip.patch Patch3: avogadro-1.1.1-pkgconfig_eigen.patch Patch4: avogadro-1.1.1-qt.patch Patch5: avogadro-1.1.1-python_openbabel.patch Patch6: avogadro-1.1.1-Q_MOC_RUN.patch Patch7: avogadro-1.2.0-libmsymfloat.patch Patch8: avogadro_eigen3.patch # ALT Patch100: avogadro-1.1.0-alt-config.patch Patch101: avogadro-1.0.3-alt-desktopfile.patch Patch102: avogadro-1.1.1-alt-fix-gcc6-version.patch Patch103: avogadro-1.2.0-alt-cmake-compat.patch # Automatically added by buildreq on Tue Feb 08 2011 (-bi) #BuildRequires: boost-devel-headers boost-python-devel cmake docbook-utils eigen2 gcc-c++ libXScrnSaver-devel libXau-devel libXcomposite-devel libXdmcp-devel libXpm-devel libXt-devel libXtst-devel libXv-devel libXxf86misc-devel libglew-devel libnumpy-devel libopenbabel-devel libqt3-devel libxkbfile-devel openbabel python-module-numpy-testing python-module-sip-devel python-modules-ctypes qt4-designer rpm-build-ruby zlib-devel-static %if_enabled python BuildRequires(pre): python-module-sip-devel BuildRequires: python-module-numpy-testing python-modules-ctypes boost-python-devel %endif BuildRequires: boost-devel-headers cmake docbook-utils eigen3 gcc-c++ #docbook-utils-print BuildRequires: libGLEW-devel libnumpy-devel libopenbabel-devel libqt4-devel BuildRequires: openbabel libopenbabel-devel zlib-devel BuildRequires: kde-common-devel %description An advanced molecular editor designed for cross-platform use in computational chemistry,molecular modeling, bioinformatics, materials science,and related areas, which offers flexible rendering and a powerful plugin architecture. %package -n %libname Summary: Shared library for Avogadro Group: System/Libraries %description -n %libname Library for Avogadro molecular editor. %package -n %libname_openqube Summary: Shared library for Avogadro Group: System/Libraries %description -n %libname_openqube Library for Avogadro molecular editor. %package devel Summary: Development files for Avogadro Group: Development/C++ Requires: %libname = %version-%release %description devel Development Avogadro files. %prep %setup -q %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 # %patch100 -p1 %patch101 -p1 %patch102 -p1 %patch103 -p2 rm -f cmake/modules/FindPythonLibs.cmake sed -i 's|\${PYTHON_LIB_PATH}|%python_sitelibdir|g' libavogadro/src/python/CMakeLists.txt #find -type f -name \*.h | \ #while read header_file #do # sed -i 's|^\(#include <boost/python\.hpp>\)|#ifndef Q_MOC_RUN\n\1\n#endif|g' $header_file #done %build %add_optflags -DPIC -fPIC -I%_includedir/eigen2 %Kcmake \ -DENABLE_TESTS:BOOL=OFF \ -DENABLE_RPATH:BOOL=OFF \ -DENABLE_GLSL:BOOL=ON \ %if_enabled python -DPython_ADDITIONAL_VERSIONS=2.7 \ -DENABLE_PYTHON:BOOL=ON \ %else -DENABLE_PYTHON:BOOL=OFF \ %endif -DENABLE_VERSIONED_PLUGIN_DIR:BOOL=OFF \ -DINSTALL_CMAKE_DIR:PATH=%_libdir/libmsym/cmake \ # %Kmake %install %Kinstall %files %doc AUTHORS %_bindir/%name %_bindir/qube %_bindir/avopkg %dir %_libdir/%name %_libdir/%name/colors %_libdir/%name/extensions %_libdir/%name/engines %_libdir/%name/tools %_datadir/%name %_datadir/lib%name %_datadir/pixmaps/%name-icon.png %_desktopdir/%name.desktop %_mandir/man1/%name.1* %_mandir/man1/avopkg.1* %if_enabled python %python_sitelibdir/Avogadro.so %endif %files -n %libname %_libdir/libavogadro.so.%{sover} %_libdir/libavogadro.so.%{sover}.* %files -n %libname_openqube %_libdir/libavogadro_OpenQube.so.%{sover_oq} %_libdir/libavogadro_OpenQube.so.%{sover_oq}.* %files devel %_includedir/%name %_includedir/libmsym/ %_pkgconfigdir/avogadro.pc %_libdir/lib*.so %_libdir/%name/*.cmake %_libdir/%name/cmake %_libdir/libmsym/cmake/ %_datadir/qt4/mkspecs/features/%name.prf %changelog * Tue Mar 02 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 1.2.0-alt8 - Fixed build with new cmake and gcc. - Disabled build for armh. * Fri Jul 05 2019 Sergey V Turchin <zerg@altlinux.org> 1.2.0-alt7 - build without python * Sat Jun 22 2019 Igor Vlasenko <viy@altlinux.ru> 1.2.0-alt6 - NMU: remove rpm-build-ubt from BR: * Sun Feb 03 2019 Anton Midyukov <antohami@altlinux.org> 1.2.0-alt5 - rebuild with python-module-sip-4.9.13 * Thu May 31 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 1.2.0-alt4 - NMU: rebuilt with boost-1.67.0 * Mon Apr 09 2018 Sergey V Turchin <zerg@altlinux.org> 1.2.0-alt3 - depend on current python-module-sip virsion (ALT#34779) * Tue Mar 13 2018 Sergey V Turchin <zerg@altlinux.org> 1.2.0-alt2 - build with eigen3 * Wed Apr 12 2017 Sergey V Turchin <zerg@altlinux.org> 1.2.0-alt1 - new version * Fri Jan 20 2017 Gleb F-Malinovskiy <glebfm@altlinux.org> 1.1.1-alt4.qa1 - Fixed gcc6 version detection. * Tue Oct 18 2016 Sergey V Turchin <zerg@altlinux.org> 1.1.1-alt4 - rebuild with new openbabel * Tue Feb 02 2016 Sergey V Turchin <zerg@altlinux.org> 1.1.1-alt3 - fix to build on arm * Mon Feb 01 2016 Sergey V Turchin <zerg@altlinux.org> 1.1.1-alt2 - rebuild with gcc5 * Sat Jan 03 2015 Ivan A. Melnikov <iv@altlinux.org> 1.1.1-alt1.1 - rebuild with boost 1.57.0 * Fri Mar 21 2014 Sergey V Turchin <zerg@altlinux.org> 1.1.1-alt0.M70P.1 - built for M70P * Fri Mar 21 2014 Sergey V Turchin <zerg@altlinux.org> 1.1.1-alt1 - new version * Mon Apr 08 2013 Sergey V Turchin <zerg@altlinux.org> 1.1.0-alt1 - new version * Wed Nov 28 2012 Sergey V Turchin <zerg@altlinux.org> 1.0.3-alt5 - rebuilt with new boost * Thu Sep 06 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.3-alt4.1 - Rebuilt with Boost 1.51.0 * Mon Aug 20 2012 Sergey V Turchin <zerg@altlinux.org> 1.0.3-alt3.M60P.1 - built for M60P * Mon Aug 20 2012 Sergey V Turchin <zerg@altlinux.org> 1.0.3-alt4 - fix desktopfile cetegories * Wed Apr 04 2012 Sergey V Turchin <zerg@altlinux.org> 1.0.3-alt3 - rebuild with new boost * Fri Dec 16 2011 Sergey V Turchin <zerg@altlinux.org> 1.0.3-alt2 - rebuilt with new openbabel * Fri Dec 02 2011 Sergey V Turchin <zerg@altlinux.org> 1.0.3-alt1 - new version * Sat Oct 22 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.0.1-alt3.1.1 - Rebuild with Python-2.7 * Fri Jul 29 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.1-alt3.1 - Rebuilt with Boost 1.47.0 * Thu Mar 24 2011 Sergey V Turchin <zerg@altlinux.org> 1.0.1-alt3 - rebuilt with new boost * Wed Mar 02 2011 Sergey V Turchin <zerg@altlinux.org> 1.0.1-alt2 - fix to build * Tue Feb 08 2011 Sergey V Turchin <zerg@altlinux.org> 1.0.1-alt1 - initial build |