]>
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 |
eaee3e08 | 5 | Release: 20 |
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 | |
eaee3e08 JB |
41 | BuildRequires: xorg-lib-libICE-devel |
42 | BuildRequires: xorg-lib-libSM-devel | |
43 | BuildRequires: xorg-lib-libX11-devel | |
44 | BuildRequires: xorg-lib-libXext-devel | |
fff3497b | 45 | BuildRequires: xorg-lib-libXinerama-devel |
eaee3e08 JB |
46 | BuildRequires: xorg-lib-libXmu-devel |
47 | BuildRequires: xorg-lib-libXp-devel | |
fff3497b | 48 | BuildRequires: xorg-lib-libXpm-devel |
eaee3e08 | 49 | BuildRequires: xorg-lib-libXt-devel |
aa5c8b82 | 50 | Requires: %{name}-libs = %{version}-%{release} |
b33192a8 | 51 | Requires: openssh-clients |
56cc8230 | 52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
53 | ||
dee13415 | 54 | %define specflags_ia32 -fomit-frame-pointer |
09857975 | 55 | %define skip_post_check_so libDXL.so.* |
dee13415 | 56 | |
87ff9ddb | 57 | %description |
56cc8230 | 58 | OpenDX is a uniquely powerful, full-featured software package for the |
4f56f054 MP |
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. | |
56cc8230 | 63 | |
dcb1af5f JR |
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 | |
b33192a8 ER |
68 | standardowe środowiska interfejsów. Jego przemyślany model danych daje |
69 | użytkownikom dużą elastyczność w tworzeniu wizualizacji. | |
56cc8230 | 70 | |
2f333b73 TP |
71 | %package libs |
72 | Summary: OpenDX shared libraries | |
bbe5b64c | 73 | Summary(pl.UTF-8): Biblioteki współdzielone OpenDX |
2f333b73 TP |
74 | Group: Libraries |
75 | ||
76 | %description libs | |
77 | OpenDX shared libraries. | |
78 | ||
dcb1af5f JR |
79 | %description libs -l pl.UTF-8 |
80 | Biblioteki współdzielone OpenDX. | |
2f333b73 TP |
81 | |
82 | %package devel | |
83 | Summary: OpenDX development files | |
bbe5b64c | 84 | Summary(pl.UTF-8): Pliki nagłówkowe OpenDX |
2f333b73 | 85 | Group: Development/Libraries |
aa5c8b82 | 86 | Requires: %{name}-libs = %{version}-%{release} |
2f333b73 TP |
87 | |
88 | %description devel | |
89 | OpenDX development files. | |
90 | ||
dcb1af5f JR |
91 | %description devel -l pl.UTF-8 |
92 | Pliki nagłówkowe OpenDX oraz inne pliki, potrzebne do budowania. | |
2f333b73 | 93 | |
e7df76ed TP |
94 | %package static |
95 | Summary: OpenDX static libraries | |
bbe5b64c | 96 | Summary(pl.UTF-8): Biblioteki statyczne OpenDX |
e7df76ed | 97 | Group: Development/Libraries |
aa5c8b82 | 98 | Requires: %{name}-devel = %{version}-%{release} |
e7df76ed TP |
99 | |
100 | %description static | |
101 | OpenDX static libraries. | |
102 | ||
dcb1af5f | 103 | %description static -l pl.UTF-8 |
e7df76ed TP |
104 | Biblioteki statyczne OpenDX. |
105 | ||
2f333b73 TP |
106 | %package doc |
107 | Summary: OpenDX documentation | |
bbe5b64c | 108 | Summary(pl.UTF-8): Dokumentacja OpenDX |
2f333b73 | 109 | Group: Documentation |
b33192a8 ER |
110 | %if "%{_rpmversion}" >= "5" |
111 | BuildArch: noarch | |
112 | %endif | |
2f333b73 TP |
113 | |
114 | %description doc | |
115 | Online help and html documentation for OpenDX. | |
116 | ||
dcb1af5f JR |
117 | %description doc -l pl.UTF-8 |
118 | Podręczna pomoc oraz dokumentacja html dla OpenDX. | |
2f333b73 | 119 | |
5a4d0763 | 120 | %package examples |
121 | Summary: OpenDX Examples | |
bbe5b64c | 122 | Summary(pl.UTF-8): Przykłady dla OpenDX |
5a4d0763 | 123 | Group: Documentation |
b33192a8 ER |
124 | %if "%{_rpmversion}" >= "5" |
125 | BuildArch: noarch | |
126 | %endif | |
5a4d0763 | 127 | |
128 | %description examples | |
129 | Examples for OpenDX. | |
130 | ||
dcb1af5f JR |
131 | %description examples -l pl.UTF-8 |
132 | Przykłady dla OpenDX. | |
5a4d0763 | 133 | |
56cc8230 | 134 | %prep |
5a4d0763 | 135 | %setup -q -a 1 |
2f333b73 | 136 | #%patch0 -p1 |
aa5c8b82 | 137 | %patch1 -p1 |
5a4d0763 | 138 | %patch2 -p0 |
139 | %patch3 -p1 | |
8f58c354 | 140 | %patch4 -p1 |
4a53e0e8 JR |
141 | %patch5 -p1 |
142 | %patch6 -p1 | |
fff3497b JR |
143 | %patch7 -p1 |
144 | %patch8 -p1 | |
1798cd75 | 145 | %patch9 -p1 |
eaee3e08 JB |
146 | %patch10 -p1 |
147 | %patch11 -p1 | |
56cc8230 | 148 | |
149 | %build | |
2f333b73 | 150 | %{__libtoolize} |
4a53e0e8 | 151 | %{__aclocal} -I m4 |
ddde77f0 | 152 | %{__autoheader} |
098f7bd8 | 153 | %{__autoconf} |
ddde77f0 MM |
154 | %{__automake} |
155 | %configure \ | |
2f333b73 TP |
156 | --prefix=%{_datadir} \ |
157 | --enable-shared \ | |
e7df76ed | 158 | --enable-static \ |
2f333b73 TP |
159 | --disable-dependency-tracking \ |
160 | --enable-smp-linux \ | |
161 | --enable-new-keylayout \ | |
fff3497b JR |
162 | --without-javadx \ |
163 | --with-rsh=%{_bindir}/ssh | |
56cc8230 | 164 | |
06b6bf25 | 165 | cd %{name}samples-4.4.0 |
38605a8b | 166 | %{__aclocal} |
167 | %{__autoheader} | |
168 | %{__autoconf} | |
169 | %{__automake} | |
170 | %configure \ | |
5a4d0763 | 171 | --prefix=%{_examplesdir} \ |
38605a8b | 172 | --without-javadx |
173 | cd .. | |
5a4d0763 | 174 | |
fff3497b | 175 | %{__make} -j1 |
56cc8230 | 176 | |
fff3497b | 177 | %{__make} -j1 -C %{name}samples-4.4.0 |
5a4d0763 | 178 | |
56cc8230 | 179 | %install |
180 | rm -rf $RPM_BUILD_ROOT | |
56cc8230 | 181 | |
716598e9 PG |
182 | %{__make} install \ |
183 | DESTDIR=$RPM_BUILD_ROOT | |
56cc8230 | 184 | |
06b6bf25 | 185 | %{__make} -C %{name}samples-4.4.0 install \ |
38605a8b | 186 | DESTDIR=$RPM_BUILD_ROOT |
5a4d0763 | 187 | |
5f61fa7f | 188 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir},%{_desktopdir},%{_pixmapsdir}} |
5a4d0763 | 189 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
2f333b73 | 190 | |
b33192a8 ER |
191 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} |
192 | cp -p src/uipp/ui/icon50.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/dx.xpm | |
eaee3e08 JB |
193 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/bin/dx $RPM_BUILD_ROOT%{_bindir} |
194 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/man/manl $RPM_BUILD_ROOT%{_mandir} | |
195 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/include/* $RPM_BUILD_ROOT%{_includedir} | |
196 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux $RPM_BUILD_ROOT%{_libdir}/dx | |
197 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/bin_linux $RPM_BUILD_ROOT%{_libdir}/dx | |
198 | %{__mv} $RPM_BUILD_ROOT%{_examplesdir}/dx/samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
a2ba2395 | 199 | ln -s %{_libdir}/dx $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux |
2f333b73 | 200 | ln -s %{_libdir}/dx/bin_linux $RPM_BUILD_ROOT%{_datadir}/dx |
09857975 | 201 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{bin,dx/{bin/dx,man,include,doc}} |
56cc8230 | 202 | |
56cc8230 | 203 | %clean |
204 | rm -rf $RPM_BUILD_ROOT | |
205 | ||
206 | %files | |
207 | %defattr(644,root,root,755) | |
aa5c8b82 | 208 | %doc doc/README* |
4f56f054 | 209 | %attr(755,root,root) %{_bindir}/* |
569780d2 | 210 | %dir %{_datadir}/dx |
2f333b73 | 211 | %attr(755,root,root) %{_datadir}/dx/bin |
098f7bd8 | 212 | %{_datadir}/dx/bin_linux |
569780d2 | 213 | %{_datadir}/dx/fonts |
2f333b73 | 214 | %{_datadir}/dx/lib |
a2ba2395 | 215 | %{_datadir}/dx/lib_linux |
569780d2 | 216 | %{_datadir}/dx/ui |
2f333b73 | 217 | %{_mandir}/manl/* |
c17a201a | 218 | %{_desktopdir}/*.desktop |
5f61fa7f | 219 | %{_pixmapsdir}/* |
2f333b73 TP |
220 | |
221 | %files libs | |
222 | %defattr(644,root,root,755) | |
358b5150 JB |
223 | %dir %{_libdir}/dx |
224 | %attr(755,root,root) %{_libdir}/dx/bin_linux | |
225 | %attr(755,root,root) %{_libdir}/dx/lib*.so.* | |
2f333b73 TP |
226 | |
227 | %files devel | |
228 | %defattr(644,root,root,755) | |
229 | %{_includedir}/* | |
230 | %{_libdir}/dx/*.mak | |
231 | %{_libdir}/dx/*.la | |
232 | %{_libdir}/dx/*.so | |
233 | ||
e7df76ed TP |
234 | %files static |
235 | %defattr(644,root,root,755) | |
236 | %{_libdir}/dx/*.a | |
237 | ||
2f333b73 TP |
238 | %files doc |
239 | %defattr(644,root,root,755) | |
2f333b73 | 240 | %{_datadir}/dx/h* |
5a4d0763 | 241 | |
242 | %files examples | |
243 | %defattr(644,root,root,755) | |
244 | %{_examplesdir}/%{name}-%{version} |