[2981] | 1 | %define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo 4.7.2) |
---|
[1636] | 2 | %define _qt4_prefix %(pkg-config --variable prefix --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt-%{qt4_ver}) |
---|
| 3 | |
---|
| 4 | %define ENABLE_TESTS -DENABLE_TESTS:BOOL=ON |
---|
| 5 | |
---|
| 6 | Name: avogadro |
---|
| 7 | Summary: An advanced molecular editor for chemical purposes |
---|
| 8 | Version: 1.0.1 |
---|
[7728] | 9 | Release: 13%{?_dist_release} |
---|
[1636] | 10 | |
---|
| 11 | Group: Applications/Editors |
---|
| 12 | License: GPLv2 |
---|
| 13 | URL: http://avogadro.openmolecules.net/ |
---|
[2763] | 14 | |
---|
[1636] | 15 | Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 |
---|
[2763] | 16 | # fix FTBFS with SIP 4.11 (Gentoo#335644) |
---|
| 17 | # patch submitted: http://bugs.gentoo.org/attachment.cgi?id=247308 (upstream is |
---|
| 18 | # CCed on the Gentoo bug) |
---|
| 19 | Patch0: avogadro-1.0.1-sip411.patch |
---|
| 20 | # fix crash with current SIP and Python 2.7 (#642248) |
---|
| 21 | Patch1: avogadro-1.0.1-pycapsule.patch |
---|
[1636] | 22 | |
---|
| 23 | BuildRequires: cmake >= 2.6.0 |
---|
| 24 | BuildRequires: qt4-devel >= 4.5.1 |
---|
[2981] | 25 | BuildRequires: qt4-tools |
---|
[1636] | 26 | BuildRequires: eigen2-devel >= 2.0.3 |
---|
| 27 | BuildRequires: openbabel-devel >= 2.2.2 |
---|
| 28 | BuildRequires: libboost-devel >= 1.35 |
---|
[2784] | 29 | BuildRequires: libboost-python >= 1.35 |
---|
[1636] | 30 | BuildRequires: glew-devel >= 1.5.0 |
---|
| 31 | BuildRequires: desktop-file-utils |
---|
| 32 | BuildRequires: docbook-utils |
---|
[2981] | 33 | BuildRequires: sip-devel >= 4.11 |
---|
[1636] | 34 | BuildRequires: numpy |
---|
| 35 | |
---|
| 36 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 37 | |
---|
| 38 | %description |
---|
| 39 | An advanced molecular editor designed for |
---|
| 40 | cross-platform use in computational chemistry, |
---|
| 41 | molecular modeling, bioinformatics, materials science, |
---|
| 42 | and related areas, which offers flexible rendering and |
---|
| 43 | a powerful plugin architecture. |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | %package libs |
---|
| 47 | Summary: Shared libraries for Avogadro |
---|
[2784] | 48 | Summary(ja): Avogadro の共用ライブラリ |
---|
[1636] | 49 | Group: System Environment/Libraries |
---|
| 50 | Requires: sip |
---|
| 51 | |
---|
| 52 | %description libs |
---|
| 53 | This package contains the shared libraries for the |
---|
| 54 | molecular editor Avogadro. |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %package devel |
---|
| 58 | Summary: Development files for Avogadro |
---|
[2784] | 59 | Summary(ja): Avogadro の開発用ファイル |
---|
[1636] | 60 | Group: Development/Libraries |
---|
| 61 | Requires: %{name}-libs = %{version}-%{release} |
---|
[2763] | 62 | Requires: qt4-devel = %{_qt4_version} |
---|
[2784] | 63 | Requires: eigen2-devel >= 2.0.3 |
---|
| 64 | Requires: glew-devel >= 1.5.0 |
---|
[1636] | 65 | |
---|
| 66 | %description devel |
---|
| 67 | This package contains files to develop applications using |
---|
| 68 | Avogadros libraries. |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | %prep |
---|
| 72 | %setup -q |
---|
[2763] | 73 | %patch0 -p1 -b .sip411 |
---|
| 74 | %patch1 -p1 -b .pycapsule |
---|
[1636] | 75 | |
---|
| 76 | # nuke unpatched copy, use working version included in cmake instead -- Rex |
---|
| 77 | rm -f cmake/modules/FindPythonLibs.cmake |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | %build |
---|
| 81 | mkdir -p %{_target_platform} |
---|
| 82 | pushd %{_target_platform} |
---|
| 83 | cmake -Wno-dev \ |
---|
| 84 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 85 | -DBIN_INSTALL_DIR:PATH=bin \ |
---|
| 86 | -DLIB_INSTALL_DIR:PATH=%{_lib} \ |
---|
| 87 | -DENABLE_GLSL:BOOL=ON \ |
---|
| 88 | -DENABLE_PYTHON:BOOL=ON \ |
---|
| 89 | %{?ENABLE_TESTS} .. |
---|
| 90 | popd |
---|
| 91 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | %install |
---|
| 95 | rm -rf $RPM_BUILD_ROOT |
---|
| 96 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 97 | |
---|
| 98 | |
---|
| 99 | %check |
---|
| 100 | desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/avogadro.desktop |
---|
| 101 | # all of these currently require an active X session, so will fail |
---|
| 102 | # in mock |
---|
| 103 | %{?ENABLE_TESTS:make test -C %{_target_platform} ||:} |
---|
| 104 | |
---|
| 105 | |
---|
| 106 | %post libs -p /sbin/ldconfig |
---|
| 107 | |
---|
| 108 | %postun libs -p /sbin/ldconfig |
---|
| 109 | |
---|
| 110 | %files |
---|
| 111 | %defattr(-,root,root,-) |
---|
| 112 | %doc AUTHORS ChangeLog COPYING |
---|
| 113 | %{_bindir}/avogadro |
---|
| 114 | %{_bindir}/avopkg |
---|
| 115 | # TODO: %lang'ify stuff under %%{_datadir}/avogadro/i18n/ |
---|
| 116 | %{_datadir}/avogadro/ |
---|
| 117 | %{_datadir}/pixmaps/avogadro-icon.png |
---|
| 118 | %{_datadir}/applications/avogadro.desktop |
---|
| 119 | %{_mandir}/man1/avogadro.1* |
---|
| 120 | %{_mandir}/man1/avopkg.1* |
---|
| 121 | |
---|
| 122 | %files devel |
---|
| 123 | %defattr(-,root,root,-) |
---|
| 124 | %{_includedir}/avogadro/ |
---|
| 125 | %{_libdir}/libavogadro.so |
---|
| 126 | %{_libdir}/avogadro/*.cmake |
---|
| 127 | %{_libdir}/avogadro/1_0/*.cmake |
---|
| 128 | # these look like dups of system copies?, take a closer look and/or ask upstream -- Rex |
---|
| 129 | %{_libdir}/avogadro/1_0/cmake/ |
---|
| 130 | %{_qt4_prefix}/mkspecs/features/avogadro.prf |
---|
| 131 | |
---|
| 132 | %files libs |
---|
| 133 | %defattr(-,root,root,-) |
---|
| 134 | %{python_sitelib}/Avogadro.so |
---|
| 135 | %{_datadir}/libavogadro/ |
---|
| 136 | %{_libdir}/libavogadro.so.1* |
---|
| 137 | %dir %{_libdir}/avogadro/ |
---|
| 138 | %dir %{_libdir}/avogadro/1_0/ |
---|
| 139 | %{_libdir}/avogadro/1_0/colors/ |
---|
| 140 | %{_libdir}/avogadro/1_0/extensions/ |
---|
| 141 | %{_libdir}/avogadro/1_0/engines/ |
---|
| 142 | %{_libdir}/avogadro/1_0/tools/ |
---|
| 143 | |
---|
| 144 | |
---|
| 145 | %changelog |
---|
[7728] | 146 | * Sun Jul 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.1-13 |
---|
| 147 | - rebuild with qt4-4.8.5 |
---|
| 148 | |
---|
[6899] | 149 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.1-12 |
---|
| 150 | - rebuild with qt4-4.8.3 |
---|
| 151 | |
---|
[6786] | 152 | * Tue Sep 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.1-11 |
---|
| 153 | - rebuild with qt4-4.8.2 |
---|
| 154 | |
---|
[5701] | 155 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.1-10 |
---|
| 156 | - rebuild with python-2.7.2 |
---|
| 157 | |
---|
[5390] | 158 | * Tue Jan 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.1-9 |
---|
| 159 | - rebuild with qt4-4.8.0 and glew-1.7.0 |
---|
| 160 | |
---|
[2981] | 161 | * Wed Mar 9 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.1-8 |
---|
| 162 | - rebuilt with qt4-4.7.2 |
---|
| 163 | - BR: qt4-tools instead of qt4-designer |
---|
| 164 | |
---|
[2784] | 165 | * Sun Feb 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.1-7 |
---|
| 166 | - added BR: libboost-python |
---|
| 167 | - added R: glew-devel, eigen2-devel to devel package |
---|
| 168 | |
---|
[2763] | 169 | * Wed Feb 23 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.1-6 |
---|
| 170 | - rebuilt with qt4-4.7.1 |
---|
| 171 | - added Patch0 and 1 from Fedora |
---|
| 172 | |
---|
[2529] | 173 | * Tue Jan 18 2011 Shu KONNO <owa@bg.wakwak.com> - 1.0.1-5 |
---|
| 174 | - rebuilt with libboost-1.45.0 |
---|
| 175 | |
---|
[1636] | 176 | * Fri Aug 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.1-4 |
---|
| 177 | - Initial build for Vine Linux |
---|
| 178 | |
---|
| 179 | * Wed Aug 04 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 1.0.1-3 |
---|
| 180 | - Rebuild for Boost soname bump |
---|
| 181 | - Update to match current guidelines |
---|
| 182 | |
---|
| 183 | * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.0.1-2 |
---|
| 184 | - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild |
---|
| 185 | |
---|
| 186 | * Mon May 24 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.0.1-1 |
---|
| 187 | - avogadro-1.0.1 |
---|
| 188 | - -devel: move cmake-related files here |
---|
| 189 | - -devel: Req: qt4-devel |
---|
| 190 | - %%files: track lib sonames |
---|
| 191 | - %%check section |
---|
| 192 | |
---|
| 193 | * Wed Feb 10 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.0.0-6 |
---|
| 194 | - reenable plugin builds and libs subpackage |
---|
| 195 | - fix their build with sip 4.10 |
---|
| 196 | |
---|
| 197 | * Fri Jan 08 2010 Sebastian Dziallas <sebastian@when.com> - 1.0.0-5 |
---|
| 198 | - disable plugin builds and libs subpackage |
---|
| 199 | |
---|
| 200 | * Thu Jan 07 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.0.0-4 |
---|
| 201 | - rebuild (sip) |
---|
| 202 | |
---|
| 203 | * Mon Nov 23 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.0-3 |
---|
| 204 | - rebuild (for qt-4.6.0-rc1, f13+) |
---|
| 205 | |
---|
| 206 | * Mon Nov 16 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.0-2 |
---|
| 207 | - -libs: Requires: sip-api(%%_sip_api_major) >= %%_sip_api (#538124) |
---|
| 208 | - Requires: %%{name}-libs ... |
---|
| 209 | |
---|
| 210 | * Thu Oct 29 2009 Sebastian Dziallas <sebastian@when.com> 1.0.0-1 |
---|
| 211 | - update to new upstream release |
---|
| 212 | |
---|
| 213 | * Tue Oct 20 2009 Rex Dieter <rdieter@fedoraproject.org> 0.9.8-3 |
---|
| 214 | - rebuild (eigen2) |
---|
| 215 | |
---|
| 216 | * Sat Sep 26 2009 Sebastian Dziallas <sebastian@when.com> 0.9.8-2 |
---|
| 217 | - fix typo in file list |
---|
| 218 | |
---|
| 219 | * Sat Sep 26 2009 Sebastian Dziallas <sebastian@when.com> 0.9.8-1 |
---|
| 220 | - update to new upstream release |
---|
| 221 | - enable python and glsl support again |
---|
| 222 | |
---|
| 223 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2 |
---|
| 224 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 225 | |
---|
| 226 | * Sat Jun 06 2009 Sebastian Dziallas <sebastian@when.com> 0.9.6-1 |
---|
| 227 | - new upstream release to fix issue with qt 4.5.0 and earlier |
---|
| 228 | |
---|
| 229 | * Wed Jun 03 2009 Sebastian Dziallas <sebastian@when.com> 0.9.5-3 |
---|
| 230 | - remove remaining python parts |
---|
| 231 | - fix files section finally |
---|
| 232 | |
---|
| 233 | * Wed Jun 03 2009 Sebastian Dziallas <sebastian@when.com> 0.9.5-2 |
---|
| 234 | - disable python and glsl for now |
---|
| 235 | - fix files section |
---|
| 236 | |
---|
| 237 | * Wed Jun 03 2009 Sebastian Dziallas <sebastian@when.com> 0.9.5-1 |
---|
| 238 | - update to new release |
---|
| 239 | |
---|
| 240 | * Tue May 12 2009 Sebastian Dziallas <sebastian@when.com> 0.9.4-1 |
---|
| 241 | - update to new release |
---|
| 242 | |
---|
| 243 | * Fri Apr 10 2009 Sebastian Dziallas <sebastian@when.com> 0.9.3-1 |
---|
| 244 | - update to new release |
---|
| 245 | |
---|
| 246 | * Sat Mar 21 2009 Sebastian Dziallas <sebastian@when.com> 0.9.2-2 |
---|
| 247 | - get desktop file properly installed |
---|
| 248 | |
---|
| 249 | * Sat Mar 14 2009 Sebastian Dziallas <sebastian@when.com> 0.9.2-1 |
---|
| 250 | - update to new release |
---|
| 251 | |
---|
| 252 | * Wed Feb 25 2009 Sebastian Dziallas <sebastian@when.com> 0.9.1-1 |
---|
| 253 | - update to new release |
---|
| 254 | |
---|
| 255 | * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-2 |
---|
| 256 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 257 | |
---|
| 258 | * Thu Jan 22 2009 Sebastian Dziallas <sebastian@when.com> 0.9.0-1 |
---|
| 259 | - update to new release |
---|
| 260 | |
---|
| 261 | * Sun Sep 14 2008 Sebastian Dziallas <sebastian@when.com> 0.8.1-6 |
---|
| 262 | - add handbook to docs |
---|
| 263 | |
---|
| 264 | * Sun Sep 14 2008 Sebastian Dziallas <sebastian@when.com> 0.8.1-5 |
---|
| 265 | - add build requirements and fix group names |
---|
| 266 | |
---|
| 267 | * Wed Aug 13 2008 Sebastian Dziallas <sebastian@when.com> 0.8.1-4 |
---|
| 268 | - fix typos |
---|
| 269 | |
---|
| 270 | * Sat Aug 9 2008 Sebastian Dziallas <sebastian@when.com> 0.8.1-3 |
---|
| 271 | - reorganize spec file |
---|
| 272 | |
---|
| 273 | * Sat Aug 9 2008 Sebastian Dziallas <sebastian@when.com> 0.8.1-2 |
---|
| 274 | - rename shared library package and structure spec file |
---|
| 275 | |
---|
| 276 | * Sun Aug 3 2008 Sebastian Dziallas <sebastian@when.com> 0.8.1-1 |
---|
| 277 | - initial pacakging release based on PackMan release |
---|