| 1 | %global major 5 |
|---|
| 2 | %global minor 0 |
|---|
| 3 | %global patchlevel 1 |
|---|
| 4 | |
|---|
| 5 | %global x11_app_defaults_dir %{_datadir}/X11/app-defaults |
|---|
| 6 | |
|---|
| 7 | Summary: A program for plotting mathematical expressions and data. |
|---|
| 8 | Summary(ja): 数学系の関数やデータのプロット・プログラム |
|---|
| 9 | Name: gnuplot |
|---|
| 10 | Version: %{major}.%{minor}.%{patchlevel} |
|---|
| 11 | Release: 1%{?_dist_release} |
|---|
| 12 | |
|---|
| 13 | # MIT .. term/PostScript/aglfn.txt |
|---|
| 14 | License: gnuplot and MIT |
|---|
| 15 | Group: Applications/Engineering |
|---|
| 16 | URL: http://www.gnuplot.info/ |
|---|
| 17 | |
|---|
| 18 | Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz |
|---|
| 19 | |
|---|
| 20 | Patch0: gnuplot-4.2.0-refers_to.patch |
|---|
| 21 | #Patch1: gnuplot-4.2.0-fonts.patch |
|---|
| 22 | # resolves: #812225 |
|---|
| 23 | # submitted upstream: http://sourceforge.net/tracker/?func=detail&aid=3558973&group_id=2055&atid=302055 |
|---|
| 24 | Patch3: gnuplot-4.6.1-plot-sigsegv.patch |
|---|
| 25 | Patch4: gnuplot-4.6.4-singlethread.patch |
|---|
| 26 | Patch5: gnuplot-5.0.0-lua_checkint.patch |
|---|
| 27 | |
|---|
| 28 | # Vine Patches (replaces Patch1) |
|---|
| 29 | Patch70: gnuplot-5.0.0-fonts.patch |
|---|
| 30 | |
|---|
| 31 | BuildRoot: %{_tmppath}/%{name}-root |
|---|
| 32 | #libedit-devel can not handle utf8, readline-devel is not legal with gnuplot, stick to builtin |
|---|
| 33 | BuildRequires: cairo-devel |
|---|
| 34 | BuildRequires: gd-devel >= 2.0.27 |
|---|
| 35 | BuildRequires: giflib-devel |
|---|
| 36 | BuildRequires: libX11-devel |
|---|
| 37 | BuildRequires: libXt-devel |
|---|
| 38 | BuildRequires: libXpm-devel |
|---|
| 39 | BuildRequires: libjpeg-turbo-devel |
|---|
| 40 | BuildRequires: libpng-devel |
|---|
| 41 | BuildRequires: lua-devel |
|---|
| 42 | BuildRequires: m17n-lib |
|---|
| 43 | BuildRequires: pango-devel |
|---|
| 44 | BuildRequires: wxGTK-devel |
|---|
| 45 | BuildRequires: zlib-devel |
|---|
| 46 | |
|---|
| 47 | BuildRequires: texlive |
|---|
| 48 | BuildRequires: texlive-common |
|---|
| 49 | BuildRequires: texlive-collection-latexextra |
|---|
| 50 | BuildRequires: texlive-collection-htmlxml |
|---|
| 51 | BuildRequires: texinfo |
|---|
| 52 | BuildRequires: latex2html |
|---|
| 53 | BuildRequires: emacs |
|---|
| 54 | |
|---|
| 55 | Requires: TrueType-dejavu |
|---|
| 56 | Requires(post): install-info |
|---|
| 57 | Requires(preun): install-info |
|---|
| 58 | |
|---|
| 59 | Vendor: Project Vine |
|---|
| 60 | Distribution: Vine Linux |
|---|
| 61 | Packager: daisuke, inagaki, shaolin |
|---|
| 62 | |
|---|
| 63 | %description |
|---|
| 64 | Gnuplot is a command-line driven, interactive function plotting |
|---|
| 65 | program especially suited for scientific data representation. Gnuplot |
|---|
| 66 | can be used to plot functions and data points in both two and three |
|---|
| 67 | dimensions and in many different formats. |
|---|
| 68 | |
|---|
| 69 | Install gnuplot if you need a graphics package for scientific data |
|---|
| 70 | representation. |
|---|
| 71 | |
|---|
| 72 | %description -l ja |
|---|
| 73 | Gnuplotはとりわけ科学データ・プレゼンテーションに適した、コマンド |
|---|
| 74 | 操作によるインタラクティブな関数プロット・プログラムです。 |
|---|
| 75 | Gnuplotは関数や座標データを同時にプロットしたり、3次元化やさまざ |
|---|
| 76 | まな形式で表現するのに利用することができます。 |
|---|
| 77 | |
|---|
| 78 | 科学データプレゼンテーション用のグラフィック・パッケージが必要な |
|---|
| 79 | 場合、gnuplotをインストールしてください。 |
|---|
| 80 | |
|---|
| 81 | %package doc |
|---|
| 82 | Summary: Documentation for the gnuplot main application |
|---|
| 83 | Group: Applications/Documentation |
|---|
| 84 | BuildArch: noarch |
|---|
| 85 | Requires: %{name} = %{version}-%{release} |
|---|
| 86 | |
|---|
| 87 | %description doc |
|---|
| 88 | The gnuplot-doc package contains the documentation related to gnuplot |
|---|
| 89 | plotting tool |
|---|
| 90 | |
|---|
| 91 | %package latex |
|---|
| 92 | Summary: Configuration for LaTeX typesetting using gnuplot |
|---|
| 93 | Group: Applications/Engineering |
|---|
| 94 | BuildArch: noarch |
|---|
| 95 | Requires: %{name} = %{version}-%{release} |
|---|
| 96 | Requires: texlive-collection-latexextra |
|---|
| 97 | Requires: texlive-collection-fontsrecommended |
|---|
| 98 | |
|---|
| 99 | %description latex |
|---|
| 100 | The gnuplot-latex package contains LaTeX configuration file related to gnuplot |
|---|
| 101 | plotting tool. |
|---|
| 102 | |
|---|
| 103 | |
|---|
| 104 | %prep |
|---|
| 105 | %setup -q |
|---|
| 106 | %patch0 -p1 -b .refto |
|---|
| 107 | #patch1 -p1 -b .font |
|---|
| 108 | %patch3 -p1 -b .plot-sigsegv |
|---|
| 109 | %patch4 -p1 -b .isinglethread |
|---|
| 110 | %patch5 -p1 -b .checkint |
|---|
| 111 | sed -i -e 's:"/usr/lib/X11/app-defaults":"%{x11_app_defaults_dir}":' src/gplt_x11.c |
|---|
| 112 | iconv -f windows-1252 -t utf-8 ChangeLog > ChangeLog.aux |
|---|
| 113 | mv ChangeLog.aux ChangeLog |
|---|
| 114 | chmod 644 src/getcolor.h |
|---|
| 115 | chmod 644 demo/html/webify.pl |
|---|
| 116 | chmod 644 demo/html/webify_svg.pl |
|---|
| 117 | chmod 644 demo/html/webify_canvas.pl |
|---|
| 118 | |
|---|
| 119 | %patch70 -p1 -b .font |
|---|
| 120 | |
|---|
| 121 | %build |
|---|
| 122 | #remove binaries from source tarball |
|---|
| 123 | rm -rf demo/plugin/*.so demo/plugin/*.o |
|---|
| 124 | rm -rf docs_to_include |
|---|
| 125 | mkdir -p docs_to_include |
|---|
| 126 | cp -pr demo docs_to_include |
|---|
| 127 | |
|---|
| 128 | %configure --with-readline=builtin --without-linux-vga --enable-history-file --with-tutorial --without-qt |
|---|
| 129 | |
|---|
| 130 | make %{?_smp_mflags} |
|---|
| 131 | |
|---|
| 132 | make -C docs html info |
|---|
| 133 | export GNUPLOT_PS_DIR=../../term/PostScript |
|---|
| 134 | make -C docs/psdoc ps_symbols.ps ps_fontfile_doc.pdf |
|---|
| 135 | rm -rf docs/htmldocs/images.idx |
|---|
| 136 | make -C tutorial |
|---|
| 137 | |
|---|
| 138 | %install |
|---|
| 139 | rm -rf %{buildroot} |
|---|
| 140 | make install DESTDIR=%{buildroot} |
|---|
| 141 | make -C docs install-info DESTDIR=%{buildroot} INSTALL='install -p' |
|---|
| 142 | |
|---|
| 143 | #rm -f demo/Makefile* tutorial/Makefile* |
|---|
| 144 | #packaged by info package, updated by post-installation script, do not package here |
|---|
| 145 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
|---|
| 146 | |
|---|
| 147 | mkdir -p $RPM_BUILD_ROOT%{x11_app_defaults_dir} |
|---|
| 148 | mv $RPM_BUILD_ROOT%{_datadir}/gnuplot/%{major}.%{minor}/app-defaults/Gnuplot $RPM_BUILD_ROOT%{x11_app_defaults_dir}/Gnuplot |
|---|
| 149 | rm -rf $RPM_BUILD_ROOT%{_libdir}/ |
|---|
| 150 | |
|---|
| 151 | mkdir -p $RPM_BUILD_ROOT/%{_mandir}/ja/man1 |
|---|
| 152 | mv $RPM_BUILD_ROOT%{_mandir}/man1/gnuplot-ja.1 $RPM_BUILD_ROOT/%{_mandir}/ja/man1/gnuplot.1 |
|---|
| 153 | |
|---|
| 154 | %clean |
|---|
| 155 | rm -rf %{buildroot} |
|---|
| 156 | |
|---|
| 157 | |
|---|
| 158 | %post |
|---|
| 159 | if [ -f %{_infodir}/gnuplot.info* ]; then |
|---|
| 160 | /sbin/install-info %{_infodir}/gnuplot.info %{_infodir}/dir || : |
|---|
| 161 | fi |
|---|
| 162 | |
|---|
| 163 | %preun |
|---|
| 164 | if [ $1 = 0 ] ; then |
|---|
| 165 | if [ -f %{_infodir}/gnuplot.info* ]; then |
|---|
| 166 | /sbin/install-info --delete %{_infodir}/gnuplot.info %{_infodir}/dir || : |
|---|
| 167 | fi |
|---|
| 168 | fi |
|---|
| 169 | |
|---|
| 170 | |
|---|
| 171 | %files |
|---|
| 172 | %defattr(-,root,root) |
|---|
| 173 | %doc BUGS ChangeLog Copyright NEWS README |
|---|
| 174 | %{_bindir}/gnuplot |
|---|
| 175 | %dir %{_libexecdir}/gnuplot/%{major}.%{minor} |
|---|
| 176 | %{_libexecdir}/gnuplot/%{major}.%{minor}/gnuplot_x11 |
|---|
| 177 | %dir %{_datadir}/gnuplot/%{major}.%{minor} |
|---|
| 178 | %dir %{_datadir}/gnuplot/%{major}.%{minor}/PostScript |
|---|
| 179 | %dir %{_datadir}/gnuplot/%{major}.%{minor}/js |
|---|
| 180 | %dir %{_datadir}/gnuplot/%{major}.%{minor}/lua |
|---|
| 181 | %{_datadir}/gnuplot/%{major}.%{minor}/PostScript/*.ps |
|---|
| 182 | %{_datadir}/gnuplot/%{major}.%{minor}/PostScript/aglfn.txt |
|---|
| 183 | %{_datadir}/gnuplot/%{major}.%{minor}/js/* |
|---|
| 184 | %{_datadir}/gnuplot/%{major}.%{minor}/lua/gnuplot-tikz.lua |
|---|
| 185 | %{_datadir}/gnuplot/%{major}.%{minor}/colors_* |
|---|
| 186 | %{_datadir}/gnuplot/%{major}.%{minor}/gnuplot.gih |
|---|
| 187 | %{_datadir}/gnuplot/%{major}.%{minor}/gnuplotrc |
|---|
| 188 | %{x11_app_defaults_dir}/Gnuplot |
|---|
| 189 | %{_infodir}/gnuplot.info.gz |
|---|
| 190 | %{_mandir}/man1/gnuplot.* |
|---|
| 191 | %{_mandir}/ja/man1/gnuplot.* |
|---|
| 192 | |
|---|
| 193 | %files doc |
|---|
| 194 | %defattr(-,root,root) |
|---|
| 195 | %doc ChangeLog Copyright |
|---|
| 196 | %doc docs/psdoc/ps_guide.ps docs/psdoc/ps_symbols.ps |
|---|
| 197 | %doc tutorial/tutorial.dvi docs/psdoc/ps_file.doc |
|---|
| 198 | %doc docs/psdoc/ps_fontfile_doc.pdf docs/htmldocs tutorial/eg7.eps |
|---|
| 199 | %doc docs_to_include/demo |
|---|
| 200 | |
|---|
| 201 | %files latex |
|---|
| 202 | %defattr(-,root,root) |
|---|
| 203 | %doc ChangeLog Copyright |
|---|
| 204 | %{_datadir}/texmf/tex/latex/gnuplot/ |
|---|
| 205 | |
|---|
| 206 | %changelog |
|---|
| 207 | * Mon Aug 24 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 5.0.1-1 |
|---|
| 208 | - new upstream release |
|---|
| 209 | |
|---|
| 210 | * Thu May 7 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 5.0.0-1 |
|---|
| 211 | - new upstream release |
|---|
| 212 | - libedit-devel can not handle utf8, readline-devel is not legal with gnuplot, stick to builtin |
|---|
| 213 | https://bugzilla.redhat.com/show_bug.cgi?id=1039102 |
|---|
| 214 | - split documents and latex-related files into subpackages |
|---|
| 215 | |
|---|
| 216 | * Sun Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 4.6.6-1 |
|---|
| 217 | - update to 4.6.6 |
|---|
| 218 | |
|---|
| 219 | * Thu Jan 16 2014 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.6.4-1 |
|---|
| 220 | - new upstream release |
|---|
| 221 | - add Patch0, Patch1 and Patch2 (font paths, upstream fixes) |
|---|
| 222 | - modify spec to build/install docs correctly |
|---|
| 223 | |
|---|
| 224 | * Wed Jul 11 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 4.4.3-2 |
|---|
| 225 | - changed BuildRequires: wx-gtk2-devel >= 2.8.12 to wxGTK-devel >= 2.8.12 |
|---|
| 226 | - added BuildRequires: libXpm-devel libjpeg-turbo-devel texlive-common |
|---|
| 227 | |
|---|
| 228 | * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.3-1 |
|---|
| 229 | - update to gnuplot-4.4.3 |
|---|
| 230 | - use BR: texlive instead of tetex |
|---|
| 231 | |
|---|
| 232 | * Sun May 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.2.5-1 |
|---|
| 233 | - update to gnuplot-4.2.5 |
|---|
| 234 | - drop plus patch (merged in upstream) |
|---|
| 235 | - update URL: to new upstream homepage |
|---|
| 236 | - fix License: |
|---|
| 237 | - build with wxGTK |
|---|
| 238 | - add BR: libX11-devel, libXt-devel, wx-gtk2-devel |
|---|
| 239 | |
|---|
| 240 | * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 4.0.0-1vl5 |
|---|
| 241 | - applied new versioning policy, spec in utf-8 |
|---|
| 242 | |
|---|
| 243 | * Tue Aug 22 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.0.0-0vl6 |
|---|
| 244 | - add BuildRequires: texinfo, emacsen |
|---|
| 245 | |
|---|
| 246 | * Sun Mar 19 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.0.0-0vl5 |
|---|
| 247 | - rebuild with readline-5.1 |
|---|
| 248 | |
|---|
| 249 | * Wed Jun 15 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0.0-0vl4 |
|---|
| 250 | - update Patch0 to fix 'Invalid char in eps file' |
|---|
| 251 | (thanks to HANAWA Toshihiro) |
|---|
| 252 | - add BuildRequires: autoconf, automake |
|---|
| 253 | |
|---|
| 254 | * Sat Nov 20 2004 Satoshi MACHINO <machino@vinelinux.org> 4.0.0-0vl2 |
|---|
| 255 | - enabled history-file |
|---|
| 256 | |
|---|
| 257 | * Wed Jul 14 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 4.0.0-0vl1 |
|---|
| 258 | - source update |
|---|
| 259 | |
|---|
| 260 | * Wed Jul 14 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.8k.3-0vl1 |
|---|
| 261 | - source update |
|---|
| 262 | - patch update and modified |
|---|
| 263 | - add info |
|---|
| 264 | |
|---|
| 265 | * Wed Mar 10 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.7.3-2vl3 |
|---|
| 266 | - rebuild |
|---|
| 267 | - fix license |
|---|
| 268 | - remove -DUSE_SYSTEM_TIME ([VinePlus:01805]) |
|---|
| 269 | |
|---|
| 270 | * Wed Apr 02 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.7.3-2vl2 |
|---|
| 271 | - rebuild with readline-4.3 |
|---|
| 272 | |
|---|
| 273 | * Thu Feb 20 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.7.3-2vl1 |
|---|
| 274 | - syncd with RH 3.7.3-2 |
|---|
| 275 | - modified Yamaga-san's gnuplot3.7.2+1.2.0rc2.patch for 3.7.3 |
|---|
| 276 | |
|---|
| 277 | * Fri Jan 25 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 16vl1 |
|---|
| 278 | - added pathes (patch1,2) from RH |
|---|
| 279 | |
|---|
| 280 | * Sat Aug 25 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 12vl1 |
|---|
| 281 | - syncd rawhide |
|---|
| 282 | - updated to 3.7.1-1.2.0 |
|---|
| 283 | |
|---|
| 284 | * Mon Jun 5 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
|---|
| 285 | - updated to 3.7.1 |
|---|
| 286 | - updated gnuplot+ patch to 1.1.9 for gnuplot 3.7.1. |
|---|
| 287 | - remake SPEC from rawhide. |
|---|
| 288 | |
|---|
| 289 | * Fri May 19 2000 Nalin Dahyabhai <nalin@redhat.com> |
|---|
| 290 | - rebuild with new gd, changing gif terminal to jpeg terminal (release 7) |
|---|
| 291 | |
|---|
| 292 | * Mon May 08 2000 Preston Brown <pbrown@redhat.com> |
|---|
| 293 | - build for 7.0 |
|---|
| 294 | |
|---|
| 295 | * Thu Apr 6 2000 Bill Nottingham <notting@redhat.com> |
|---|
| 296 | - use gnu readline, not built-in version |
|---|
| 297 | |
|---|
| 298 | * Mon Apr 3 2000 Bill Nottingham <notting@redhat.com> |
|---|
| 299 | - add latex tutorial, demo files, other docs (#10508) |
|---|
| 300 | |
|---|
| 301 | * Wed Mar 1 2000 Bill Nottingham <notting@redhat.com> |
|---|
| 302 | - update to 3.7.1. Oops. |
|---|
| 303 | |
|---|
| 304 | * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com> |
|---|
| 305 | - handle compressed man pages |
|---|
| 306 | |
|---|
| 307 | * Thu Nov 4 1999 Bill Nottingham <notting@redhat.com> |
|---|
| 308 | - update to 3.7.1 |
|---|
| 309 | |
|---|
| 310 | * Mon Oct 11 1999 Bill Nottingham <notting@redhat.com> |
|---|
| 311 | - ship some docs. |
|---|
| 312 | |
|---|
| 313 | * Wed Aug 18 1999 Bill Nottingham <notting@redhat.com> |
|---|
| 314 | - add a patch to fix postscript output from Bernd Kischnick |
|---|
| 315 | (kisch@die-herrmanns.de) |
|---|
| 316 | |
|---|
| 317 | * Fri Jul 30 1999 Bill Nottingham <notting@redhat.com> |
|---|
| 318 | - fix license |
|---|
| 319 | |
|---|
| 320 | * Thu Jul 15 1999 Bill Nottingham <notting@redhat.com> |
|---|
| 321 | - rebuild without svgalib |
|---|
| 322 | |
|---|
| 323 | * Tue Jun 15 1999 Bill Nottingham <notting@redhat.com> |
|---|
| 324 | - update to 3.7.0.1 |
|---|
| 325 | |
|---|
| 326 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
|---|
| 327 | - auto rebuild in the new build environment (release 2) |
|---|
| 328 | |
|---|
| 329 | * Tue Feb 2 1999 Jeff Johnson <jbj@redhat.com> |
|---|
| 330 | - update to 3.7. |
|---|
| 331 | |
|---|
| 332 | * Thu Dec 17 1998 Michael Maher <mike@redhat.com> |
|---|
| 333 | - built package for 6.0 |
|---|
| 334 | |
|---|
| 335 | * Fri Sep 11 1998 Jeff Johnson <jbj@redhat.com> |
|---|
| 336 | - update to 2.6beta347 |
|---|
| 337 | |
|---|
| 338 | * Sat Aug 15 1998 Jeff Johnson <jbj@redhat.com> |
|---|
| 339 | - build root |
|---|
| 340 | |
|---|
| 341 | * Thu May 07 1998 Prospector System <bugs@redhat.com> |
|---|
| 342 | - translations modified for de, fr, tr |
|---|
| 343 | |
|---|
| 344 | * Mon Oct 20 1997 Donnie Barnes <djb@redhat.com> |
|---|
| 345 | - spec file cleanups |
|---|
| 346 | |
|---|
| 347 | * Thu Jul 10 1997 Erik Troan <ewt@redhat.com> |
|---|
| 348 | - built against glibc |
|---|