]>
Commit | Line | Data |
---|---|---|
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: 20 | |
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: xorg-lib-libICE-devel | |
42 | BuildRequires: xorg-lib-libSM-devel | |
43 | BuildRequires: xorg-lib-libX11-devel | |
44 | BuildRequires: xorg-lib-libXext-devel | |
45 | BuildRequires: xorg-lib-libXinerama-devel | |
46 | BuildRequires: xorg-lib-libXmu-devel | |
47 | BuildRequires: xorg-lib-libXp-devel | |
48 | BuildRequires: xorg-lib-libXpm-devel | |
49 | BuildRequires: xorg-lib-libXt-devel | |
50 | Requires: %{name}-libs = %{version}-%{release} | |
51 | Requires: openssh-clients | |
52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
53 | ||
54 | %define specflags_ia32 -fomit-frame-pointer | |
55 | %define skip_post_check_so libDXL.so.* | |
56 | ||
57 | %description | |
58 | OpenDX is a uniquely powerful, full-featured software package for the | |
59 | visualization of scientific, engineering and analytical data: Its open | |
60 | system design is built on a standard interface environments. And its | |
61 | sophisticated data model provides users with great flexibility in | |
62 | creating visualizations. | |
63 | ||
64 | %description -l pl.UTF-8 | |
65 | OpenDX jest w pełni funkcjonalnym, o unikalnych możliwościach, | |
66 | pakietem do wizualizacji danych naukowych, inżynierskich i | |
67 | analitycznych. Został zaprojektowany w sposób otwarty, w oparciu o | |
68 | standardowe środowiska interfejsów. Jego przemyślany model danych daje | |
69 | użytkownikom dużą elastyczność w tworzeniu wizualizacji. | |
70 | ||
71 | %package libs | |
72 | Summary: OpenDX shared libraries | |
73 | Summary(pl.UTF-8): Biblioteki współdzielone OpenDX | |
74 | Group: Libraries | |
75 | ||
76 | %description libs | |
77 | OpenDX shared libraries. | |
78 | ||
79 | %description libs -l pl.UTF-8 | |
80 | Biblioteki współdzielone OpenDX. | |
81 | ||
82 | %package devel | |
83 | Summary: OpenDX development files | |
84 | Summary(pl.UTF-8): Pliki nagłówkowe OpenDX | |
85 | Group: Development/Libraries | |
86 | Requires: %{name}-libs = %{version}-%{release} | |
87 | ||
88 | %description devel | |
89 | OpenDX development files. | |
90 | ||
91 | %description devel -l pl.UTF-8 | |
92 | Pliki nagłówkowe OpenDX oraz inne pliki, potrzebne do budowania. | |
93 | ||
94 | %package static | |
95 | Summary: OpenDX static libraries | |
96 | Summary(pl.UTF-8): Biblioteki statyczne OpenDX | |
97 | Group: Development/Libraries | |
98 | Requires: %{name}-devel = %{version}-%{release} | |
99 | ||
100 | %description static | |
101 | OpenDX static libraries. | |
102 | ||
103 | %description static -l pl.UTF-8 | |
104 | Biblioteki statyczne OpenDX. | |
105 | ||
106 | %package doc | |
107 | Summary: OpenDX documentation | |
108 | Summary(pl.UTF-8): Dokumentacja OpenDX | |
109 | Group: Documentation | |
110 | %if "%{_rpmversion}" >= "5" | |
111 | BuildArch: noarch | |
112 | %endif | |
113 | ||
114 | %description doc | |
115 | Online help and html documentation for OpenDX. | |
116 | ||
117 | %description doc -l pl.UTF-8 | |
118 | Podręczna pomoc oraz dokumentacja html dla OpenDX. | |
119 | ||
120 | %package examples | |
121 | Summary: OpenDX Examples | |
122 | Summary(pl.UTF-8): Przykłady dla OpenDX | |
123 | Group: Documentation | |
124 | %if "%{_rpmversion}" >= "5" | |
125 | BuildArch: noarch | |
126 | %endif | |
127 | ||
128 | %description examples | |
129 | Examples for OpenDX. | |
130 | ||
131 | %description examples -l pl.UTF-8 | |
132 | Przykłady dla OpenDX. | |
133 | ||
134 | %prep | |
135 | %setup -q -a 1 | |
136 | #%patch0 -p1 | |
137 | %patch1 -p1 | |
138 | %patch2 -p0 | |
139 | %patch3 -p1 | |
140 | %patch4 -p1 | |
141 | %patch5 -p1 | |
142 | %patch6 -p1 | |
143 | %patch7 -p1 | |
144 | %patch8 -p1 | |
145 | %patch9 -p1 | |
146 | %patch10 -p1 | |
147 | %patch11 -p1 | |
148 | ||
149 | %build | |
150 | %{__libtoolize} | |
151 | %{__aclocal} -I m4 | |
152 | %{__autoheader} | |
153 | %{__autoconf} | |
154 | %{__automake} | |
155 | CPPFLAGS="%{rpmcppflags} -I/usr/include/cdf" | |
156 | %configure \ | |
157 | --prefix=%{_datadir} \ | |
158 | --enable-shared \ | |
159 | --enable-static \ | |
160 | --disable-dependency-tracking \ | |
161 | --enable-smp-linux \ | |
162 | --enable-new-keylayout \ | |
163 | --without-javadx \ | |
164 | --with-rsh=%{_bindir}/ssh | |
165 | ||
166 | cd %{name}samples-4.4.0 | |
167 | %{__aclocal} | |
168 | %{__autoheader} | |
169 | %{__autoconf} | |
170 | %{__automake} | |
171 | %configure \ | |
172 | --prefix=%{_examplesdir} \ | |
173 | --without-javadx | |
174 | cd .. | |
175 | ||
176 | %{__make} -j1 | |
177 | ||
178 | %{__make} -j1 -C %{name}samples-4.4.0 | |
179 | ||
180 | %install | |
181 | rm -rf $RPM_BUILD_ROOT | |
182 | ||
183 | %{__make} install \ | |
184 | DESTDIR=$RPM_BUILD_ROOT | |
185 | ||
186 | %{__make} -C %{name}samples-4.4.0 install \ | |
187 | DESTDIR=$RPM_BUILD_ROOT | |
188 | ||
189 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir},%{_desktopdir},%{_pixmapsdir}} | |
190 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
191 | ||
192 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} | |
193 | cp -p src/uipp/ui/icon50.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/dx.xpm | |
194 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/bin/dx $RPM_BUILD_ROOT%{_bindir} | |
195 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/man/manl $RPM_BUILD_ROOT%{_mandir} | |
196 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/include/* $RPM_BUILD_ROOT%{_includedir} | |
197 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux $RPM_BUILD_ROOT%{_libdir}/dx | |
198 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/bin_linux $RPM_BUILD_ROOT%{_libdir}/dx | |
199 | %{__mv} $RPM_BUILD_ROOT%{_examplesdir}/dx/samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
200 | ln -s %{_libdir}/dx $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux | |
201 | ln -s %{_libdir}/dx/bin_linux $RPM_BUILD_ROOT%{_datadir}/dx | |
202 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{bin,dx/{bin/dx,man,include,doc}} | |
203 | ||
204 | %clean | |
205 | rm -rf $RPM_BUILD_ROOT | |
206 | ||
207 | %files | |
208 | %defattr(644,root,root,755) | |
209 | %doc doc/README* | |
210 | %attr(755,root,root) %{_bindir}/dx | |
211 | %dir %{_datadir}/dx | |
212 | %attr(755,root,root) %{_datadir}/dx/bin | |
213 | %{_datadir}/dx/bin_linux | |
214 | %{_datadir}/dx/fonts | |
215 | %{_datadir}/dx/lib | |
216 | %{_datadir}/dx/lib_linux | |
217 | %{_datadir}/dx/ui | |
218 | # FIXME: should be dx(1) | |
219 | %{_mandir}/manl/dx.l* | |
220 | %{_desktopdir}/dx.desktop | |
221 | %{_pixmapsdir}/dx.xpm | |
222 | ||
223 | %files libs | |
224 | %defattr(644,root,root,755) | |
225 | %dir %{_libdir}/dx | |
226 | %dir %{_libdir}/dx/bin_linux | |
227 | %attr(755,root,root) %{_libdir}/dx/bin_linux/* | |
228 | %attr(755,root,root) %{_libdir}/dx/libDX*.so.* | |
229 | ||
230 | %files devel | |
231 | %defattr(644,root,root,755) | |
232 | %attr(755,root,root) %{_libdir}/dx/libDX*.so | |
233 | %{_includedir}/dx | |
234 | %{_includedir}/dxconfig.h | |
235 | %{_includedir}/dxl.h | |
236 | %{_includedir}/dxstereo.h | |
237 | %{_libdir}/dx/libDX*.la | |
238 | %{_libdir}/dx/arch.mak | |
239 | ||
240 | %files static | |
241 | %defattr(644,root,root,755) | |
242 | %{_libdir}/dx/libDX*.a | |
243 | ||
244 | %files doc | |
245 | %defattr(644,root,root,755) | |
246 | %{_datadir}/dx/help | |
247 | %{_datadir}/dx/html | |
248 | ||
249 | %files examples | |
250 | %defattr(644,root,root,755) | |
251 | %{_examplesdir}/%{name}-%{version} |