Package xcrysden: 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 | # # spec file for package xcrysden (Version 1.5.21 # # Copyright (c) 2009 SUSE LINUX Products 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. # Name: xcrysden Version: 1.5.60 Release: alt1 Summary: X-window CRYstalline Structure and DENsities License: GPLv2+ Group: Sciences/Chemistry Url: http://www.xcrysden.org Packager: Michael Shigorin <mike@altlinux.org> # Source-url: %url/download/%name-%version.tar.gz Source: %name-%version.tar Patch6: xcrysden-1.5.21-alt-autoreq.patch Requires: bwidget gawk ImageMagick-tools netpbm Requires: openbabel gifsicle # Automatically added by buildreq on Sun Dec 19 2010++ BuildRequires: gcc-fortran libGL-devel libGLU-devel libXext-devel libXmu-devel tk-devel libfftw3-devel # shell wrapped tcl scripts %add_findreq_skiplist %_libdir/%name/util/* %description XCrySDen is a crystalline and molecular structure visualisation program, which aims at display of isosurfaces and contours, which can be superimposed on crystalline structures and interactively rotated and manipulated. %package examples Summary: XCrySDen example data files Group: Sciences/Chemistry BuildArch: noarch %description examples This package contains various %name example data files. %prep %setup # disable libs download rm -rfv external/src # fix tcl/tk version %__subst "s|8\.5|8.6|" system/Make* # do not require these binaries %__subst "s| gdb | a= gdb |" xcrysden %__subst "s| valgrind | a= valgrind |" xcrysden %build cp system/Make.sys-shared Make.sys make xcrysden CFLAGS="$CFLAGS -fPIC -DUSE_FONTS -DUSE_INTERP_RESULT" FFLAGS="-O2 -std=legacy -fdefault-double-8 -fdefault-real-8 $FFLAGS" X_LIB="-L%_libdir -lXmu -lX11 -lXext" %install mkdir -p %buildroot%_libdir/%name/{images,bin,Awk,util,Tcl,Tcl/fs,scripts} install -p version usage xcrysden %buildroot%_libdir/%name/ install -p bin/* %buildroot%_libdir/%name/bin/ install -p Awk/*.awk %buildroot%_libdir/%name/Awk/ install -p images/* %buildroot%_libdir/%name/images/ install -p scripts/* %buildroot%_libdir/%name/scripts/ install -p Tcl/{*.tcl,tclIndex} %buildroot%_libdir/%name/Tcl/ install -p Tcl/fs/{*.tcl,tclIndex} %buildroot%_libdir/%name/Tcl/fs/ install -p util/* %buildroot%_libdir/%name/util/ mkdir -p %buildroot%_bindir ln -s %_libdir/%name/xcrysden %buildroot%_bindir/xcrysden mkdir -p %buildroot%_sysconfdir/%name install -p Tcl/{Xcrysden_resources,custom-definitions} %buildroot%_sysconfdir/%name/ ln -s %_sysconfdir/%name/Xcrysden_resources %buildroot%_libdir/%name/Tcl/Xcrysden_resources ln -s %_sysconfdir/%name/custom-definitions %buildroot%_libdir/%name/Tcl/custom-definitions mkdir -p %buildroot%_datadir/%name/ cp -a examples %buildroot%_datadir/%name/ ln -s %_datadir/%name/examples %buildroot%_libdir/%name/examples %files %_bindir/%name %_libdir/%name/ %dir %_sysconfdir/%name/ %config(noreplace) %_sysconfdir/%name/Xcrysden_resources %config(noreplace) %_sysconfdir/%name/custom-definitions %doc AUTHORS COPYRIGHT ChangeLog NEWS README THANKS %files examples %_datadir/%name/examples %changelog * Tue Mar 26 2019 Vitaly Lipatov <lav@altlinux.ru> 1.5.60-alt1 - new version 1.5.60 (with rpmrb script) - put changed things in the spec * Tue Oct 02 2018 Grigory Ustinov <grenka@altlinux.org> 1.5.21-alt6 - Remove dependency on ImageMagick. * Fri Mar 24 2017 Vladimir D. Seleznev <vseleznv@altlinux.org> 1.5.21-alt5 - Rebuild against Tcl/Tk 8.6 - Added patch to build against Tcl/Tk 8.6 * Sat Jun 25 2011 Michael Shigorin <mike@altlinux.org> 1.5.21-alt4 - BR += libXext-devel * Sun Dec 19 2010 Michael Shigorin <mike@altlinux.org> 1.5.21-alt3 - BR += libGLU-devel * Sat Sep 04 2010 Michael Shigorin <mike@altlinux.org> 1.5.21-alt2 - fixed Requires: to use gifsicle instead of (obsolete) ungifsicle * Fri Sep 03 2010 Michael Shigorin <mike@altlinux.org> 1.5.21-alt1 - built for ALT Linux + based on openSUSE 1.5.21-27.9 package + heavy spec cleanup - added patch to avoid autodependency on gdb and valgrind - added examples subpackage * Thu Mar 4 2010 tob@net-b.de - Fix path globbing for bwidget * Fri Jan 15 2010 tob@net-b.de - Fix some patch to bwidget * Thu Dec 10 2009 burnus@net-b.de - Initial package version pre-1.6 (1.51.21) |