]> git.pld-linux.org Git - packages/grace.git/blob - grace.spec
- dropped unused BR: libtiff-devel
[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:        4
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:  motif-devel >= 1.2
24 BuildRequires:  netcdf-devel >= 3.0
25 #BuildRequires: pdflib-devel >= 5.0.0
26 BuildRequires:  t1lib-devel >= 5.0.0
27 BuildRequires:  xorg-lib-libXmu-devel
28 BuildRequires:  xorg-lib-libXpm-devel
29 BuildRequires:  xorg-lib-libXt-devel
30 Requires:       fonts-Type1-urw
31 Requires:       libpng >= 0.9.6
32 #Requires:      pdflib >= 5.0.0
33 Requires:       zlib >= 1.0.3
34 Obsoletes:      xmgr
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 Grace is a Motif application for two-dimensional data visualization.
39 Grace can transform the data using free equations, FFT, cross- and
40 auto-correlation, differences, integrals, histograms, and much more.
41 The generated figures are of high quality. Grace is a very convenient
42 tool for data inspection, data transformation, and and for making
43 figures for publications.
44
45 %description -l pl.UTF-8
46 Grace jest motifową aplikacją służącą do dwuwymiarowej wizualizacji
47 danych. Może przekształcać dane za pomocą wolnych równań, FFT,
48 autokorelacji, różniczek, całek, histogramów itd. Powstałe wykresy
49 mają wysoką jakość. Grace jest bardzo użytecznym narzędziem jeśli
50 chodzi o monitorowanie i transformację danych oraz tworzenie wykresów
51 do publikacji.
52
53 %prep
54 %setup -q
55 %patch0 -p1
56 %patch1 -p1
57 %patch2 -p1
58 %patch3 -p1
59
60 %build
61 cp -f /usr/share/automake/config.* ac-tools
62 cp -f ac-tools/configure.in .
63 %{__autoconf}
64 %configure \
65         --enable-grace-home=%{_datadir}/%{name} \
66         --enable-editres \
67         --enable-extra-incpath=$PKG_BUILD_DIR/include \
68         --enable-extra-ldpath=$PKG_BUILD_DIR/lib \
69         --without-bundled-xbae \
70         %{!?debug:--disable-debug}
71 %{__make}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75
76 %{__make} install \
77         DESTDIR=$RPM_BUILD_ROOT
78
79 rm -f $RPM_BUILD_ROOT%{_datadir}/grace/doc/{*.sgml,*.dvi,*.1} \
80         $RPM_BUILD_ROOT%{_datadir}/grace/examples/dotest
81
82 install -D %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
83
84 gzip -9nf $RPM_BUILD_ROOT%{_datadir}/grace/doc/*.dat \
85         $RPM_BUILD_ROOT%{_datadir}/grace/doc/*.agr \
86         $RPM_BUILD_ROOT%{_datadir}/grace/doc/*.sh
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %files
92 %defattr(644,root,root,755)
93 %docdir %{_datadir}/grace/doc
94 %docdir %{_datadir}/grace/examples
95 %{_datadir}/grace/doc
96 %{_datadir}/grace/examples
97 %dir %{_sysconfdir}/grace
98 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/grace/*
99 %attr(755,root,root) %{_bindir}/*
100 %{_mandir}/man1/*
101 %{_libdir}/grace
102 %{_includedir}/*
103 %dir %{_datadir}/grace
104 %{_datadir}/grace/auxiliary
105 %dir %{_datadir}/grace/templates
106 %config(noreplace) %verify(not md5 mtime size) %{_datadir}/grace/templates/*
107 %dir %{_datadir}/grace/fonts
108 %{_datadir}/grace/fonts/enc
109 %{_datadir}/grace/fonts/type1
110 %{_datadir}/grace/fonts/FontDataBase
111 %{_desktopdir}/*.desktop
This page took 0.076995 seconds and 4 git commands to generate.