- rename emacs subpackage, split intwo two parts
- add font directories - clean spec file
This commit is contained in:
parent
eff0cc40bc
commit
9850fcdabf
@ -1,6 +1,7 @@
|
|||||||
--- gnuplot-4.2.0/src/variable.c.refto 2006-06-27 04:36:30.000000000 +0200
|
diff -up gnuplot-4.2.2/src/variable.c.refto gnuplot-4.2.2/src/variable.c
|
||||||
+++ gnuplot-4.2.0/src/variable.c 2007-09-06 10:02:54.000000000 +0200
|
--- gnuplot-4.2.2/src/variable.c.refto 2006-06-27 04:36:30.000000000 +0200
|
||||||
@@ -263,8 +263,9 @@ static const struct path_table fontpath_
|
+++ gnuplot-4.2.2/src/variable.c 2007-10-25 14:04:20.000000000 +0200
|
||||||
|
@@ -263,8 +263,11 @@ static const struct path_table fontpath_
|
||||||
{ "$`kpsexpand '$TEXMFDIST'`/fonts/type1!" },
|
{ "$`kpsexpand '$TEXMFDIST'`/fonts/type1!" },
|
||||||
#endif
|
#endif
|
||||||
/* Linux paths */
|
/* Linux paths */
|
||||||
@ -9,6 +10,8 @@
|
|||||||
+ { "/usr/share/fonts/default/ghostscript/" },
|
+ { "/usr/share/fonts/default/ghostscript/" },
|
||||||
+ { "/usr/share/fonts/default/Type1/" },
|
+ { "/usr/share/fonts/default/Type1/" },
|
||||||
+ { "/usr/share/fonts/bitstream-vera/" },
|
+ { "/usr/share/fonts/bitstream-vera/" },
|
||||||
|
+ { "/usr/share/fonts/dejavu-lgc" },
|
||||||
|
+ { "/usr/share/fonts/liberation" },
|
||||||
/* HP-UX */
|
/* HP-UX */
|
||||||
{ "/usr/lib/X11/fonts!"},
|
{ "/usr/lib/X11/fonts!"},
|
||||||
/* Ghostscript */
|
/* Ghostscript */
|
||||||
|
51
gnuplot.spec
51
gnuplot.spec
@ -7,7 +7,7 @@
|
|||||||
Summary: A program for plotting mathematical expressions and data
|
Summary: A program for plotting mathematical expressions and data
|
||||||
Name: gnuplot
|
Name: gnuplot
|
||||||
Version: %{major}.%{minor}.%{patchlevel}
|
Version: %{major}.%{minor}.%{patchlevel}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
# Modifications are to be distributed as patches to the released version.
|
# Modifications are to be distributed as patches to the released version.
|
||||||
License: gnuplot and GPLv2
|
License: gnuplot and GPLv2
|
||||||
Group: Applications/Engineering
|
Group: Applications/Engineering
|
||||||
@ -18,7 +18,6 @@ Patch1: gnuplot-4.2.0-refers_to.patch
|
|||||||
BuildRequires: libpng-devel, tetex-latex, zlib-devel, libX11-devel, emacs
|
BuildRequires: libpng-devel, tetex-latex, zlib-devel, libX11-devel, emacs
|
||||||
BuildRequires: texinfo, readline-devel, libXt-devel, gd-devel
|
BuildRequires: texinfo, readline-devel, libXt-devel, gd-devel
|
||||||
BuildRequires: latex2html
|
BuildRequires: latex2html
|
||||||
Requires: libpng
|
|
||||||
Requires(post): /sbin/install-info
|
Requires(post): /sbin/install-info
|
||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@ -32,12 +31,22 @@ dimensions and in many different formats.
|
|||||||
Install gnuplot if you need a graphics package for scientific data
|
Install gnuplot if you need a graphics package for scientific data
|
||||||
representation.
|
representation.
|
||||||
|
|
||||||
%package emacs
|
%package -n emacs-%{name}
|
||||||
Group: Applications/Engineering
|
Group: Applications/Engineering
|
||||||
Summary: Emacs bindings for the gnuplot main application
|
Summary: Emacs bindings for the gnuplot main application
|
||||||
Requires: %{name} = %{version}-%{release}, emacs
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: emacs
|
||||||
|
|
||||||
%description emacs
|
%description -n emacs-%{name}
|
||||||
|
The gnuplot-emacs package contains the emacs related .elc files so that gnuplot
|
||||||
|
nicely interacts and integrates into emacs.
|
||||||
|
|
||||||
|
%package -n emacs-%{name}-el
|
||||||
|
Group: Applications/Engineering
|
||||||
|
Summary: Emacs bindings for the gnuplot main application
|
||||||
|
Requires: emacs-%{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n emacs-%{name}-el
|
||||||
The gnuplot-emacs package contains the emacs related .el files so that gnuplot
|
The gnuplot-emacs package contains the emacs related .el files so that gnuplot
|
||||||
nicely interacts and integrates into emacs.
|
nicely interacts and integrates into emacs.
|
||||||
|
|
||||||
@ -45,18 +54,31 @@ nicely interacts and integrates into emacs.
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1 -b .refto
|
%patch1 -p1 -b .refto
|
||||||
sed -i -e 's:"/usr/lib/X11/app-defaults":"%{x11_app_defaults_dir}":' src/gplt_x11.c
|
sed -i -e 's:"/usr/lib/X11/app-defaults":"%{x11_app_defaults_dir}":' src/gplt_x11.c
|
||||||
|
iconv -f windows-1252 -t utf-8 ChangeLog > ChangeLog.aux
|
||||||
|
mv ChangeLog.aux ChangeLog
|
||||||
|
iconv -f windows-1252 -t utf-8 demo/fontfile_latex.dem >demo/fontfile_latex.dem.aux
|
||||||
|
mv demo/fontfile_latex.dem.aux demo/fontfile_latex.dem
|
||||||
|
iconv -f iso-8859-1 -t utf-8 demo/demo.edf >demo/demo.edf.aux
|
||||||
|
mv demo/demo.edf.aux demo/demo.edf
|
||||||
|
iconv -f windows-1252 -t utf-8 demo/epslatex.dem >demo/epslatex.dem.aux
|
||||||
|
mv demo/epslatex.dem.aux demo/epslatex.dem
|
||||||
|
iconv -f windows-1252 -t utf-8 demo/fontfile.dem >demo/fontfile.dem.aux
|
||||||
|
mv demo/fontfile.dem.aux demo/fontfile.dem
|
||||||
|
chmod 644 src/getcolor.h
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --with-readline=gnu --with-png --without-linux-vga \
|
%configure --with-readline=gnu --with-png --without-linux-vga \
|
||||||
--enable-history-file
|
--enable-history-file
|
||||||
|
|
||||||
make %{?_smp_mflags} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
cd docs
|
cd docs
|
||||||
make html
|
make html
|
||||||
cd psdoc
|
cd psdoc
|
||||||
export GNUPLOT_PS_DIR=../../term/PostScript
|
export GNUPLOT_PS_DIR=../../term/PostScript
|
||||||
make ps_symbols.ps ps_fontfile_doc.pdf
|
make ps_symbols.ps ps_fontfile_doc.pdf
|
||||||
|
cd ../..
|
||||||
|
rm -rf docs/htmldocs/images.idx
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@ -107,15 +129,26 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{x11_app_defaults_dir}/Gnuplot
|
%{x11_app_defaults_dir}/Gnuplot
|
||||||
%{_infodir}/gnuplot.info.gz
|
%{_infodir}/gnuplot.info.gz
|
||||||
|
|
||||||
%files emacs
|
%files -n emacs-%{name}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_datadir}/emacs/site-lisp/gnuplot/gnuplot-gui.el
|
%doc ChangeLog Copyright
|
||||||
|
%dir %{_datadir}/emacs/site-lisp/gnuplot/
|
||||||
%{_datadir}/emacs/site-lisp/gnuplot/gnuplot-gui.elc
|
%{_datadir}/emacs/site-lisp/gnuplot/gnuplot-gui.elc
|
||||||
%{_datadir}/emacs/site-lisp/gnuplot/gnuplot.el
|
|
||||||
%{_datadir}/emacs/site-lisp/gnuplot/gnuplot.elc
|
%{_datadir}/emacs/site-lisp/gnuplot/gnuplot.elc
|
||||||
%{_datadir}/emacs/site-lisp/site-start.d/gnuplot-init.el
|
%{_datadir}/emacs/site-lisp/site-start.d/gnuplot-init.el
|
||||||
|
|
||||||
|
%files -n emacs-%{name}-el
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc ChangeLog Copyright
|
||||||
|
%{_datadir}/emacs/site-lisp/gnuplot/gnuplot-gui.el
|
||||||
|
%{_datadir}/emacs/site-lisp/gnuplot/gnuplot.el
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 25 2007 Ivana Varekova <varekova@redhat.com> - 4.2.2-2
|
||||||
|
- rename emacs subpackage, split intwo two parts
|
||||||
|
- add font directories
|
||||||
|
- clean spec file
|
||||||
|
|
||||||
* Thu Oct 25 2007 Ivana Varekova <varekova@redhat.com> - 4.2.2-1
|
* Thu Oct 25 2007 Ivana Varekova <varekova@redhat.com> - 4.2.2-1
|
||||||
- update to 4.2.2
|
- update to 4.2.2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user