]> git.pld-linux.org Git - packages/dx.git/blame - dx.spec
- build at most in C++14 mode; release 25
[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
54b2dfa8 5Release: 25
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
82fabfe0 41BuildRequires: rpm-build >= 4.6
6be766ed 42BuildRequires: rpmbuild(macros) >= 1.752
eaee3e08
JB
43BuildRequires: xorg-lib-libICE-devel
44BuildRequires: xorg-lib-libSM-devel
45BuildRequires: xorg-lib-libX11-devel
46BuildRequires: xorg-lib-libXext-devel
fff3497b 47BuildRequires: xorg-lib-libXinerama-devel
eaee3e08
JB
48BuildRequires: xorg-lib-libXmu-devel
49BuildRequires: xorg-lib-libXp-devel
fff3497b 50BuildRequires: xorg-lib-libXpm-devel
eaee3e08 51BuildRequires: xorg-lib-libXt-devel
aa5c8b82 52Requires: %{name}-libs = %{version}-%{release}
b33192a8 53Requires: openssh-clients
56cc8230 54BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
dee13415 56%define specflags_ia32 -fomit-frame-pointer
09857975 57%define skip_post_check_so libDXL.so.*
dee13415 58
87ff9ddb 59%description
56cc8230 60OpenDX is a uniquely powerful, full-featured software package for the
4f56f054
MP
61visualization of scientific, engineering and analytical data: Its open
62system design is built on a standard interface environments. And its
63sophisticated data model provides users with great flexibility in
64creating visualizations.
56cc8230 65
dcb1af5f
JR
66%description -l pl.UTF-8
67OpenDX jest w pełni funkcjonalnym, o unikalnych możliwościach,
68pakietem do wizualizacji danych naukowych, inżynierskich i
69analitycznych. Został zaprojektowany w sposób otwarty, w oparciu o
b33192a8
ER
70standardowe środowiska interfejsów. Jego przemyślany model danych daje
71użytkownikom dużą elastyczność w tworzeniu wizualizacji.
56cc8230 72
2f333b73
TP
73%package libs
74Summary: OpenDX shared libraries
bbe5b64c 75Summary(pl.UTF-8): Biblioteki współdzielone OpenDX
2f333b73
TP
76Group: Libraries
77
78%description libs
79OpenDX shared libraries.
80
dcb1af5f
JR
81%description libs -l pl.UTF-8
82Biblioteki współdzielone OpenDX.
2f333b73
TP
83
84%package devel
85Summary: OpenDX development files
bbe5b64c 86Summary(pl.UTF-8): Pliki nagłówkowe OpenDX
2f333b73 87Group: Development/Libraries
aa5c8b82 88Requires: %{name}-libs = %{version}-%{release}
2f333b73
TP
89
90%description devel
91OpenDX development files.
92
dcb1af5f
JR
93%description devel -l pl.UTF-8
94Pliki nagłówkowe OpenDX oraz inne pliki, potrzebne do budowania.
2f333b73 95
e7df76ed
TP
96%package static
97Summary: OpenDX static libraries
bbe5b64c 98Summary(pl.UTF-8): Biblioteki statyczne OpenDX
e7df76ed 99Group: Development/Libraries
aa5c8b82 100Requires: %{name}-devel = %{version}-%{release}
e7df76ed
TP
101
102%description static
103OpenDX static libraries.
104
dcb1af5f 105%description static -l pl.UTF-8
e7df76ed
TP
106Biblioteki statyczne OpenDX.
107
2f333b73
TP
108%package doc
109Summary: OpenDX documentation
bbe5b64c 110Summary(pl.UTF-8): Dokumentacja OpenDX
2f333b73 111Group: Documentation
bfc72ff9 112BuildArch: noarch
2f333b73
TP
113
114%description doc
115Online help and html documentation for OpenDX.
116
dcb1af5f
JR
117%description doc -l pl.UTF-8
118Podręczna pomoc oraz dokumentacja html dla OpenDX.
2f333b73 119
5a4d0763 120%package examples
121Summary: OpenDX Examples
bbe5b64c 122Summary(pl.UTF-8): Przykłady dla OpenDX
5a4d0763 123Group: Documentation
bfc72ff9 124BuildArch: noarch
5a4d0763 125
126%description examples
127Examples for OpenDX.
128
dcb1af5f
JR
129%description examples -l pl.UTF-8
130Przykłady dla OpenDX.
5a4d0763 131
56cc8230 132%prep
5a4d0763 133%setup -q -a 1
2f333b73 134#%patch0 -p1
aa5c8b82 135%patch1 -p1
5a4d0763 136%patch2 -p0
137%patch3 -p1
8f58c354 138%patch4 -p1
4a53e0e8
JR
139%patch5 -p1
140%patch6 -p1
fff3497b
JR
141%patch7 -p1
142%patch8 -p1
1798cd75 143%patch9 -p1
eaee3e08
JB
144%patch10 -p1
145%patch11 -p1
56cc8230 146
147%build
54b2dfa8
JB
148%if "%{_ver_ge '%{cxx_version}' '11.0'}" == "1"
149# lower C++ standard because C++17 std::byte conflicts with local "byte" define
150export CXXFLAGS="%{rpmcxxflags} -std=c++14"
151%endif
2f333b73 152%{__libtoolize}
4a53e0e8 153%{__aclocal} -I m4
ddde77f0 154%{__autoheader}
098f7bd8 155%{__autoconf}
ddde77f0 156%{__automake}
2227a759 157CPPFLAGS="%{rpmcppflags} -I/usr/include/cdf"
ddde77f0 158%configure \
2f333b73
TP
159 --prefix=%{_datadir} \
160 --enable-shared \
e7df76ed 161 --enable-static \
2f333b73
TP
162 --disable-dependency-tracking \
163 --enable-smp-linux \
164 --enable-new-keylayout \
fff3497b
JR
165 --without-javadx \
166 --with-rsh=%{_bindir}/ssh
56cc8230 167
06b6bf25 168cd %{name}samples-4.4.0
38605a8b 169%{__aclocal}
170%{__autoheader}
171%{__autoconf}
172%{__automake}
173%configure \
5a4d0763 174 --prefix=%{_examplesdir} \
38605a8b 175 --without-javadx
176cd ..
5a4d0763 177
fff3497b 178%{__make} -j1
56cc8230 179
fff3497b 180%{__make} -j1 -C %{name}samples-4.4.0
5a4d0763 181
56cc8230 182%install
183rm -rf $RPM_BUILD_ROOT
56cc8230 184
716598e9
PG
185%{__make} install \
186 DESTDIR=$RPM_BUILD_ROOT
56cc8230 187
06b6bf25 188%{__make} -C %{name}samples-4.4.0 install \
38605a8b 189 DESTDIR=$RPM_BUILD_ROOT
5a4d0763 190
5f61fa7f 191install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir},%{_desktopdir},%{_pixmapsdir}}
5a4d0763 192install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
2f333b73 193
b33192a8
ER
194cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
195cp -p src/uipp/ui/icon50.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/dx.xpm
eaee3e08
JB
196%{__mv} $RPM_BUILD_ROOT%{_datadir}/bin/dx $RPM_BUILD_ROOT%{_bindir}
197%{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/man/manl $RPM_BUILD_ROOT%{_mandir}
198%{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/include/* $RPM_BUILD_ROOT%{_includedir}
199%{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux $RPM_BUILD_ROOT%{_libdir}/dx
200%{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/bin_linux $RPM_BUILD_ROOT%{_libdir}/dx
201%{__mv} $RPM_BUILD_ROOT%{_examplesdir}/dx/samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
a2ba2395 202ln -s %{_libdir}/dx $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux
2f333b73 203ln -s %{_libdir}/dx/bin_linux $RPM_BUILD_ROOT%{_datadir}/dx
09857975 204%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{bin,dx/{bin/dx,man,include,doc}}
56cc8230 205
56cc8230 206%clean
207rm -rf $RPM_BUILD_ROOT
208
209%files
210%defattr(644,root,root,755)
aa5c8b82 211%doc doc/README*
2227a759 212%attr(755,root,root) %{_bindir}/dx
569780d2 213%dir %{_datadir}/dx
2f333b73 214%attr(755,root,root) %{_datadir}/dx/bin
098f7bd8 215%{_datadir}/dx/bin_linux
569780d2 216%{_datadir}/dx/fonts
2f333b73 217%{_datadir}/dx/lib
a2ba2395 218%{_datadir}/dx/lib_linux
569780d2 219%{_datadir}/dx/ui
2227a759
JB
220# FIXME: should be dx(1)
221%{_mandir}/manl/dx.l*
222%{_desktopdir}/dx.desktop
223%{_pixmapsdir}/dx.xpm
2f333b73
TP
224
225%files libs
226%defattr(644,root,root,755)
358b5150 227%dir %{_libdir}/dx
2227a759
JB
228%dir %{_libdir}/dx/bin_linux
229%attr(755,root,root) %{_libdir}/dx/bin_linux/*
230%attr(755,root,root) %{_libdir}/dx/libDX*.so.*
2f333b73
TP
231
232%files devel
233%defattr(644,root,root,755)
2227a759
JB
234%attr(755,root,root) %{_libdir}/dx/libDX*.so
235%{_includedir}/dx
236%{_includedir}/dxconfig.h
237%{_includedir}/dxl.h
238%{_includedir}/dxstereo.h
239%{_libdir}/dx/libDX*.la
240%{_libdir}/dx/arch.mak
2f333b73 241
e7df76ed
TP
242%files static
243%defattr(644,root,root,755)
2227a759 244%{_libdir}/dx/libDX*.a
e7df76ed 245
2f333b73
TP
246%files doc
247%defattr(644,root,root,755)
2227a759
JB
248%{_datadir}/dx/help
249%{_datadir}/dx/html
5a4d0763 250
251%files examples
252%defattr(644,root,root,755)
253%{_examplesdir}/%{name}-%{version}
This page took 1.933022 seconds and 4 git commands to generate.