ALT Linux repositórios
S: | 4.2.5-alt3 |
5.0: | 4.1.2-alt2.beta.1 |
4.1: | 4.1.2-alt0.M41.1.beta |
4.0: | 4.1.2-alt0.M40.1.beta |
3.0: | 4.0.8-alt0.1 |
+backports: | 4.0.12-alt0.M30.1 |
Outros repositórios
Upstream: | 3.1.0 |
Group :: Gráficos
RPM: gle
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%def_with qt
%define truename gle-graphics
Name: gle
Version: 4.2.5
%define trueversion %{version}
Release: alt3
Summary: GLE - Graphics language that produces ps/eps/pdf/png/jpg ouput
Summary(ru_RU.UTF-8): GLE - язык создания изображений. Вывод в ps/eps/pdf/png/jpg
License: GPLv2+
Group: Graphics
Packager: Igor Vlasenko <viy at altlinux.org>
URL: http://glx.sourceforge.net/
Source: http://dl.sourceforge.net/glx/%{truename}-%{trueversion}-src.tar.gz
Source2:gle.el
Source3:http://dl.sourceforge.net/glx/gle-graphics-extrafonts-1.0.tar.gz
Source7:http://glx.sourceforge.net/download/bbox_gle.sh
Source8:http://glx.sourceforge.net/download/makeani.pl
# moved to gle-doc
#Source4:http://dl.sourceforge.net/glx/gle-manual-%version.pdf
#Source5:http://dl.sourceforge.net/glx/GLEusersguide.pdf
Patch: gle-graphics-4.2.4c-alt-autoconf.patch
Patch2: gle-graphics-4.2.5-alt-glibc-compat.patch
Patch3: gle-graphics-4.2.5-alt-use-system-cxxflags.patch
# Automatically added by buildreq on Thu Sep 21 2006
BuildRequires: gcc-c++ libjpeg-devel libncurses-devel libtiff-devel libpng-devel libcairo-devel
#BuildRequires: xorg-x11-devel xorg-x11-libs gcc-c++ libstdc++-devel libtiff-devel unzip zlib-devel libjpeg-devel libncurses-devel
BuildRequires: /proc
# tmp hack
BuildRequires: dos2unix
#BuildNotRequires: fontconfig qt4-settings
BuildRequires: imake libXt-devel xorg-cf-files
%if_with qt
BuildRequires: libqt4-devel
%endif
# wait for https://bugzilla.altlinux.org/show_bug.cgi?id=41035
ExcludeArch: armh
%description
GLE is a graphics language that produces postscript, EPS, PDF, PNG, or JPG ouput from a simple script file. The GLE scripting language is full featured with variables, subroutines, logic control, looping, and graphing tools. It is great for plotting and charting data.
GLE can create very complex output with text and graphics (including graphs and charts) from a simple plain text file.
GLE is a full featured programing language that includes variables, subroutines, logic control, looping, a graphing tool, and more to produce high quality postscript output. It has a full range of facilities for producing publication-quality graphs, diagrams, posters and slides. GLE provides LaTeX quality fonts together with a flexible graphics module which allows the user to specify any feature of a graph (down to the line width of the subticks, for example). Complex pictures can be drawn with user-defined subroutines and simple looping structures. Essentially, GLE is a programming language and if you are used to writing software, using LaTeX, or any other non-WYSIWYG tools, then you will enjoy using GLE.
%if_with qt
%package qt
Summary: QT GUI tool for GLE Graphics language
Requires: %name = %version-%release
Requires: ghostscript-lib
Group: Graphics
%description qt
GLE is a graphics language that produces postscript, EPS, PDF, PNG, or JPG ouput from a simple script file. The GLE scripting language is full featured with variables, subroutines, logic control, looping, and graphing tools. It is great for plotting and charting data.
GLE can create very complex output with text and graphics (including graphs and charts) from a simple plain text file.
This package contains QGLE - A Graphical Interface to GLE.
%endif
%prep
%setup -q -n %{truename}-%{trueversion} -a3
%patch
%patch2 -p2
%patch3 -p1
%build
%add_optflags -std=c++14
%autoreconf -fisv
%configure \
--with-manip \
--with-x \
--with-qt=%{_libdir}/qt4 \
--with-rpath=no \
--with-jpeg=yes --with-png=yes --with-tiff=yes --with-z=yes \
--with-extrafonts
# --with-scripts install scripts instead of executables (yes/no)
# --with-libgle build libgle (yes/no/static/both)
# --with-extrafonts include additional fonts (or yes/no)
#%make_build # parallel build fails
make
%install
#make -f Makefile.gcc GLE_RPM_ROOT=$RPM_BUILD_ROOT install
%make_install install DESTDIR=%buildroot
install -m 755 %{SOURCE7} $RPM_BUILD_ROOT/%_bindir/bbox_gle
# hack: to report upstream
dos2unix $RPM_BUILD_ROOT/%_bindir/bbox_gle
cp %{SOURCE8} .
mkdir -p $RPM_BUILD_ROOT/%_emacslispdir
mkdir -p $RPM_BUILD_ROOT/etc/emacs/site-start.d
cp contrib/editors/highlighting/gle-emacs.el $RPM_BUILD_ROOT/%_emacslispdir/
cp %{SOURCE2} $RPM_BUILD_ROOT/etc/emacs/site-start.d/
%if_with qt
mkdir -p $RPM_BUILD_ROOT/%_desktopdir
install -m644 platform/autopackage/gle.desktop $RPM_BUILD_ROOT/%_desktopdir/
mkdir -p $RPM_BUILD_ROOT/%_liconsdir
install -m644 platform/autopackage/gle.png $RPM_BUILD_ROOT/%_liconsdir/
%endif
%files
%doc README.txt contrib/editors/highlighting/gle.nedit
%doc makeani.pl
%_bindir/gle
%_bindir/manip
%_bindir/bbox_gle
%_bindir/glebtool
%dir %_datadir/gle-graphics/%{trueversion}
%_datadir/gle-graphics/%{trueversion}/*
%_emacslispdir/*
/etc/emacs/site-start.d/*
%_libdir/libgle-graphics*.so
# devel subpackage? who requires?
%exclude %_pkgconfigdir/gle-graphics.pc
%_man1dir/gle.1*
%if_with qt
%files qt
%_bindir/qgle
%_liconsdir/gle.png
%_desktopdir/gle.desktop
%endif
%changelog
…
Todas as alterações você pod ver aqui
%def_with qt
%define truename gle-graphics
Name: gle
Version: 4.2.5
%define trueversion %{version}
Release: alt3
Summary: GLE - Graphics language that produces ps/eps/pdf/png/jpg ouput
Summary(ru_RU.UTF-8): GLE - язык создания изображений. Вывод в ps/eps/pdf/png/jpg
License: GPLv2+
Group: Graphics
Packager: Igor Vlasenko <viy at altlinux.org>
URL: http://glx.sourceforge.net/
Source: http://dl.sourceforge.net/glx/%{truename}-%{trueversion}-src.tar.gz
Source2:gle.el
Source3:http://dl.sourceforge.net/glx/gle-graphics-extrafonts-1.0.tar.gz
Source7:http://glx.sourceforge.net/download/bbox_gle.sh
Source8:http://glx.sourceforge.net/download/makeani.pl
# moved to gle-doc
#Source4:http://dl.sourceforge.net/glx/gle-manual-%version.pdf
#Source5:http://dl.sourceforge.net/glx/GLEusersguide.pdf
Patch: gle-graphics-4.2.4c-alt-autoconf.patch
Patch2: gle-graphics-4.2.5-alt-glibc-compat.patch
Patch3: gle-graphics-4.2.5-alt-use-system-cxxflags.patch
# Automatically added by buildreq on Thu Sep 21 2006
BuildRequires: gcc-c++ libjpeg-devel libncurses-devel libtiff-devel libpng-devel libcairo-devel
#BuildRequires: xorg-x11-devel xorg-x11-libs gcc-c++ libstdc++-devel libtiff-devel unzip zlib-devel libjpeg-devel libncurses-devel
BuildRequires: /proc
# tmp hack
BuildRequires: dos2unix
#BuildNotRequires: fontconfig qt4-settings
BuildRequires: imake libXt-devel xorg-cf-files
%if_with qt
BuildRequires: libqt4-devel
%endif
# wait for https://bugzilla.altlinux.org/show_bug.cgi?id=41035
ExcludeArch: armh
%description
GLE is a graphics language that produces postscript, EPS, PDF, PNG, or JPG ouput from a simple script file. The GLE scripting language is full featured with variables, subroutines, logic control, looping, and graphing tools. It is great for plotting and charting data.
GLE can create very complex output with text and graphics (including graphs and charts) from a simple plain text file.
GLE is a full featured programing language that includes variables, subroutines, logic control, looping, a graphing tool, and more to produce high quality postscript output. It has a full range of facilities for producing publication-quality graphs, diagrams, posters and slides. GLE provides LaTeX quality fonts together with a flexible graphics module which allows the user to specify any feature of a graph (down to the line width of the subticks, for example). Complex pictures can be drawn with user-defined subroutines and simple looping structures. Essentially, GLE is a programming language and if you are used to writing software, using LaTeX, or any other non-WYSIWYG tools, then you will enjoy using GLE.
%if_with qt
%package qt
Summary: QT GUI tool for GLE Graphics language
Requires: %name = %version-%release
Requires: ghostscript-lib
Group: Graphics
%description qt
GLE is a graphics language that produces postscript, EPS, PDF, PNG, or JPG ouput from a simple script file. The GLE scripting language is full featured with variables, subroutines, logic control, looping, and graphing tools. It is great for plotting and charting data.
GLE can create very complex output with text and graphics (including graphs and charts) from a simple plain text file.
This package contains QGLE - A Graphical Interface to GLE.
%endif
%prep
%setup -q -n %{truename}-%{trueversion} -a3
%patch
%patch2 -p2
%patch3 -p1
%build
%add_optflags -std=c++14
%autoreconf -fisv
%configure \
--with-manip \
--with-x \
--with-qt=%{_libdir}/qt4 \
--with-rpath=no \
--with-jpeg=yes --with-png=yes --with-tiff=yes --with-z=yes \
--with-extrafonts
# --with-scripts install scripts instead of executables (yes/no)
# --with-libgle build libgle (yes/no/static/both)
# --with-extrafonts include additional fonts (or yes/no)
#%make_build # parallel build fails
make
%install
#make -f Makefile.gcc GLE_RPM_ROOT=$RPM_BUILD_ROOT install
%make_install install DESTDIR=%buildroot
install -m 755 %{SOURCE7} $RPM_BUILD_ROOT/%_bindir/bbox_gle
# hack: to report upstream
dos2unix $RPM_BUILD_ROOT/%_bindir/bbox_gle
cp %{SOURCE8} .
mkdir -p $RPM_BUILD_ROOT/%_emacslispdir
mkdir -p $RPM_BUILD_ROOT/etc/emacs/site-start.d
cp contrib/editors/highlighting/gle-emacs.el $RPM_BUILD_ROOT/%_emacslispdir/
cp %{SOURCE2} $RPM_BUILD_ROOT/etc/emacs/site-start.d/
%if_with qt
mkdir -p $RPM_BUILD_ROOT/%_desktopdir
install -m644 platform/autopackage/gle.desktop $RPM_BUILD_ROOT/%_desktopdir/
mkdir -p $RPM_BUILD_ROOT/%_liconsdir
install -m644 platform/autopackage/gle.png $RPM_BUILD_ROOT/%_liconsdir/
%endif
%files
%doc README.txt contrib/editors/highlighting/gle.nedit
%doc makeani.pl
%_bindir/gle
%_bindir/manip
%_bindir/bbox_gle
%_bindir/glebtool
%dir %_datadir/gle-graphics/%{trueversion}
%_datadir/gle-graphics/%{trueversion}/*
%_emacslispdir/*
/etc/emacs/site-start.d/*
%_libdir/libgle-graphics*.so
# devel subpackage? who requires?
%exclude %_pkgconfigdir/gle-graphics.pc
%_man1dir/gle.1*
%if_with qt
%files qt
%_bindir/qgle
%_liconsdir/gle.png
%_desktopdir/gle.desktop
%endif
%changelog
…
Todas as alterações você pod ver aqui