]>
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 |
1798cd75 | 5 | Release: 15 |
2f7c6ea3 | 6 | License: IPL |
87ff9ddb | 7 | Group: Applications |
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 |
5f61fa7f | 15 | Patch2: dxsamples-DESTDIR.patch |
5a4d0763 | 16 | Patch3: dxsamples-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 |
87ff9ddb | 23 | URL: http://www.opendx.org/ |
e9c28b4e | 24 | BuildRequires: ImageMagick-devel >= 1:6.2.4.0 |
6c8c71df | 25 | BuildRequires: OpenGL-devel |
fff3497b | 26 | BuildRequires: OpenGL-GLU-devel |
92191875 | 27 | BuildRequires: autoconf >= 2.57 |
098f7bd8 | 28 | BuildRequires: automake |
2f333b73 | 29 | BuildRequires: bison |
098f7bd8 | 30 | BuildRequires: flex |
2f333b73 | 31 | BuildRequires: hdf-devel |
dee13415 | 32 | BuildRequires: libjpeg-devel |
2f333b73 TP |
33 | BuildRequires: libtool |
34 | BuildRequires: libtiff-devel | |
35 | BuildRequires: motif-devel | |
36 | BuildRequires: netcdf-devel | |
fff3497b JR |
37 | BuildRequires: xorg-lib-libXinerama-devel |
38 | BuildRequires: xorg-lib-libXpm-devel | |
39 | Requires: openssh-clients | |
aa5c8b82 | 40 | Requires: %{name}-libs = %{version}-%{release} |
56cc8230 | 41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
dee13415 | 43 | %define specflags_ia32 -fomit-frame-pointer |
09857975 | 44 | %define skip_post_check_so libDXL.so.* |
dee13415 | 45 | |
87ff9ddb | 46 | %description |
56cc8230 | 47 | OpenDX is a uniquely powerful, full-featured software package for the |
4f56f054 MP |
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. | |
56cc8230 | 52 | |
dcb1af5f JR |
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 | |
58 | daje użytkownikom dużą elastyczność w tworzeniu wizualizacji. | |
56cc8230 | 59 | |
2f333b73 TP |
60 | %package libs |
61 | Summary: OpenDX shared libraries | |
bbe5b64c | 62 | Summary(pl.UTF-8): Biblioteki współdzielone OpenDX |
2f333b73 TP |
63 | Group: Libraries |
64 | ||
65 | %description libs | |
66 | OpenDX shared libraries. | |
67 | ||
dcb1af5f JR |
68 | %description libs -l pl.UTF-8 |
69 | Biblioteki współdzielone OpenDX. | |
2f333b73 TP |
70 | |
71 | %package devel | |
72 | Summary: OpenDX development files | |
bbe5b64c | 73 | Summary(pl.UTF-8): Pliki nagłówkowe OpenDX |
2f333b73 | 74 | Group: Development/Libraries |
aa5c8b82 | 75 | Requires: %{name}-libs = %{version}-%{release} |
2f333b73 TP |
76 | |
77 | %description devel | |
78 | OpenDX development files. | |
79 | ||
dcb1af5f JR |
80 | %description devel -l pl.UTF-8 |
81 | Pliki nagłówkowe OpenDX oraz inne pliki, potrzebne do budowania. | |
2f333b73 | 82 | |
e7df76ed TP |
83 | %package static |
84 | Summary: OpenDX static libraries | |
bbe5b64c | 85 | Summary(pl.UTF-8): Biblioteki statyczne OpenDX |
e7df76ed | 86 | Group: Development/Libraries |
aa5c8b82 | 87 | Requires: %{name}-devel = %{version}-%{release} |
e7df76ed TP |
88 | |
89 | %description static | |
90 | OpenDX static libraries. | |
91 | ||
dcb1af5f | 92 | %description static -l pl.UTF-8 |
e7df76ed TP |
93 | Biblioteki statyczne OpenDX. |
94 | ||
2f333b73 TP |
95 | %package doc |
96 | Summary: OpenDX documentation | |
bbe5b64c | 97 | Summary(pl.UTF-8): Dokumentacja OpenDX |
2f333b73 TP |
98 | Group: Documentation |
99 | ||
100 | %description doc | |
101 | Online help and html documentation for OpenDX. | |
102 | ||
dcb1af5f JR |
103 | %description doc -l pl.UTF-8 |
104 | Podręczna pomoc oraz dokumentacja html dla OpenDX. | |
2f333b73 | 105 | |
5a4d0763 | 106 | %package examples |
107 | Summary: OpenDX Examples | |
bbe5b64c | 108 | Summary(pl.UTF-8): Przykłady dla OpenDX |
5a4d0763 | 109 | Group: Documentation |
110 | ||
111 | %description examples | |
112 | Examples for OpenDX. | |
113 | ||
dcb1af5f JR |
114 | %description examples -l pl.UTF-8 |
115 | Przykłady dla OpenDX. | |
5a4d0763 | 116 | |
56cc8230 | 117 | %prep |
5a4d0763 | 118 | %setup -q -a 1 |
2f333b73 | 119 | #%patch0 -p1 |
aa5c8b82 | 120 | %patch1 -p1 |
5a4d0763 | 121 | %patch2 -p0 |
122 | %patch3 -p1 | |
8f58c354 | 123 | %patch4 -p1 |
4a53e0e8 JR |
124 | %patch5 -p1 |
125 | %patch6 -p1 | |
fff3497b JR |
126 | %patch7 -p1 |
127 | %patch8 -p1 | |
1798cd75 | 128 | %patch9 -p1 |
56cc8230 | 129 | |
130 | %build | |
2f333b73 | 131 | %{__libtoolize} |
4a53e0e8 | 132 | %{__aclocal} -I m4 |
ddde77f0 | 133 | %{__autoheader} |
098f7bd8 | 134 | %{__autoconf} |
ddde77f0 MM |
135 | %{__automake} |
136 | %configure \ | |
2f333b73 TP |
137 | --prefix=%{_datadir} \ |
138 | --enable-shared \ | |
e7df76ed | 139 | --enable-static \ |
2f333b73 TP |
140 | --disable-dependency-tracking \ |
141 | --enable-smp-linux \ | |
142 | --enable-new-keylayout \ | |
fff3497b JR |
143 | --without-javadx \ |
144 | --with-rsh=%{_bindir}/ssh | |
56cc8230 | 145 | |
06b6bf25 | 146 | cd %{name}samples-4.4.0 |
38605a8b | 147 | %{__aclocal} |
148 | %{__autoheader} | |
149 | %{__autoconf} | |
150 | %{__automake} | |
151 | %configure \ | |
5a4d0763 | 152 | --prefix=%{_examplesdir} \ |
38605a8b | 153 | --without-javadx |
154 | cd .. | |
5a4d0763 | 155 | |
fff3497b | 156 | %{__make} -j1 |
56cc8230 | 157 | |
fff3497b | 158 | %{__make} -j1 -C %{name}samples-4.4.0 |
5a4d0763 | 159 | |
56cc8230 | 160 | %install |
161 | rm -rf $RPM_BUILD_ROOT | |
56cc8230 | 162 | |
716598e9 PG |
163 | %{__make} install \ |
164 | DESTDIR=$RPM_BUILD_ROOT | |
56cc8230 | 165 | |
06b6bf25 | 166 | %{__make} -C %{name}samples-4.4.0 install \ |
38605a8b | 167 | DESTDIR=$RPM_BUILD_ROOT |
5a4d0763 | 168 | |
5f61fa7f | 169 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir},%{_desktopdir},%{_pixmapsdir}} |
5a4d0763 | 170 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
2f333b73 | 171 | |
5f61fa7f TP |
172 | install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} |
173 | install src/uipp/ui/icon50.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/dx.xpm | |
2f333b73 TP |
174 | mv $RPM_BUILD_ROOT%{_datadir}/bin/dx $RPM_BUILD_ROOT%{_bindir} |
175 | mv $RPM_BUILD_ROOT%{_datadir}/dx/man/manl $RPM_BUILD_ROOT%{_mandir} | |
176 | mv $RPM_BUILD_ROOT%{_datadir}/dx/include/* $RPM_BUILD_ROOT%{_includedir} | |
2f333b73 TP |
177 | mv $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux $RPM_BUILD_ROOT%{_libdir}/dx |
178 | mv $RPM_BUILD_ROOT%{_datadir}/dx/bin_linux $RPM_BUILD_ROOT%{_libdir}/dx | |
5a4d0763 | 179 | mv $RPM_BUILD_ROOT%{_examplesdir}/dx/samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
a2ba2395 | 180 | ln -s %{_libdir}/dx $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux |
2f333b73 | 181 | ln -s %{_libdir}/dx/bin_linux $RPM_BUILD_ROOT%{_datadir}/dx |
09857975 | 182 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{bin,dx/{bin/dx,man,include,doc}} |
56cc8230 | 183 | |
56cc8230 | 184 | %clean |
185 | rm -rf $RPM_BUILD_ROOT | |
186 | ||
187 | %files | |
188 | %defattr(644,root,root,755) | |
aa5c8b82 | 189 | %doc doc/README* |
4f56f054 | 190 | %attr(755,root,root) %{_bindir}/* |
569780d2 | 191 | %dir %{_datadir}/dx |
2f333b73 | 192 | %attr(755,root,root) %{_datadir}/dx/bin |
098f7bd8 | 193 | %{_datadir}/dx/bin_linux |
569780d2 | 194 | %{_datadir}/dx/fonts |
2f333b73 | 195 | %{_datadir}/dx/lib |
a2ba2395 | 196 | %{_datadir}/dx/lib_linux |
569780d2 | 197 | %{_datadir}/dx/ui |
2f333b73 | 198 | %{_mandir}/manl/* |
c17a201a | 199 | %{_desktopdir}/*.desktop |
5f61fa7f | 200 | %{_pixmapsdir}/* |
2f333b73 TP |
201 | |
202 | %files libs | |
203 | %defattr(644,root,root,755) | |
358b5150 JB |
204 | %dir %{_libdir}/dx |
205 | %attr(755,root,root) %{_libdir}/dx/bin_linux | |
206 | %attr(755,root,root) %{_libdir}/dx/lib*.so.* | |
2f333b73 TP |
207 | |
208 | %files devel | |
209 | %defattr(644,root,root,755) | |
210 | %{_includedir}/* | |
211 | %{_libdir}/dx/*.mak | |
212 | %{_libdir}/dx/*.la | |
213 | %{_libdir}/dx/*.so | |
214 | ||
e7df76ed TP |
215 | %files static |
216 | %defattr(644,root,root,755) | |
217 | %{_libdir}/dx/*.a | |
218 | ||
2f333b73 TP |
219 | %files doc |
220 | %defattr(644,root,root,755) | |
2f333b73 | 221 | %{_datadir}/dx/h* |
5a4d0763 | 222 | |
223 | %files examples | |
224 | %defattr(644,root,root,755) | |
225 | %{_examplesdir}/%{name}-%{version} |