]>
Commit | Line | Data |
---|---|---|
2f333b73 | 1 | Summary: Excellent tool for making visualization of data |
bbe5b64c | 2 | Summary(pl.UTF-8): Doskonałe narzędzie do wizualizacji danych |
87ff9ddb | 3 | Name: dx |
06b6bf25 | 4 | Version: 4.4.4 |
6be766ed | 5 | Release: 24 |
2f7c6ea3 | 6 | License: IPL |
eaee3e08 | 7 | Group: Applications/Science |
4f56f054 | 8 | Source0: http://opendx.npaci.edu/source/%{name}-%{version}.tar.gz |
06b6bf25 JR |
9 | # Source0-md5: 6da0c4cd21d3c08f97b7662e3aee5b7b |
10 | Source1: http://opendx.npaci.edu/source/%{name}samples-4.4.0.tar.gz | |
4e8e9895 | 11 | # Source1-md5: e8f43722ca0a66282608bded7c0e4f93 |
5f61fa7f | 12 | Source2: %{name}.desktop |
4f56f054 | 13 | Patch0: %{name}-DESTDIR.patch |
aa5c8b82 | 14 | Patch1: %{name}-nolibs.patch |
b33192a8 ER |
15 | Patch2: %{name}samples-DESTDIR.patch |
16 | Patch3: %{name}samples-unused_bin.patch | |
8f58c354 | 17 | Patch4: %{name}-include.patch |
4a53e0e8 JR |
18 | Patch5: %{name}-ac.patch |
19 | Patch6: %{name}-ImageMagic.patch | |
fff3497b JR |
20 | Patch7: %{name}-open.patch |
21 | Patch8: %{name}-gcc43.patch | |
1798cd75 | 22 | Patch9: format-security.patch |
eaee3e08 JB |
23 | Patch10: %{name}-narrowing.patch |
24 | Patch11: %{name}-conversion.patch | |
87ff9ddb | 25 | URL: http://www.opendx.org/ |
e9c28b4e | 26 | BuildRequires: ImageMagick-devel >= 1:6.2.4.0 |
fff3497b | 27 | BuildRequires: OpenGL-GLU-devel |
b33192a8 | 28 | BuildRequires: OpenGL-devel |
92191875 | 29 | BuildRequires: autoconf >= 2.57 |
098f7bd8 | 30 | BuildRequires: automake |
2f333b73 | 31 | BuildRequires: bison |
eaee3e08 | 32 | BuildRequires: cdflib-devel |
098f7bd8 | 33 | BuildRequires: flex |
2f333b73 | 34 | BuildRequires: hdf-devel |
dee13415 | 35 | BuildRequires: libjpeg-devel |
2f333b73 | 36 | BuildRequires: libtiff-devel |
eaee3e08 | 37 | BuildRequires: libstdc++-devel |
b33192a8 | 38 | BuildRequires: libtool |
2f333b73 TP |
39 | BuildRequires: motif-devel |
40 | BuildRequires: netcdf-devel | |
6be766ed | 41 | BuildRequires: rpmbuild(macros) >= 1.752 |
eaee3e08 JB |
42 | BuildRequires: xorg-lib-libICE-devel |
43 | BuildRequires: xorg-lib-libSM-devel | |
44 | BuildRequires: xorg-lib-libX11-devel | |
45 | BuildRequires: xorg-lib-libXext-devel | |
fff3497b | 46 | BuildRequires: xorg-lib-libXinerama-devel |
eaee3e08 JB |
47 | BuildRequires: xorg-lib-libXmu-devel |
48 | BuildRequires: xorg-lib-libXp-devel | |
fff3497b | 49 | BuildRequires: xorg-lib-libXpm-devel |
eaee3e08 | 50 | BuildRequires: xorg-lib-libXt-devel |
aa5c8b82 | 51 | Requires: %{name}-libs = %{version}-%{release} |
b33192a8 | 52 | Requires: openssh-clients |
56cc8230 | 53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
54 | ||
dee13415 | 55 | %define specflags_ia32 -fomit-frame-pointer |
09857975 | 56 | %define skip_post_check_so libDXL.so.* |
dee13415 | 57 | |
87ff9ddb | 58 | %description |
56cc8230 | 59 | OpenDX is a uniquely powerful, full-featured software package for the |
4f56f054 MP |
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. | |
56cc8230 | 64 | |
dcb1af5f JR |
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 | |
b33192a8 ER |
69 | standardowe środowiska interfejsów. Jego przemyślany model danych daje |
70 | użytkownikom dużą elastyczność w tworzeniu wizualizacji. | |
56cc8230 | 71 | |
2f333b73 TP |
72 | %package libs |
73 | Summary: OpenDX shared libraries | |
bbe5b64c | 74 | Summary(pl.UTF-8): Biblioteki współdzielone OpenDX |
2f333b73 TP |
75 | Group: Libraries |
76 | ||
77 | %description libs | |
78 | OpenDX shared libraries. | |
79 | ||
dcb1af5f JR |
80 | %description libs -l pl.UTF-8 |
81 | Biblioteki współdzielone OpenDX. | |
2f333b73 TP |
82 | |
83 | %package devel | |
84 | Summary: OpenDX development files | |
bbe5b64c | 85 | Summary(pl.UTF-8): Pliki nagłówkowe OpenDX |
2f333b73 | 86 | Group: Development/Libraries |
aa5c8b82 | 87 | Requires: %{name}-libs = %{version}-%{release} |
2f333b73 TP |
88 | |
89 | %description devel | |
90 | OpenDX development files. | |
91 | ||
dcb1af5f JR |
92 | %description devel -l pl.UTF-8 |
93 | Pliki nagłówkowe OpenDX oraz inne pliki, potrzebne do budowania. | |
2f333b73 | 94 | |
e7df76ed TP |
95 | %package static |
96 | Summary: OpenDX static libraries | |
bbe5b64c | 97 | Summary(pl.UTF-8): Biblioteki statyczne OpenDX |
e7df76ed | 98 | Group: Development/Libraries |
aa5c8b82 | 99 | Requires: %{name}-devel = %{version}-%{release} |
e7df76ed TP |
100 | |
101 | %description static | |
102 | OpenDX static libraries. | |
103 | ||
dcb1af5f | 104 | %description static -l pl.UTF-8 |
e7df76ed TP |
105 | Biblioteki statyczne OpenDX. |
106 | ||
2f333b73 TP |
107 | %package doc |
108 | Summary: OpenDX documentation | |
bbe5b64c | 109 | Summary(pl.UTF-8): Dokumentacja OpenDX |
2f333b73 | 110 | Group: Documentation |
bfc72ff9 | 111 | BuildArch: noarch |
2f333b73 TP |
112 | |
113 | %description doc | |
114 | Online help and html documentation for OpenDX. | |
115 | ||
dcb1af5f JR |
116 | %description doc -l pl.UTF-8 |
117 | Podręczna pomoc oraz dokumentacja html dla OpenDX. | |
2f333b73 | 118 | |
5a4d0763 | 119 | %package examples |
120 | Summary: OpenDX Examples | |
bbe5b64c | 121 | Summary(pl.UTF-8): Przykłady dla OpenDX |
5a4d0763 | 122 | Group: Documentation |
bfc72ff9 | 123 | BuildArch: noarch |
5a4d0763 | 124 | |
125 | %description examples | |
126 | Examples for OpenDX. | |
127 | ||
dcb1af5f JR |
128 | %description examples -l pl.UTF-8 |
129 | Przykłady dla OpenDX. | |
5a4d0763 | 130 | |
56cc8230 | 131 | %prep |
5a4d0763 | 132 | %setup -q -a 1 |
2f333b73 | 133 | #%patch0 -p1 |
aa5c8b82 | 134 | %patch1 -p1 |
5a4d0763 | 135 | %patch2 -p0 |
136 | %patch3 -p1 | |
8f58c354 | 137 | %patch4 -p1 |
4a53e0e8 JR |
138 | %patch5 -p1 |
139 | %patch6 -p1 | |
fff3497b JR |
140 | %patch7 -p1 |
141 | %patch8 -p1 | |
1798cd75 | 142 | %patch9 -p1 |
eaee3e08 JB |
143 | %patch10 -p1 |
144 | %patch11 -p1 | |
56cc8230 | 145 | |
146 | %build | |
2f333b73 | 147 | %{__libtoolize} |
4a53e0e8 | 148 | %{__aclocal} -I m4 |
ddde77f0 | 149 | %{__autoheader} |
098f7bd8 | 150 | %{__autoconf} |
ddde77f0 | 151 | %{__automake} |
2227a759 | 152 | CPPFLAGS="%{rpmcppflags} -I/usr/include/cdf" |
ddde77f0 | 153 | %configure \ |
2f333b73 TP |
154 | --prefix=%{_datadir} \ |
155 | --enable-shared \ | |
e7df76ed | 156 | --enable-static \ |
2f333b73 TP |
157 | --disable-dependency-tracking \ |
158 | --enable-smp-linux \ | |
159 | --enable-new-keylayout \ | |
fff3497b JR |
160 | --without-javadx \ |
161 | --with-rsh=%{_bindir}/ssh | |
56cc8230 | 162 | |
06b6bf25 | 163 | cd %{name}samples-4.4.0 |
38605a8b | 164 | %{__aclocal} |
165 | %{__autoheader} | |
166 | %{__autoconf} | |
167 | %{__automake} | |
168 | %configure \ | |
5a4d0763 | 169 | --prefix=%{_examplesdir} \ |
38605a8b | 170 | --without-javadx |
171 | cd .. | |
5a4d0763 | 172 | |
fff3497b | 173 | %{__make} -j1 |
56cc8230 | 174 | |
fff3497b | 175 | %{__make} -j1 -C %{name}samples-4.4.0 |
5a4d0763 | 176 | |
56cc8230 | 177 | %install |
178 | rm -rf $RPM_BUILD_ROOT | |
56cc8230 | 179 | |
716598e9 PG |
180 | %{__make} install \ |
181 | DESTDIR=$RPM_BUILD_ROOT | |
56cc8230 | 182 | |
06b6bf25 | 183 | %{__make} -C %{name}samples-4.4.0 install \ |
38605a8b | 184 | DESTDIR=$RPM_BUILD_ROOT |
5a4d0763 | 185 | |
5f61fa7f | 186 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir},%{_desktopdir},%{_pixmapsdir}} |
5a4d0763 | 187 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
2f333b73 | 188 | |
b33192a8 ER |
189 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} |
190 | cp -p src/uipp/ui/icon50.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/dx.xpm | |
eaee3e08 JB |
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} | |
a2ba2395 | 197 | ln -s %{_libdir}/dx $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux |
2f333b73 | 198 | ln -s %{_libdir}/dx/bin_linux $RPM_BUILD_ROOT%{_datadir}/dx |
09857975 | 199 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{bin,dx/{bin/dx,man,include,doc}} |
56cc8230 | 200 | |
56cc8230 | 201 | %clean |
202 | rm -rf $RPM_BUILD_ROOT | |
203 | ||
204 | %files | |
205 | %defattr(644,root,root,755) | |
aa5c8b82 | 206 | %doc doc/README* |
2227a759 | 207 | %attr(755,root,root) %{_bindir}/dx |
569780d2 | 208 | %dir %{_datadir}/dx |
2f333b73 | 209 | %attr(755,root,root) %{_datadir}/dx/bin |
098f7bd8 | 210 | %{_datadir}/dx/bin_linux |
569780d2 | 211 | %{_datadir}/dx/fonts |
2f333b73 | 212 | %{_datadir}/dx/lib |
a2ba2395 | 213 | %{_datadir}/dx/lib_linux |
569780d2 | 214 | %{_datadir}/dx/ui |
2227a759 JB |
215 | # FIXME: should be dx(1) |
216 | %{_mandir}/manl/dx.l* | |
217 | %{_desktopdir}/dx.desktop | |
218 | %{_pixmapsdir}/dx.xpm | |
2f333b73 TP |
219 | |
220 | %files libs | |
221 | %defattr(644,root,root,755) | |
358b5150 | 222 | %dir %{_libdir}/dx |
2227a759 JB |
223 | %dir %{_libdir}/dx/bin_linux |
224 | %attr(755,root,root) %{_libdir}/dx/bin_linux/* | |
225 | %attr(755,root,root) %{_libdir}/dx/libDX*.so.* | |
2f333b73 TP |
226 | |
227 | %files devel | |
228 | %defattr(644,root,root,755) | |
2227a759 JB |
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 | |
2f333b73 | 236 | |
e7df76ed TP |
237 | %files static |
238 | %defattr(644,root,root,755) | |
2227a759 | 239 | %{_libdir}/dx/libDX*.a |
e7df76ed | 240 | |
2f333b73 TP |
241 | %files doc |
242 | %defattr(644,root,root,755) | |
2227a759 JB |
243 | %{_datadir}/dx/help |
244 | %{_datadir}/dx/html | |
5a4d0763 | 245 | |
246 | %files examples | |
247 | %defattr(644,root,root,755) | |
248 | %{_examplesdir}/%{name}-%{version} |