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