"Fossies" - the Fresh Open Source Software Archive

Member "genius-1.0.24/genius.spec" (15 May 2018, 2323 Bytes) of package /linux/misc/genius-1.0.24.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) RPM Spec source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "genius.spec": 1.0.23_vs_1.0.24.

    1 %define  ver     1.0.24
    2 %define  rel     1
    3 %define  prefix  /usr
    4 
    5 Summary: Genius advanced calculator
    6 Name: genius
    7 Version: %ver
    8 Release: %rel
    9 Copyright: GPL
   10 Group: X11/Applications
   11 Source: genius-%{ver}.tar.gz
   12 Url: http://www.gnome.org/
   13 BuildRoot: /var/tmp/genius-%{ver}-root
   14 Prefix: %prefix
   15 BuildRequires: vte-devel
   16 
   17 %description
   18 Genius is an advanced calculator and a mathematical programming language.
   19 It handles multiple precision floating point numbers, infinite precision
   20 integers, complex numbers and matrixes.
   21 
   22 %changelog
   23 * Wed May 10 2017 Jiri
   24 - Update though untested
   25 * Tue Aug 20 2004 Jiri
   26 - Update file list to include icons
   27 * Tue Aug 12 2004 Jiri
   28 - applied patch from Florin Andrei <florin@andrei.myip.org> to export custom
   29   compiler flags to the build and to require vte-devel for the build
   30 * Tue Aug 10 2004 Jiri
   31 - fixed up for the update-mime-database
   32 * Tue Apr 20 1999 Erik Walthinsen <omega@cse.ogi.edu>
   33 - added spec.in file, changes to makefiles as approrpiate
   34 
   35 %prep
   36 %setup
   37 
   38 %build
   39 export CFLAGS="$RPM_OPT_FLAGS"
   40 export CXXFLAGS="$RPM_OPT_FLAGS"
   41 ./configure --prefix=%prefix
   42 
   43 if [ "$SMP" != "" ]; then
   44   (make "MAKE=make -k -j $SMP"; exit 0)
   45   make
   46 else
   47   make
   48 fi
   49 
   50 %post
   51 UMD=`which update-mime-database 2>/dev/null`
   52 if [ "$UMD" != "" ]; then
   53   update-mime-database %{prefix}/share/mime
   54 fi
   55 #if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
   56 
   57 %postun
   58 #if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
   59 
   60 %install
   61 rm -rf $RPM_BUILD_ROOT
   62 
   63 make prefix=$RPM_BUILD_ROOT%{prefix} install
   64 rm -f $RPM_BUILD_ROOT%{prefix}/share/mime/XMLnamespaces
   65 rm -f $RPM_BUILD_ROOT%{prefix}/share/mime/globs
   66 rm -f $RPM_BUILD_ROOT%{prefix}/share/mime/magic
   67 #rm -rf $RPM_BUILD_ROOT%{prefix}/var/scrollkeeper
   68 
   69 %clean
   70 rm -rf $RPM_BUILD_ROOT
   71 
   72 %files
   73 %defattr(-, root, root)
   74 
   75 %doc README ABOUT-NLS AUTHORS COPYING NEWS TODO ChangeLog
   76 
   77 %{prefix}/bin/*
   78 %{prefix}/share/locale/*/*/*
   79 %{prefix}/share/genius
   80 %{prefix}/lib/genius
   81 %{prefix}/libexec/*
   82 %{prefix}/include/genius
   83 %{prefix}/share/applications/*
   84 %{prefix}/share/application-registry/*
   85 %{prefix}/share/mime-info/*
   86 %{prefix}/share/mime/*/*
   87 %{prefix}/share/icons/*/*/*/*
   88 #%{_datadir}/gnome/help/genius/*/*.xml
   89 #%{_datadir}/gnome/help/genius/*/*.xml
   90 #%{_datadir}/gnome/help/genius/*/figures/*.png
   91 #%{_datadir}/omf/genius/genius-*.omf