- cleaned .spec file
This commit is contained in:
parent
15b6087cc1
commit
8c478a2af0
71
gnuplot.spec
71
gnuplot.spec
@ -1,35 +1,35 @@
|
|||||||
%define major 4
|
%global major 4
|
||||||
%define minor 6
|
%global minor 6
|
||||||
%define patchlevel 1
|
%global patchlevel 1
|
||||||
|
|
||||||
%define x11_app_defaults_dir %{_datadir}/X11/app-defaults
|
%global x11_app_defaults_dir %{_datadir}/X11/app-defaults
|
||||||
|
|
||||||
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: 1%{?dist}
|
||||||
# Modifications are to be distributed as patches to the released version.
|
# MIT .. term/PostScript/aglfn.txt
|
||||||
# aglfn.txt has license: MIT
|
|
||||||
License: gnuplot and MIT
|
License: gnuplot and MIT
|
||||||
Group: Applications/Engineering
|
Group: Applications/Engineering
|
||||||
URL: http://www.gnuplot.info/
|
URL: http://www.gnuplot.info/
|
||||||
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||||
Source2: gnuplot-init.el
|
Source1: gnuplot-init.el
|
||||||
Patch1: gnuplot-4.2.0-refers_to.patch
|
|
||||||
Patch2: gnuplot-4.2.0-fonts.patch
|
Patch0: gnuplot-4.2.0-refers_to.patch
|
||||||
BuildRequires: libpng-devel, tex(latex), zlib-devel, libX11-devel, emacs
|
Patch1: gnuplot-4.2.0-fonts.patch
|
||||||
BuildRequires: texinfo, readline-devel, libXt-devel, gd-devel, latex2html
|
|
||||||
BuildRequires: librsvg2, giflib-devel, libotf, m17n-lib-flt, lua-devel
|
|
||||||
BuildRequires: pango-devel, cairo-devel, texlive-texmf-latex, tex4ht
|
|
||||||
BuildRequires: tex(subfigure.sty), tex(cm-super-t1.enc)
|
|
||||||
%if !0%{?rhel:1}
|
|
||||||
BuildRequires: wxGTK-devel
|
|
||||||
%endif
|
|
||||||
Requires: %{name}-common = %{version}-%{release}
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
Requires: dejavu-sans-fonts
|
Requires: dejavu-sans-fonts
|
||||||
Requires(post): %{_sbindir}/alternatives
|
Requires(post): %{_sbindir}/alternatives
|
||||||
Requires(preun): %{_sbindir}/alternatives
|
Requires(preun): %{_sbindir}/alternatives
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
BuildRequires: cairo-devel, emacs, gd-devel, giflib-devel, libotf, libpng-devel
|
||||||
|
BuildRequires: librsvg2, libX11-devel, libXt-devel, lua-devel, m17n-lib-flt
|
||||||
|
BuildRequires: pango-devel, readline-devel, tex(latex), tex(subfigure.sty)
|
||||||
|
BuildRequires: tex(cm-super-t1.enc), tex4ht, texinfo, zlib-devel
|
||||||
|
%if !0%{?rhel:1}
|
||||||
|
BuildRequires: wxGTK-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Gnuplot is a command-line driven, interactive function plotting
|
Gnuplot is a command-line driven, interactive function plotting
|
||||||
@ -74,8 +74,8 @@ for scientific data representation.
|
|||||||
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}
|
Requires: %{name} = %{version}-%{release}
|
||||||
BuildRequires: emacs emacs-el pkgconfig
|
|
||||||
Requires: emacs >= %{_emacs_version}
|
Requires: emacs >= %{_emacs_version}
|
||||||
|
BuildRequires: emacs-el pkgconfig
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Provides: gnuplot-emacs = %{version}-%{release}
|
Provides: gnuplot-emacs = %{version}-%{release}
|
||||||
Obsoletes: gnuplot-emacs < 4.2.2-3
|
Obsoletes: gnuplot-emacs < 4.2.2-3
|
||||||
@ -89,7 +89,6 @@ Group: Applications/Engineering
|
|||||||
Summary: Emacs bindings for the gnuplot main application
|
Summary: Emacs bindings for the gnuplot main application
|
||||||
Requires: emacs-%{name} = %{version}-%{release}
|
Requires: emacs-%{name} = %{version}-%{release}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Obsoletes: gnuplot-emacs < 4.2.2-3
|
|
||||||
|
|
||||||
%description -n emacs-%{name}-el
|
%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
|
||||||
@ -98,8 +97,8 @@ nicely interacts and integrates into emacs.
|
|||||||
%package doc
|
%package doc
|
||||||
Group: Applications/Engineering
|
Group: Applications/Engineering
|
||||||
Summary: Documentation fo bindings for the gnuplot main application
|
Summary: Documentation fo bindings for the gnuplot main application
|
||||||
Obsoletes: gnuplot-common < 4.2.4-5
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Obsoletes: gnuplot-common < 4.2.4-5
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
The gnuplot-doc package contains the documentation related to gnuplot
|
The gnuplot-doc package contains the documentation related to gnuplot
|
||||||
@ -108,8 +107,8 @@ plotting tool
|
|||||||
%package latex
|
%package latex
|
||||||
Group: Applications/Engineering
|
Group: Applications/Engineering
|
||||||
Summary: Configuration for LaTeX typesetting using gnuplot
|
Summary: Configuration for LaTeX typesetting using gnuplot
|
||||||
Requires: tex(latex), tex(xetex)
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: tex(latex), tex(xetex)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Obsoletes: gnuplot-common < 4.2.5-2
|
Obsoletes: gnuplot-common < 4.2.5-2
|
||||||
|
|
||||||
@ -117,11 +116,10 @@ Obsoletes: gnuplot-common < 4.2.5-2
|
|||||||
The gnuplot-latex package contains LaTeX configuration file related to gnuplot
|
The gnuplot-latex package contains LaTeX configuration file related to gnuplot
|
||||||
plotting tool.
|
plotting tool.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1 -b .refto
|
%patch0 -p1 -b .refto
|
||||||
%patch2 -p1 -b .font
|
%patch1 -p1 -b .font
|
||||||
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
|
iconv -f windows-1252 -t utf-8 ChangeLog > ChangeLog.aux
|
||||||
mv ChangeLog.aux ChangeLog
|
mv ChangeLog.aux ChangeLog
|
||||||
@ -133,8 +131,7 @@ chmod 644 demo/html/webify_canvas.pl
|
|||||||
%build
|
%build
|
||||||
# at first create minimal version of gnuplot for server SIG purposes
|
# at first create minimal version of gnuplot for server SIG purposes
|
||||||
%configure --with-readline=gnu --with-png --without-linux-vga \
|
%configure --with-readline=gnu --with-png --without-linux-vga \
|
||||||
--enable-history-file --disable-wxwidgets \
|
--enable-history-file --disable-wxwidgets --without-cairo
|
||||||
--without-cairo
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
mv src/gnuplot src/gnuplot-minimal
|
mv src/gnuplot src/gnuplot-minimal
|
||||||
|
|
||||||
@ -161,10 +158,9 @@ cd ../..
|
|||||||
rm -rf docs/htmldocs/images.idx
|
rm -rf docs/htmldocs/images.idx
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
|
||||||
install -d ${RPM_BUILD_ROOT}/%{_emacs_sitestartdir}/
|
install -d ${RPM_BUILD_ROOT}/%{_emacs_sitestartdir}/
|
||||||
install -p -m 644 %SOURCE2 ${RPM_BUILD_ROOT}/%{_emacs_sitestartdir}//gnuplot-init.el
|
install -p -m 644 %SOURCE1 ${RPM_BUILD_ROOT}/%{_emacs_sitestartdir}/gnuplot-init.el
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||||
rm -f $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/info-look*.el*
|
rm -f $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/info-look*.el*
|
||||||
install -d ${RPM_BUILD_ROOT}/%{_emacs_sitelispdir}/%{name}
|
install -d ${RPM_BUILD_ROOT}/%{_emacs_sitelispdir}/%{name}
|
||||||
@ -208,24 +204,18 @@ if [ $1 = 0 ]; then
|
|||||||
%{_sbindir}/alternatives --remove gnuplot %{_bindir}/gnuplot-minimal || :
|
%{_sbindir}/alternatives --remove gnuplot %{_bindir}/gnuplot-minimal || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post latex -p /usr/bin/texhash
|
%post latex -p %{_bindir}/texhash
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc ChangeLog Copyright
|
%doc ChangeLog Copyright
|
||||||
%{_bindir}/gnuplot-wx
|
%{_bindir}/gnuplot-wx
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc ChangeLog Copyright
|
%doc ChangeLog Copyright
|
||||||
%doc docs/psdoc/ps_guide.ps docs/psdoc/ps_symbols.ps tutorial/tutorial.dvi demo docs/psdoc/ps_file.doc
|
%doc docs/psdoc/ps_guide.ps docs/psdoc/ps_symbols.ps tutorial/tutorial.dvi demo docs/psdoc/ps_file.doc
|
||||||
%doc docs/psdoc/ps_fontfile_doc.pdf docs/htmldocs tutorial/eg7.eps
|
%doc docs/psdoc/ps_fontfile_doc.pdf docs/htmldocs tutorial/eg7.eps
|
||||||
|
|
||||||
%files common
|
%files common
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc BUGS ChangeLog Copyright NEWS README
|
%doc BUGS ChangeLog Copyright NEWS README
|
||||||
%{_mandir}/man1/gnuplot.1.gz
|
%{_mandir}/man1/gnuplot.1.gz
|
||||||
%dir %{_datadir}/gnuplot
|
%dir %{_datadir}/gnuplot
|
||||||
@ -247,12 +237,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_infodir}/gnuplot.info.gz
|
%{_infodir}/gnuplot.info.gz
|
||||||
|
|
||||||
%files minimal
|
%files minimal
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc ChangeLog Copyright
|
%doc ChangeLog Copyright
|
||||||
%{_bindir}/gnuplot-minimal
|
%{_bindir}/gnuplot-minimal
|
||||||
|
|
||||||
%files -n emacs-%{name}
|
%files -n emacs-%{name}
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc ChangeLog Copyright
|
%doc ChangeLog Copyright
|
||||||
%dir %{_emacs_sitelispdir}/%{name}
|
%dir %{_emacs_sitelispdir}/%{name}
|
||||||
%{_emacs_sitelispdir}/*.elc
|
%{_emacs_sitelispdir}/*.elc
|
||||||
@ -260,21 +248,20 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_emacs_sitestartdir}/*.el
|
%{_emacs_sitestartdir}/*.el
|
||||||
|
|
||||||
%files -n emacs-%{name}-el
|
%files -n emacs-%{name}-el
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc ChangeLog Copyright
|
%doc ChangeLog Copyright
|
||||||
%{_emacs_sitelispdir}/%{name}/*.el
|
%{_emacs_sitelispdir}/%{name}/*.el
|
||||||
%{_emacs_sitelispdir}/*.el
|
%{_emacs_sitelispdir}/*.el
|
||||||
|
|
||||||
%files latex
|
%files latex
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc ChangeLog Copyright
|
%doc ChangeLog Copyright
|
||||||
%dir %{_datadir}/texmf/tex/latex/gnuplot
|
%dir %{_datadir}/texmf/tex/latex/gnuplot
|
||||||
%{_datadir}/texmf/tex/latex/gnuplot/*
|
%{_datadir}/texmf/tex/latex/gnuplot/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Oct 9 2012 Peter Schiffer <pschiffe@redhat.com> 4.6.1-1
|
* Wed Oct 10 2012 Peter Schiffer <pschiffe@redhat.com> 4.6.1-1
|
||||||
- resolves: #861849
|
- resolves: #861849
|
||||||
update to 4.6.1
|
updated to 4.6.1
|
||||||
|
- cleaned .spec file
|
||||||
|
|
||||||
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.6.0-2
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.6.0-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user