source: projects/specs/trunk/p/plotutils/plotutils-vl.spec @ 11206

Revision 11206, 4.0 KB checked in by ara_t, 7 years ago (diff)

plotutils: initial commit

Line 
1%define pkg_name    plotutils
2%define pkg_version 2.6
3%define pkg_release 1%{?_dist_release}
4
5Summary:     Plotting utilities and library for 2D-graphics
6Summary(ja): 2Dグラフィックスのプロッティングと作業のためのパッケージ
7Name:        %{pkg_name}
8Version:     %{pkg_version}
9Release:     %{pkg_release}
10
11License: GPLv3
12Group:   Applications/Graphics
13URL:     http://www.gnu.org/software/plotutils/
14Source0: http://ftp.jaist.ac.jp/pub/GNU/%{name}/%{name}-%{version}.tar.gz
15
16# patches from Debian package
17Patch1: 01_AC_PROG_CXX.diff
18Patch2: 10_repair_postscript
19Patch3: 20_svg_attribute_syntax
20Patch4: 21_plot2svg_test.diff
21Patch5: 25_libpng15
22Patch6: 30_hershey_glyphs
23Patch7: 35_spline.test.error.diff
24
25Buildroot: %{_tmppath}/%{name}-%{version}-root
26
27BuildRequires: libXaw-devel
28BuildRequires: libXt-devel
29BuildRequires: libpng-devel
30BuildRequires: libsvg-devel
31
32Requires: libpng
33Requires: libsvg
34
35
36Vendor: Project Vine
37Distribution: Vine Linux
38
39
40%description
41The GNU plotutils package contains software for both programmers and
42technical users. Its centerpiece is libplot, a powerful C/C++ function
43library for exporting 2-D vector graphics in many file formats, both
44vector and bitmap. On the X Window System, it can also do 2-D vector
45graphics animations.
46
47libplot is device-independent, in the sense that its API
48(application programming interface) does not depend on the type of
49graphics file to be exported. A Postscript-like API is used both for
50file export and for graphics animations. A libplot programmer needs to
51learn only one API: not the details of many graphics file formats.
52
53The package also contains command-line programs for plotting scientific
54data, such as GNU graph for XY plotting. Many of them use libplot to
55export graphics. So, they can export graphics in any of libplot's
56supported 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
69GNU Plotutilsは2Dグラフィックスのプロッティングと作業のためのパッケージです。
70さまざまなファイル・フォーマットの2Dベクタ・グラフィックスにエクスポートする
71ためのCあるいはC++のライブラリlibplotを含みます。2Dベクタ・グラフィックスの
72アニメーションもサポートします。科学データのプロッティングのためのコマンド
73ライン・プログラムも含みます。
74
75%package devel
76Summary: Header files for plotutils
77Group: Development/Libraries
78Requires: plotutils = %{version}-%{release}
79
80%description devel
81Header 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
120if [ $1 = 0 ]; then
121    /sbin/install-info --delete %{_infodir}/plotutils.info.gz \
122                       %{_infodir}/dir 2>/dev/null
123fi
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
Note: See TracBrowser for help on using the repository browser.