[11206] | 1 | %define pkg_name plotutils |
---|
| 2 | %define pkg_version 2.6 |
---|
| 3 | %define pkg_release 1%{?_dist_release} |
---|
| 4 | |
---|
| 5 | Summary: Plotting utilities and library for 2D-graphics |
---|
| 6 | Summary(ja): 2Dグラフィックスのプロッティングと作業のためのパッケージ |
---|
| 7 | Name: %{pkg_name} |
---|
| 8 | Version: %{pkg_version} |
---|
| 9 | Release: %{pkg_release} |
---|
| 10 | |
---|
| 11 | License: GPLv3 |
---|
| 12 | Group: Applications/Graphics |
---|
| 13 | URL: http://www.gnu.org/software/plotutils/ |
---|
| 14 | Source0: http://ftp.jaist.ac.jp/pub/GNU/%{name}/%{name}-%{version}.tar.gz |
---|
| 15 | |
---|
| 16 | # patches from Debian package |
---|
| 17 | Patch1: 01_AC_PROG_CXX.diff |
---|
| 18 | Patch2: 10_repair_postscript |
---|
| 19 | Patch3: 20_svg_attribute_syntax |
---|
| 20 | Patch4: 21_plot2svg_test.diff |
---|
| 21 | Patch5: 25_libpng15 |
---|
| 22 | Patch6: 30_hershey_glyphs |
---|
| 23 | Patch7: 35_spline.test.error.diff |
---|
| 24 | |
---|
| 25 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 26 | |
---|
| 27 | BuildRequires: libXaw-devel |
---|
| 28 | BuildRequires: libXt-devel |
---|
| 29 | BuildRequires: libpng-devel |
---|
| 30 | BuildRequires: libsvg-devel |
---|
| 31 | |
---|
| 32 | Requires: libpng |
---|
| 33 | Requires: libsvg |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | Vendor: Project Vine |
---|
| 37 | Distribution: Vine Linux |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | %description |
---|
| 41 | The GNU plotutils package contains software for both programmers and |
---|
| 42 | technical users. Its centerpiece is libplot, a powerful C/C++ function |
---|
| 43 | library for exporting 2-D vector graphics in many file formats, both |
---|
| 44 | vector and bitmap. On the X Window System, it can also do 2-D vector |
---|
| 45 | graphics animations. |
---|
| 46 | |
---|
| 47 | libplot is device-independent, in the sense that its API |
---|
| 48 | (application programming interface) does not depend on the type of |
---|
| 49 | graphics file to be exported. A Postscript-like API is used both for |
---|
| 50 | file export and for graphics animations. A libplot programmer needs to |
---|
| 51 | learn only one API: not the details of many graphics file formats. |
---|
| 52 | |
---|
| 53 | The package also contains command-line programs for plotting scientific |
---|
| 54 | data, such as GNU graph for XY plotting. Many of them use libplot to |
---|
| 55 | export graphics. So, they can export graphics in any of libplot's |
---|
| 56 | supported formats, such as |
---|
| 57 | |
---|
| 58 | - SVG (Scalable Vector Graphics format), the XML-based format for Web |
---|
| 59 | graphics, which is standardized by the W3 Consortium. |
---|
| 60 | - PNG, the open format for bitmap graphics. (Whenever a bitmap output |
---|
| 61 | format is being generated, libplot converts Postscript-style paths to |
---|
| 62 | bitmaps.) |
---|
| 63 | - The format used by the free xfig drawing editor. (Edit a 2-D drawing |
---|
| 64 | with a mouse, after generating it programmatically!) |
---|
| 65 | - Postscript itself. |
---|
| 66 | #' |
---|
| 67 | |
---|
| 68 | %description -l ja |
---|
| 69 | GNU Plotutilsは2Dグラフィックスのプロッティングと作業のためのパッケージです。 |
---|
| 70 | さまざまなファイル・フォーマットの2Dベクタ・グラフィックスにエクスポートする |
---|
| 71 | ためのCあるいはC++のライブラリlibplotを含みます。2Dベクタ・グラフィックスの |
---|
| 72 | アニメーションもサポートします。科学データのプロッティングのためのコマンド |
---|
| 73 | ライン・プログラムも含みます。 |
---|
| 74 | |
---|
| 75 | %package devel |
---|
| 76 | Summary: Header files for plotutils |
---|
| 77 | Group: Development/Libraries |
---|
| 78 | Requires: plotutils = %{version}-%{release} |
---|
| 79 | |
---|
| 80 | %description devel |
---|
| 81 | Header files for plotutils. |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | %prep |
---|
| 85 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 86 | %setup -q |
---|
| 87 | %patch1 -p1 |
---|
| 88 | %patch2 -p1 |
---|
| 89 | %patch3 -p1 |
---|
| 90 | %patch4 -p1 |
---|
| 91 | %patch5 -p1 |
---|
| 92 | %patch6 -p1 |
---|
| 93 | %patch7 -p1 |
---|
| 94 | |
---|
| 95 | %build |
---|
| 96 | %{configure} \ |
---|
| 97 | --disable-static \ |
---|
| 98 | --enable-libplotter \ |
---|
| 99 | --enable-libxmi |
---|
| 100 | |
---|
| 101 | %{__make} %{?_smp_mflags} |
---|
| 102 | |
---|
| 103 | %check |
---|
| 104 | %{__make} check |
---|
| 105 | |
---|
| 106 | %install |
---|
| 107 | %{make_install} |
---|
| 108 | %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/*.la |
---|
| 109 | %{__rm} ${RPM_BUILD_ROOT}%{_infodir}/dir |
---|
| 110 | |
---|
| 111 | %clean |
---|
| 112 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 113 | |
---|
| 114 | %post |
---|
| 115 | /sbin/install-info %{_infodir}/plotutils.info.gz \ |
---|
| 116 | %{_infodir}/dir 2>/dev/null |
---|
| 117 | %{_syssbindir}/ldconfig |
---|
| 118 | |
---|
| 119 | %preun |
---|
| 120 | if [ $1 = 0 ]; then |
---|
| 121 | /sbin/install-info --delete %{_infodir}/plotutils.info.gz \ |
---|
| 122 | %{_infodir}/dir 2>/dev/null |
---|
| 123 | fi |
---|
| 124 | |
---|
| 125 | %postun -p %{_syssbindir}/ldconfig |
---|
| 126 | |
---|
| 127 | |
---|
| 128 | %files |
---|
| 129 | %defattr(-,root,root) |
---|
| 130 | %doc AUTHORS COPYING ChangeLog KNOWN_BUGS NEWS ONEWS |
---|
| 131 | %doc PROBLEMS README THANKS TODO |
---|
| 132 | %{_bindir}/ |
---|
| 133 | %{_libdir}/lib*.so.* |
---|
| 134 | %{_datadir}/libplot |
---|
| 135 | %{_datadir}/ode |
---|
| 136 | %{_datadir}/pic2plot |
---|
| 137 | %{_datadir}/tek2plot |
---|
| 138 | %{_infodir}/ |
---|
| 139 | %{_mandir}/man1/ |
---|
| 140 | |
---|
| 141 | %files devel |
---|
| 142 | %defattr(-,root,root) |
---|
| 143 | %{_includedir}/ |
---|
| 144 | %{_libdir}/lib*.so |
---|
| 145 | |
---|
| 146 | |
---|
| 147 | %changelog |
---|
| 148 | * Sun Oct 15 2017 Toshiaki Ara <ara_t@384.jp> 2.6-1 |
---|
| 149 | - new package |
---|
| 150 | |
---|