]> git.pld-linux.org Git - packages/dx.git/blame - dx.spec
- unconditional noarch subpackages
[packages/dx.git] / dx.spec
CommitLineData
2f333b73 1Summary: Excellent tool for making visualization of data
bbe5b64c 2Summary(pl.UTF-8): Doskonałe narzędzie do wizualizacji danych
87ff9ddb 3Name: dx
06b6bf25 4Version: 4.4.4
6be766ed 5Release: 24
2f7c6ea3 6License: IPL
eaee3e08 7Group: Applications/Science
4f56f054 8Source0: http://opendx.npaci.edu/source/%{name}-%{version}.tar.gz
06b6bf25
JR
9# Source0-md5: 6da0c4cd21d3c08f97b7662e3aee5b7b
10Source1: http://opendx.npaci.edu/source/%{name}samples-4.4.0.tar.gz
4e8e9895 11# Source1-md5: e8f43722ca0a66282608bded7c0e4f93
5f61fa7f 12Source2: %{name}.desktop
4f56f054 13Patch0: %{name}-DESTDIR.patch
aa5c8b82 14Patch1: %{name}-nolibs.patch
b33192a8
ER
15Patch2: %{name}samples-DESTDIR.patch
16Patch3: %{name}samples-unused_bin.patch
8f58c354 17Patch4: %{name}-include.patch
4a53e0e8
JR
18Patch5: %{name}-ac.patch
19Patch6: %{name}-ImageMagic.patch
fff3497b
JR
20Patch7: %{name}-open.patch
21Patch8: %{name}-gcc43.patch
1798cd75 22Patch9: format-security.patch
eaee3e08
JB
23Patch10: %{name}-narrowing.patch
24Patch11: %{name}-conversion.patch
87ff9ddb 25URL: http://www.opendx.org/
e9c28b4e 26BuildRequires: ImageMagick-devel >= 1:6.2.4.0
fff3497b 27BuildRequires: OpenGL-GLU-devel
b33192a8 28BuildRequires: OpenGL-devel
92191875 29BuildRequires: autoconf >= 2.57
098f7bd8 30BuildRequires: automake
2f333b73 31BuildRequires: bison
eaee3e08 32BuildRequires: cdflib-devel
098f7bd8 33BuildRequires: flex
2f333b73 34BuildRequires: hdf-devel
dee13415 35BuildRequires: libjpeg-devel
2f333b73 36BuildRequires: libtiff-devel
eaee3e08 37BuildRequires: libstdc++-devel
b33192a8 38BuildRequires: libtool
2f333b73
TP
39BuildRequires: motif-devel
40BuildRequires: netcdf-devel
6be766ed 41BuildRequires: rpmbuild(macros) >= 1.752
eaee3e08
JB
42BuildRequires: xorg-lib-libICE-devel
43BuildRequires: xorg-lib-libSM-devel
44BuildRequires: xorg-lib-libX11-devel
45BuildRequires: xorg-lib-libXext-devel
fff3497b 46BuildRequires: xorg-lib-libXinerama-devel
eaee3e08
JB
47BuildRequires: xorg-lib-libXmu-devel
48BuildRequires: xorg-lib-libXp-devel
fff3497b 49BuildRequires: xorg-lib-libXpm-devel
eaee3e08 50BuildRequires: xorg-lib-libXt-devel
aa5c8b82 51Requires: %{name}-libs = %{version}-%{release}
b33192a8 52Requires: openssh-clients
56cc8230 53BuildRoot: %{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 59OpenDX is a uniquely powerful, full-featured software package for the
4f56f054
MP
60visualization of scientific, engineering and analytical data: Its open
61system design is built on a standard interface environments. And its
62sophisticated data model provides users with great flexibility in
63creating visualizations.
56cc8230 64
dcb1af5f
JR
65%description -l pl.UTF-8
66OpenDX jest w pełni funkcjonalnym, o unikalnych możliwościach,
67pakietem do wizualizacji danych naukowych, inżynierskich i
68analitycznych. Został zaprojektowany w sposób otwarty, w oparciu o
b33192a8
ER
69standardowe środowiska interfejsów. Jego przemyślany model danych daje
70użytkownikom dużą elastyczność w tworzeniu wizualizacji.
56cc8230 71
2f333b73
TP
72%package libs
73Summary: OpenDX shared libraries
bbe5b64c 74Summary(pl.UTF-8): Biblioteki współdzielone OpenDX
2f333b73
TP
75Group: Libraries
76
77%description libs
78OpenDX shared libraries.
79
dcb1af5f
JR
80%description libs -l pl.UTF-8
81Biblioteki współdzielone OpenDX.
2f333b73
TP
82
83%package devel
84Summary: OpenDX development files
bbe5b64c 85Summary(pl.UTF-8): Pliki nagłówkowe OpenDX
2f333b73 86Group: Development/Libraries
aa5c8b82 87Requires: %{name}-libs = %{version}-%{release}
2f333b73
TP
88
89%description devel
90OpenDX development files.
91
dcb1af5f
JR
92%description devel -l pl.UTF-8
93Pliki nagłówkowe OpenDX oraz inne pliki, potrzebne do budowania.
2f333b73 94
e7df76ed
TP
95%package static
96Summary: OpenDX static libraries
bbe5b64c 97Summary(pl.UTF-8): Biblioteki statyczne OpenDX
e7df76ed 98Group: Development/Libraries
aa5c8b82 99Requires: %{name}-devel = %{version}-%{release}
e7df76ed
TP
100
101%description static
102OpenDX static libraries.
103
dcb1af5f 104%description static -l pl.UTF-8
e7df76ed
TP
105Biblioteki statyczne OpenDX.
106
2f333b73
TP
107%package doc
108Summary: OpenDX documentation
bbe5b64c 109Summary(pl.UTF-8): Dokumentacja OpenDX
2f333b73 110Group: Documentation
bfc72ff9 111BuildArch: noarch
2f333b73
TP
112
113%description doc
114Online help and html documentation for OpenDX.
115
dcb1af5f
JR
116%description doc -l pl.UTF-8
117Podręczna pomoc oraz dokumentacja html dla OpenDX.
2f333b73 118
5a4d0763 119%package examples
120Summary: OpenDX Examples
bbe5b64c 121Summary(pl.UTF-8): Przykłady dla OpenDX
5a4d0763 122Group: Documentation
bfc72ff9 123BuildArch: noarch
5a4d0763 124
125%description examples
126Examples for OpenDX.
127
dcb1af5f
JR
128%description examples -l pl.UTF-8
129Przykł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 152CPPFLAGS="%{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 163cd %{name}samples-4.4.0
38605a8b 164%{__aclocal}
165%{__autoheader}
166%{__autoconf}
167%{__automake}
168%configure \
5a4d0763 169 --prefix=%{_examplesdir} \
38605a8b 170 --without-javadx
171cd ..
5a4d0763 172
fff3497b 173%{__make} -j1
56cc8230 174
fff3497b 175%{__make} -j1 -C %{name}samples-4.4.0
5a4d0763 176
56cc8230 177%install
178rm -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 186install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir},%{_desktopdir},%{_pixmapsdir}}
5a4d0763 187install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
2f333b73 188
b33192a8
ER
189cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
190cp -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 197ln -s %{_libdir}/dx $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux
2f333b73 198ln -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
202rm -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}
This page took 0.142274 seconds and 4 git commands to generate.