]> git.pld-linux.org Git - packages/grace.git/blob - grace.spec
- release 3
[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.21
5 Release:        3
6 License:        GPL
7 Group:          Applications/Math
8 Source0:        ftp://plasma-gate.weizmann.ac.il/pub/grace/src/stable/%{name}-%{version}.tar.gz
9 # Source0-md5:  db02dee3c68179c41452e652bd469bb9
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 URL:            http://plasma-gate.weizmann.ac.il/Grace/
16 BuildRequires:  Xbae-devel
17 BuildRequires:  XmHTML-devel >= 1.1.5
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  fftw-devel >= 2.1.3
21 BuildRequires:  libjpeg-devel
22 BuildRequires:  libpng-devel >= 0.9.6
23 BuildRequires:  libtiff-devel
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
61 %build
62 cp -f /usr/share/automake/config.* ac-tools
63 cp -f ac-tools/configure.in .
64 %{__autoconf}
65 %configure \
66         --enable-grace-home=%{_datadir}/%{name} \
67         --enable-editres \
68         --enable-extra-incpath=$PKG_BUILD_DIR/include \
69         --enable-extra-ldpath=$PKG_BUILD_DIR/lib \
70         --without-bundled-xbae \
71         %{!?debug:--disable-debug}
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} install \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 rm -f $RPM_BUILD_ROOT%{_datadir}/grace/doc/{*.sgml,*.dvi,*.1} \
81         $RPM_BUILD_ROOT%{_datadir}/grace/examples/dotest
82
83 install -D %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
84
85 gzip -9nf $RPM_BUILD_ROOT%{_datadir}/grace/doc/*.dat \
86         $RPM_BUILD_ROOT%{_datadir}/grace/doc/*.agr \
87         $RPM_BUILD_ROOT%{_datadir}/grace/doc/*.sh
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %files
93 %defattr(644,root,root,755)
94 %docdir %{_datadir}/grace/doc
95 %docdir %{_datadir}/grace/examples
96 %{_datadir}/grace/doc
97 %{_datadir}/grace/examples
98 %dir %{_sysconfdir}/grace
99 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/grace/*
100 %attr(755,root,root) %{_bindir}/*
101 %{_mandir}/man1/*
102 %{_libdir}/grace
103 %{_includedir}/*
104 %dir %{_datadir}/grace
105 %{_datadir}/grace/auxiliary
106 %dir %{_datadir}/grace/templates
107 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/grace/templates/*
108 %dir %{_datadir}/grace/fonts
109 %{_datadir}/grace/fonts/enc
110 %{_datadir}/grace/fonts/type1
111 %{_datadir}/grace/fonts/FontDataBase
112 %{_desktopdir}/*.desktop
This page took 0.029967 seconds and 4 git commands to generate.