]>
Commit | Line | Data |
---|---|---|
2f333b73 | 1 | Summary: Excellent tool for making visualization of data |
dcb1af5f | 2 | Summary(pl.UTF-8): Doskonałe narzędzie do wizualizacji danych |
87ff9ddb | 3 | Name: dx |
4e8e9895 | 4 | Version: 4.4.0 |
dcafce4a | 5 | Release: 1 |
2f7c6ea3 | 6 | License: IPL |
87ff9ddb | 7 | Group: Applications |
4f56f054 | 8 | Source0: http://opendx.npaci.edu/source/%{name}-%{version}.tar.gz |
4e8e9895 | 9 | # Source0-md5: 8fe6a09faea4aa713a1540f51371b719 |
2f7c6ea3 | 10 | Source1: http://opendx.npaci.edu/source/%{name}samples-%{version}.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 |
87ff9ddb | 17 | URL: http://www.opendx.org/ |
e9c28b4e | 18 | BuildRequires: ImageMagick-devel >= 1:6.2.4.0 |
6771c129 | 19 | BuildRequires: OpenGL-devel-base |
92191875 | 20 | BuildRequires: autoconf >= 2.57 |
098f7bd8 | 21 | BuildRequires: automake |
2f333b73 | 22 | BuildRequires: bison |
098f7bd8 | 23 | BuildRequires: flex |
2f333b73 | 24 | BuildRequires: hdf-devel |
dee13415 | 25 | BuildRequires: libjpeg-devel |
2f333b73 TP |
26 | BuildRequires: libtool |
27 | BuildRequires: libtiff-devel | |
28 | BuildRequires: motif-devel | |
29 | BuildRequires: netcdf-devel | |
aa5c8b82 | 30 | Requires: %{name}-libs = %{version}-%{release} |
56cc8230 | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
dee13415 TP |
33 | %define specflags_ia32 -fomit-frame-pointer |
34 | ||
87ff9ddb | 35 | %description |
56cc8230 | 36 | OpenDX is a uniquely powerful, full-featured software package for the |
4f56f054 MP |
37 | visualization of scientific, engineering and analytical data: Its open |
38 | system design is built on a standard interface environments. And its | |
39 | sophisticated data model provides users with great flexibility in | |
40 | creating visualizations. | |
56cc8230 | 41 | |
dcb1af5f JR |
42 | %description -l pl.UTF-8 |
43 | OpenDX jest w pełni funkcjonalnym, o unikalnych możliwościach, | |
44 | pakietem do wizualizacji danych naukowych, inżynierskich i | |
45 | analitycznych. Został zaprojektowany w sposób otwarty, w oparciu o | |
46 | standardowe środowiska interfejsów. Jego przemyślany model danych | |
47 | daje użytkownikom dużą elastyczność w tworzeniu wizualizacji. | |
56cc8230 | 48 | |
2f333b73 TP |
49 | %package libs |
50 | Summary: OpenDX shared libraries | |
dcb1af5f | 51 | Summary(pl.UTF-8): Biblioteki współdzielone OpenDX |
2f333b73 TP |
52 | Group: Libraries |
53 | ||
54 | %description libs | |
55 | OpenDX shared libraries. | |
56 | ||
dcb1af5f JR |
57 | %description libs -l pl.UTF-8 |
58 | Biblioteki współdzielone OpenDX. | |
2f333b73 TP |
59 | |
60 | %package devel | |
61 | Summary: OpenDX development files | |
dcb1af5f | 62 | Summary(pl.UTF-8): Pliki nagłówkowe OpenDX |
2f333b73 | 63 | Group: Development/Libraries |
aa5c8b82 | 64 | Requires: %{name}-libs = %{version}-%{release} |
2f333b73 TP |
65 | |
66 | %description devel | |
67 | OpenDX development files. | |
68 | ||
dcb1af5f JR |
69 | %description devel -l pl.UTF-8 |
70 | Pliki nagłówkowe OpenDX oraz inne pliki, potrzebne do budowania. | |
2f333b73 | 71 | |
e7df76ed TP |
72 | %package static |
73 | Summary: OpenDX static libraries | |
dcb1af5f | 74 | Summary(pl.UTF-8): Biblioteki statyczne OpenDX |
e7df76ed | 75 | Group: Development/Libraries |
aa5c8b82 | 76 | Requires: %{name}-devel = %{version}-%{release} |
e7df76ed TP |
77 | |
78 | %description static | |
79 | OpenDX static libraries. | |
80 | ||
dcb1af5f | 81 | %description static -l pl.UTF-8 |
e7df76ed TP |
82 | Biblioteki statyczne OpenDX. |
83 | ||
2f333b73 TP |
84 | %package doc |
85 | Summary: OpenDX documentation | |
dcb1af5f | 86 | Summary(pl.UTF-8): Dokumentacja OpenDX |
2f333b73 TP |
87 | Group: Documentation |
88 | ||
89 | %description doc | |
90 | Online help and html documentation for OpenDX. | |
91 | ||
dcb1af5f JR |
92 | %description doc -l pl.UTF-8 |
93 | Podręczna pomoc oraz dokumentacja html dla OpenDX. | |
2f333b73 | 94 | |
5a4d0763 | 95 | %package examples |
96 | Summary: OpenDX Examples | |
dcb1af5f | 97 | Summary(pl.UTF-8): Przykłady dla OpenDX |
5a4d0763 | 98 | Group: Documentation |
99 | ||
100 | %description examples | |
101 | Examples for OpenDX. | |
102 | ||
dcb1af5f JR |
103 | %description examples -l pl.UTF-8 |
104 | Przykłady dla OpenDX. | |
5a4d0763 | 105 | |
56cc8230 | 106 | %prep |
5a4d0763 | 107 | %setup -q -a 1 |
2f333b73 | 108 | #%patch0 -p1 |
aa5c8b82 | 109 | %patch1 -p1 |
5a4d0763 | 110 | %patch2 -p0 |
111 | %patch3 -p1 | |
56cc8230 | 112 | |
113 | %build | |
2f333b73 | 114 | %{__libtoolize} |
098f7bd8 | 115 | %{__aclocal} |
ddde77f0 | 116 | %{__autoheader} |
098f7bd8 | 117 | %{__autoconf} |
ddde77f0 MM |
118 | %{__automake} |
119 | %configure \ | |
2f333b73 TP |
120 | --prefix=%{_datadir} \ |
121 | --enable-shared \ | |
e7df76ed | 122 | --enable-static \ |
2f333b73 TP |
123 | --disable-dependency-tracking \ |
124 | --enable-smp-linux \ | |
125 | --enable-new-keylayout \ | |
2aa9a8fc | 126 | --without-javadx |
56cc8230 | 127 | |
38605a8b | 128 | cd %{name}samples-%{version} |
129 | %{__aclocal} | |
130 | %{__autoheader} | |
131 | %{__autoconf} | |
132 | %{__automake} | |
133 | %configure \ | |
5a4d0763 | 134 | --prefix=%{_examplesdir} \ |
38605a8b | 135 | --without-javadx |
136 | cd .. | |
5a4d0763 | 137 | |
4f56f054 | 138 | %{__make} |
56cc8230 | 139 | |
10b77f7f | 140 | %{__make} -C %{name}samples-%{version} |
5a4d0763 | 141 | |
56cc8230 | 142 | %install |
143 | rm -rf $RPM_BUILD_ROOT | |
56cc8230 | 144 | |
716598e9 PG |
145 | %{__make} install \ |
146 | DESTDIR=$RPM_BUILD_ROOT | |
56cc8230 | 147 | |
10b77f7f | 148 | %{__make} -C %{name}samples-%{version} install \ |
38605a8b | 149 | DESTDIR=$RPM_BUILD_ROOT |
5a4d0763 | 150 | |
5f61fa7f | 151 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir},%{_desktopdir},%{_pixmapsdir}} |
5a4d0763 | 152 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
2f333b73 | 153 | |
5f61fa7f TP |
154 | install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} |
155 | install src/uipp/ui/icon50.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/dx.xpm | |
2f333b73 TP |
156 | mv $RPM_BUILD_ROOT%{_datadir}/bin/dx $RPM_BUILD_ROOT%{_bindir} |
157 | mv $RPM_BUILD_ROOT%{_datadir}/dx/man/manl $RPM_BUILD_ROOT%{_mandir} | |
158 | mv $RPM_BUILD_ROOT%{_datadir}/dx/include/* $RPM_BUILD_ROOT%{_includedir} | |
2f333b73 TP |
159 | mv $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux $RPM_BUILD_ROOT%{_libdir}/dx |
160 | mv $RPM_BUILD_ROOT%{_datadir}/dx/bin_linux $RPM_BUILD_ROOT%{_libdir}/dx | |
5a4d0763 | 161 | mv $RPM_BUILD_ROOT%{_examplesdir}/dx/samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
a2ba2395 | 162 | ln -s %{_libdir}/dx $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux |
2f333b73 | 163 | ln -s %{_libdir}/dx/bin_linux $RPM_BUILD_ROOT%{_datadir}/dx |
2f333b73 | 164 | rm -rf $RPM_BUILD_ROOT%{_datadir}/{bin,dx/{bin/dx,man,include,doc}} |
56cc8230 | 165 | |
56cc8230 | 166 | %clean |
167 | rm -rf $RPM_BUILD_ROOT | |
168 | ||
169 | %files | |
170 | %defattr(644,root,root,755) | |
aa5c8b82 | 171 | %doc doc/README* |
4f56f054 | 172 | %attr(755,root,root) %{_bindir}/* |
569780d2 | 173 | %dir %{_datadir}/dx |
2f333b73 | 174 | %attr(755,root,root) %{_datadir}/dx/bin |
098f7bd8 | 175 | %{_datadir}/dx/bin_linux |
569780d2 | 176 | %{_datadir}/dx/fonts |
2f333b73 | 177 | %{_datadir}/dx/lib |
a2ba2395 | 178 | %{_datadir}/dx/lib_linux |
569780d2 | 179 | %{_datadir}/dx/ui |
2f333b73 | 180 | %{_mandir}/manl/* |
c17a201a | 181 | %{_desktopdir}/*.desktop |
5f61fa7f | 182 | %{_pixmapsdir}/* |
2f333b73 TP |
183 | |
184 | %files libs | |
185 | %defattr(644,root,root,755) | |
358b5150 JB |
186 | %dir %{_libdir}/dx |
187 | %attr(755,root,root) %{_libdir}/dx/bin_linux | |
188 | %attr(755,root,root) %{_libdir}/dx/lib*.so.* | |
2f333b73 TP |
189 | |
190 | %files devel | |
191 | %defattr(644,root,root,755) | |
192 | %{_includedir}/* | |
193 | %{_libdir}/dx/*.mak | |
194 | %{_libdir}/dx/*.la | |
195 | %{_libdir}/dx/*.so | |
196 | ||
e7df76ed TP |
197 | %files static |
198 | %defattr(644,root,root,755) | |
199 | %{_libdir}/dx/*.a | |
200 | ||
2f333b73 TP |
201 | %files doc |
202 | %defattr(644,root,root,755) | |
2f333b73 | 203 | %{_datadir}/dx/h* |
5a4d0763 | 204 | |
205 | %files examples | |
206 | %defattr(644,root,root,755) | |
207 | %{_examplesdir}/%{name}-%{version} |