]> git.pld-linux.org Git - packages/grace.git/blob - grace.spec
- release 2 (by relup.sh)
[packages/grace.git] / grace.spec
1 Summary:        Numerical Data Processing and Visualization Tool (grace)
2 Summary(pl.UTF-8):      Narzędzie do numerycznej obróbki i wizualizacji danych
3 Name:           grace
4 Version:        5.1.23
5 Release:        2
6 License:        GPL v2+
7 Group:          Applications/Math
8 Source0:        ftp://plasma-gate.weizmann.ac.il/pub/grace/src/stable/%{name}-%{version}.tar.gz
9 # Source0-md5:  e2b28ebe31288952d899fbb5c97858ae
10 Source1:        %{name}.desktop
11 Patch0:         %{name}-FHS.patch
12 Patch1:         %{name}-home_etc.patch
13 Patch2:         %{name}-etc.patch
14 Patch3:         %{name}-fontsdir.patch
15 Patch4:         source-hardening.diff
16 URL:            http://plasma-gate.weizmann.ac.il/Grace/
17 BuildRequires:  Xbae-devel
18 BuildRequires:  XmHTML-devel >= 1.1.5
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  fftw-devel >= 2.1.3
22 BuildRequires:  libjpeg-devel
23 BuildRequires:  libpng-devel >= 0.9.6
24 BuildRequires:  motif-devel >= 1.2
25 BuildRequires:  netcdf-devel >= 3.0
26 #BuildRequires: pdflib-devel >= 5.0.0
27 BuildRequires:  t1lib-devel >= 5.0.0
28 BuildRequires:  xorg-lib-libXmu-devel
29 BuildRequires:  xorg-lib-libXpm-devel
30 BuildRequires:  xorg-lib-libXt-devel
31 Requires:       fonts-Type1-urw
32 Requires:       libpng >= 0.9.6
33 #Requires:      pdflib >= 5.0.0
34 Requires:       zlib >= 1.0.3
35 Obsoletes:      xmgr
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %description
39 Grace is a Motif application for two-dimensional data visualization.
40 Grace can transform the data using free equations, FFT, cross- and
41 auto-correlation, differences, integrals, histograms, and much more.
42 The generated figures are of high quality. Grace is a very convenient
43 tool for data inspection, data transformation, and and for making
44 figures for publications.
45
46 %description -l pl.UTF-8
47 Grace jest motifową aplikacją służącą do dwuwymiarowej wizualizacji
48 danych. Może przekształcać dane za pomocą wolnych równań, FFT,
49 autokorelacji, różniczek, całek, histogramów itd. Powstałe wykresy
50 mają wysoką jakość. Grace jest bardzo użytecznym narzędziem jeśli
51 chodzi o monitorowanie i transformację danych oraz tworzenie wykresów
52 do publikacji.
53
54 %prep
55 %setup -q
56 %patch0 -p1
57 %patch1 -p1
58 %patch2 -p1
59 %patch3 -p1
60 %patch4 -p1
61
62 %build
63 cp -f /usr/share/automake/config.* ac-tools
64 cp -f ac-tools/configure.in .
65 %{__autoconf}
66 %configure \
67         --enable-grace-home=%{_datadir}/%{name} \
68         --enable-editres \
69         --enable-extra-incpath=$PKG_BUILD_DIR/include \
70         --enable-extra-ldpath=$PKG_BUILD_DIR/lib \
71         --without-bundled-xbae \
72         %{!?debug:--disable-debug}
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 %{__rm} $RPM_BUILD_ROOT%{_datadir}/grace/doc/{*.dvi,*.1} \
82         $RPM_BUILD_ROOT%{_datadir}/grace/examples/dotest
83
84 install -D %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
85
86 gzip -9nf $RPM_BUILD_ROOT%{_datadir}/grace/doc/*.dat \
87         $RPM_BUILD_ROOT%{_datadir}/grace/doc/*.agr \
88         $RPM_BUILD_ROOT%{_datadir}/grace/doc/*.sh
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %files
94 %defattr(644,root,root,755)
95 %docdir %{_datadir}/grace/doc
96 %docdir %{_datadir}/grace/examples
97 %{_datadir}/grace/doc
98 %{_datadir}/grace/examples
99 %dir %{_sysconfdir}/grace
100 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/grace/gracerc
101 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/grace/gracerc.user
102 %attr(755,root,root) %{_bindir}/convcal
103 %attr(755,root,root) %{_bindir}/fdf2fit
104 %attr(755,root,root) %{_bindir}/gracebat
105 %attr(755,root,root) %{_bindir}/grconvert
106 %attr(755,root,root) %{_bindir}/xmgrace
107 %{_mandir}/man1/convcal.1*
108 %{_mandir}/man1/grace.1*
109 %{_mandir}/man1/gracebat.1*
110 %{_mandir}/man1/grconvert.1*
111 %{_mandir}/man1/xmgrace.1*
112 %{_libdir}/grace
113 %{_includedir}/grace_np.h
114 %dir %{_datadir}/grace
115 %{_datadir}/grace/auxiliary
116 %dir %{_datadir}/grace/templates
117 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/grace/templates/*
118 %dir %{_datadir}/grace/fonts
119 %{_datadir}/grace/fonts/enc
120 %{_datadir}/grace/fonts/type1
121 %{_datadir}/grace/fonts/FontDataBase
122 %{_desktopdir}/grace.desktop
This page took 0.076183 seconds and 3 git commands to generate.