]> git.pld-linux.org Git - packages/dx.git/blob - dx.spec
cd58ea46e62ba1f304e78b77a6f476a6dcc7e7b2
[packages/dx.git] / dx.spec
1 Summary:        Excellent tool for making visualization of data
2 Summary(pl.UTF-8):      Doskonałe narzędzie do wizualizacji danych
3 Name:           dx
4 Version:        4.4.4
5 Release:        24
6 License:        IPL
7 Group:          Applications/Science
8 Source0:        http://opendx.npaci.edu/source/%{name}-%{version}.tar.gz
9 # Source0-md5:  6da0c4cd21d3c08f97b7662e3aee5b7b
10 Source1:        http://opendx.npaci.edu/source/%{name}samples-4.4.0.tar.gz
11 # Source1-md5:  e8f43722ca0a66282608bded7c0e4f93
12 Source2:        %{name}.desktop
13 Patch0:         %{name}-DESTDIR.patch
14 Patch1:         %{name}-nolibs.patch
15 Patch2:         %{name}samples-DESTDIR.patch
16 Patch3:         %{name}samples-unused_bin.patch
17 Patch4:         %{name}-include.patch
18 Patch5:         %{name}-ac.patch
19 Patch6:         %{name}-ImageMagic.patch
20 Patch7:         %{name}-open.patch
21 Patch8:         %{name}-gcc43.patch
22 Patch9:         format-security.patch
23 Patch10:        %{name}-narrowing.patch
24 Patch11:        %{name}-conversion.patch
25 URL:            http://www.opendx.org/
26 BuildRequires:  ImageMagick-devel >= 1:6.2.4.0
27 BuildRequires:  OpenGL-GLU-devel
28 BuildRequires:  OpenGL-devel
29 BuildRequires:  autoconf >= 2.57
30 BuildRequires:  automake
31 BuildRequires:  bison
32 BuildRequires:  cdflib-devel
33 BuildRequires:  flex
34 BuildRequires:  hdf-devel
35 BuildRequires:  libjpeg-devel
36 BuildRequires:  libtiff-devel
37 BuildRequires:  libstdc++-devel
38 BuildRequires:  libtool
39 BuildRequires:  motif-devel
40 BuildRequires:  netcdf-devel
41 BuildRequires:  rpmbuild(macros) >= 1.752
42 BuildRequires:  xorg-lib-libICE-devel
43 BuildRequires:  xorg-lib-libSM-devel
44 BuildRequires:  xorg-lib-libX11-devel
45 BuildRequires:  xorg-lib-libXext-devel
46 BuildRequires:  xorg-lib-libXinerama-devel
47 BuildRequires:  xorg-lib-libXmu-devel
48 BuildRequires:  xorg-lib-libXp-devel
49 BuildRequires:  xorg-lib-libXpm-devel
50 BuildRequires:  xorg-lib-libXt-devel
51 Requires:       %{name}-libs = %{version}-%{release}
52 Requires:       openssh-clients
53 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54
55 %define         specflags_ia32  -fomit-frame-pointer
56 %define         skip_post_check_so      libDXL.so.*
57
58 %description
59 OpenDX is a uniquely powerful, full-featured software package for the
60 visualization of scientific, engineering and analytical data: Its open
61 system design is built on a standard interface environments. And its
62 sophisticated data model provides users with great flexibility in
63 creating visualizations.
64
65 %description -l pl.UTF-8
66 OpenDX jest w pełni funkcjonalnym, o unikalnych możliwościach,
67 pakietem do wizualizacji danych naukowych, inżynierskich i
68 analitycznych. Został zaprojektowany w sposób otwarty, w oparciu o
69 standardowe środowiska interfejsów. Jego przemyślany model danych daje
70 użytkownikom dużą elastyczność w tworzeniu wizualizacji.
71
72 %package libs
73 Summary:        OpenDX shared libraries
74 Summary(pl.UTF-8):      Biblioteki współdzielone OpenDX
75 Group:          Libraries
76
77 %description libs
78 OpenDX shared libraries.
79
80 %description libs -l pl.UTF-8
81 Biblioteki współdzielone OpenDX.
82
83 %package devel
84 Summary:        OpenDX development files
85 Summary(pl.UTF-8):      Pliki nagłówkowe OpenDX
86 Group:          Development/Libraries
87 Requires:       %{name}-libs = %{version}-%{release}
88
89 %description devel
90 OpenDX development files.
91
92 %description devel -l pl.UTF-8
93 Pliki nagłówkowe OpenDX oraz inne pliki, potrzebne do budowania.
94
95 %package static
96 Summary:        OpenDX static libraries
97 Summary(pl.UTF-8):      Biblioteki statyczne OpenDX
98 Group:          Development/Libraries
99 Requires:       %{name}-devel = %{version}-%{release}
100
101 %description static
102 OpenDX static libraries.
103
104 %description static -l pl.UTF-8
105 Biblioteki statyczne OpenDX.
106
107 %package doc
108 Summary:        OpenDX documentation
109 Summary(pl.UTF-8):      Dokumentacja OpenDX
110 Group:          Documentation
111 BuildArch:      noarch
112
113 %description doc
114 Online help and html documentation for OpenDX.
115
116 %description doc -l pl.UTF-8
117 Podręczna pomoc oraz dokumentacja html dla OpenDX.
118
119 %package examples
120 Summary:        OpenDX Examples
121 Summary(pl.UTF-8):      Przykłady dla OpenDX
122 Group:          Documentation
123 BuildArch:      noarch
124
125 %description examples
126 Examples for OpenDX.
127
128 %description examples -l pl.UTF-8
129 Przykłady dla OpenDX.
130
131 %prep
132 %setup  -q -a 1
133 #%patch0 -p1
134 %patch1 -p1
135 %patch2 -p0
136 %patch3 -p1
137 %patch4 -p1
138 %patch5 -p1
139 %patch6 -p1
140 %patch7 -p1
141 %patch8 -p1
142 %patch9 -p1
143 %patch10 -p1
144 %patch11 -p1
145
146 %build
147 %{__libtoolize}
148 %{__aclocal} -I m4
149 %{__autoheader}
150 %{__autoconf}
151 %{__automake}
152 CPPFLAGS="%{rpmcppflags} -I/usr/include/cdf"
153 %configure \
154         --prefix=%{_datadir} \
155         --enable-shared \
156         --enable-static \
157         --disable-dependency-tracking \
158         --enable-smp-linux \
159         --enable-new-keylayout \
160         --without-javadx \
161         --with-rsh=%{_bindir}/ssh
162
163 cd %{name}samples-4.4.0
164 %{__aclocal}
165 %{__autoheader}
166 %{__autoconf}
167 %{__automake}
168 %configure \
169         --prefix=%{_examplesdir} \
170         --without-javadx
171 cd ..
172
173 %{__make} -j1
174
175 %{__make} -j1 -C %{name}samples-4.4.0
176
177 %install
178 rm -rf $RPM_BUILD_ROOT
179
180 %{__make} install \
181         DESTDIR=$RPM_BUILD_ROOT
182
183 %{__make} -C %{name}samples-4.4.0 install \
184         DESTDIR=$RPM_BUILD_ROOT
185
186 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir},%{_desktopdir},%{_pixmapsdir}}
187 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
188
189 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
190 cp -p src/uipp/ui/icon50.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/dx.xpm
191 %{__mv} $RPM_BUILD_ROOT%{_datadir}/bin/dx $RPM_BUILD_ROOT%{_bindir}
192 %{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/man/manl $RPM_BUILD_ROOT%{_mandir}
193 %{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/include/* $RPM_BUILD_ROOT%{_includedir}
194 %{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux $RPM_BUILD_ROOT%{_libdir}/dx
195 %{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/bin_linux $RPM_BUILD_ROOT%{_libdir}/dx
196 %{__mv} $RPM_BUILD_ROOT%{_examplesdir}/dx/samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
197 ln -s %{_libdir}/dx $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux
198 ln -s %{_libdir}/dx/bin_linux $RPM_BUILD_ROOT%{_datadir}/dx
199 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{bin,dx/{bin/dx,man,include,doc}}
200
201 %clean
202 rm -rf $RPM_BUILD_ROOT
203
204 %files
205 %defattr(644,root,root,755)
206 %doc doc/README*
207 %attr(755,root,root) %{_bindir}/dx
208 %dir %{_datadir}/dx
209 %attr(755,root,root) %{_datadir}/dx/bin
210 %{_datadir}/dx/bin_linux
211 %{_datadir}/dx/fonts
212 %{_datadir}/dx/lib
213 %{_datadir}/dx/lib_linux
214 %{_datadir}/dx/ui
215 # FIXME: should be dx(1)
216 %{_mandir}/manl/dx.l*
217 %{_desktopdir}/dx.desktop
218 %{_pixmapsdir}/dx.xpm
219
220 %files libs
221 %defattr(644,root,root,755)
222 %dir %{_libdir}/dx
223 %dir %{_libdir}/dx/bin_linux
224 %attr(755,root,root) %{_libdir}/dx/bin_linux/*
225 %attr(755,root,root) %{_libdir}/dx/libDX*.so.*
226
227 %files devel
228 %defattr(644,root,root,755)
229 %attr(755,root,root) %{_libdir}/dx/libDX*.so
230 %{_includedir}/dx
231 %{_includedir}/dxconfig.h
232 %{_includedir}/dxl.h
233 %{_includedir}/dxstereo.h
234 %{_libdir}/dx/libDX*.la
235 %{_libdir}/dx/arch.mak
236
237 %files static
238 %defattr(644,root,root,755)
239 %{_libdir}/dx/libDX*.a
240
241 %files doc
242 %defattr(644,root,root,755)
243 %{_datadir}/dx/help
244 %{_datadir}/dx/html
245
246 %files examples
247 %defattr(644,root,root,755)
248 %{_examplesdir}/%{name}-%{version}
This page took 0.121955 seconds and 2 git commands to generate.