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