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