]> git.pld-linux.org Git - packages/dx.git/blobdiff - dx.spec
- fixed cdflib detection, more verbose files
[packages/dx.git] / dx.spec
diff --git a/dx.spec b/dx.spec
index 689d334882d4290023164f5ae852be1468d63385..badd822a215b41620c4c632160ac6ddafadf4a7f 100644 (file)
--- a/dx.spec
+++ b/dx.spec
@@ -1,37 +1,58 @@
-#
-# TODO: - add samples
-#      - add desktop file
-#
 Summary:       Excellent tool for making visualization of data
-Summary(pl):   Doskona³e narzêdzie do wizualizacji danych
+Summary(pl.UTF-8):     Doskonałe narzędzie do wizualizacji danych
 Name:          dx
-Version:       4.3.2
-Release:       5
+Version:       4.4.4
+Release:       20
 License:       IPL
-Group:         Applications
+Group:         Applications/Science
 Source0:       http://opendx.npaci.edu/source/%{name}-%{version}.tar.gz
-# Source0-md5: 201afdd86a5ddcfda0dc60fc7b6d3fea
-Source1:       http://opendx.npaci.edu/source/%{name}samples-%{version}.tar.gz
-# Source1-md5: 940eece74fc2bf001a8017f9df18daac
+# Source0-md5: 6da0c4cd21d3c08f97b7662e3aee5b7b
+Source1:       http://opendx.npaci.edu/source/%{name}samples-4.4.0.tar.gz
+# Source1-md5: e8f43722ca0a66282608bded7c0e4f93
+Source2:       %{name}.desktop
 Patch0:                %{name}-DESTDIR.patch
 Patch1:                %{name}-nolibs.patch
+Patch2:                %{name}samples-DESTDIR.patch
+Patch3:                %{name}samples-unused_bin.patch
+Patch4:                %{name}-include.patch
+Patch5:                %{name}-ac.patch
+Patch6:                %{name}-ImageMagic.patch
+Patch7:                %{name}-open.patch
+Patch8:                %{name}-gcc43.patch
+Patch9:                format-security.patch
+Patch10:       %{name}-narrowing.patch
+Patch11:       %{name}-conversion.patch
 URL:           http://www.opendx.org/
-BuildRequires: ImageMagick-devel
-BuildRequires: OpenGL-devel-base
+BuildRequires: ImageMagick-devel >= 1:6.2.4.0
+BuildRequires: OpenGL-GLU-devel
+BuildRequires: OpenGL-devel
 BuildRequires: autoconf >= 2.57
 BuildRequires: automake
 BuildRequires: bison
+BuildRequires: cdflib-devel
 BuildRequires: flex
 BuildRequires: hdf-devel
 BuildRequires: libjpeg-devel
-BuildRequires: libtool
 BuildRequires: libtiff-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libtool
 BuildRequires: motif-devel
 BuildRequires: netcdf-devel
+BuildRequires: xorg-lib-libICE-devel
+BuildRequires: xorg-lib-libSM-devel
+BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xorg-lib-libXext-devel
+BuildRequires: xorg-lib-libXinerama-devel
+BuildRequires: xorg-lib-libXmu-devel
+BuildRequires: xorg-lib-libXp-devel
+BuildRequires: xorg-lib-libXpm-devel
+BuildRequires: xorg-lib-libXt-devel
 Requires:      %{name}-libs = %{version}-%{release}
+Requires:      openssh-clients
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                specflags_ia32  -fomit-frame-pointer
+%define                skip_post_check_so      libDXL.so.*
 
 %description
 OpenDX is a uniquely powerful, full-featured software package for the
@@ -40,70 +61,98 @@ system design is built on a standard interface environments. And its
 sophisticated data model provides users with great flexibility in
 creating visualizations.
 
-%description -l pl
-OpenDX jest w pe³ni funkcjonalnym, o unikalnych mo¿liwo¶ciach,
-pakietem do wizualizacji danych naukowych, in¿ynierskich i
-analitycznych. Zosta³ zaprojektowany w sposób otwarty, w oparciu o
-standardowe ¶rodowiska interfejstów. Jego przemy¶lany model danych
-daje u¿ytkownikom du¿± elastyczno¶æ w tworzeniu wizualizacji.
+%description -l pl.UTF-8
+OpenDX jest w pełni funkcjonalnym, o unikalnych możliwościach,
+pakietem do wizualizacji danych naukowych, inżynierskich i
+analitycznych. Został zaprojektowany w sposób otwarty, w oparciu o
+standardowe środowiska interfejsów. Jego przemyślany model danych daje
+użytkownikom dużą elastyczność w tworzeniu wizualizacji.
 
 %package libs
 Summary:       OpenDX shared libraries
-Summary(pl):   Biblioteki wspó³dzielone OpenDX
+Summary(pl.UTF-8):     Biblioteki współdzielone OpenDX
 Group:         Libraries
 
 %description libs
 OpenDX shared libraries.
 
-%description libs -l pl
-Biblioteki wspó³dzielone OpenDX.
+%description libs -l pl.UTF-8
+Biblioteki współdzielone OpenDX.
 
 %package devel
 Summary:       OpenDX development files
-Summary(pl):   Pliki nag³ówkowe OpenDX
+Summary(pl.UTF-8):     Pliki nagłówkowe OpenDX
 Group:         Development/Libraries
 Requires:      %{name}-libs = %{version}-%{release}
 
 %description devel
 OpenDX development files.
 
-%description devel -l pl
-Pliki nag³ówkowe OpenDX oraz inne pliki, potrzebne do budowania.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe OpenDX oraz inne pliki, potrzebne do budowania.
 
 %package static
 Summary:       OpenDX static libraries
-Summary(pl):   Biblioteki statyczne OpenDX
+Summary(pl.UTF-8):     Biblioteki statyczne OpenDX
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 OpenDX static libraries.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Biblioteki statyczne OpenDX.
 
 %package doc
 Summary:       OpenDX documentation
-Summary(pl):   Dokumentacja OpenDX
+Summary(pl.UTF-8):     Dokumentacja OpenDX
 Group:         Documentation
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description doc
 Online help and html documentation for OpenDX.
 
-%description doc -l pl
-Podrêczna pomoc oraz dokumentacja html dla OpenDX.
+%description doc -l pl.UTF-8
+Podręczna pomoc oraz dokumentacja html dla OpenDX.
+
+%package examples
+Summary:       OpenDX Examples
+Summary(pl.UTF-8):     Przykłady dla OpenDX
+Group:         Documentation
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
+
+%description examples
+Examples for OpenDX.
+
+%description examples -l pl.UTF-8
+Przykłady dla OpenDX.
 
 %prep
-%setup  -q
+%setup  -q -a 1
 #%patch0 -p1
 %patch1 -p1
+%patch2 -p0
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
 
 %build
 %{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
 %{__autoheader}
 %{__autoconf}
 %{__automake}
+CPPFLAGS="%{rpmcppflags} -I/usr/include/cdf"
 %configure \
        --prefix=%{_datadir} \
        --enable-shared \
@@ -111,9 +160,22 @@ Podr
        --disable-dependency-tracking \
        --enable-smp-linux \
        --enable-new-keylayout \
+       --without-javadx \
+       --with-rsh=%{_bindir}/ssh
+
+cd %{name}samples-4.4.0
+%{__aclocal}
+%{__autoheader}
+%{__autoconf}
+%{__automake}
+%configure \
+       --prefix=%{_examplesdir} \
        --without-javadx
+cd ..
 
-%{__make}
+%{__make} -j1
+
+%{__make} -j1 -C %{name}samples-4.4.0
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -121,16 +183,23 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir}}
+%{__make} -C %{name}samples-4.4.0 install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-mv $RPM_BUILD_ROOT%{_datadir}/bin/dx $RPM_BUILD_ROOT%{_bindir}
-mv $RPM_BUILD_ROOT%{_datadir}/dx/man/manl $RPM_BUILD_ROOT%{_mandir}
-mv $RPM_BUILD_ROOT%{_datadir}/dx/include/* $RPM_BUILD_ROOT%{_includedir}
-mv $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux $RPM_BUILD_ROOT%{_libdir}/dx
-mv $RPM_BUILD_ROOT%{_datadir}/dx/bin_linux $RPM_BUILD_ROOT%{_libdir}/dx
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir},%{_desktopdir},%{_pixmapsdir}}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
+cp -p src/uipp/ui/icon50.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/dx.xpm
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/bin/dx $RPM_BUILD_ROOT%{_bindir}
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/man/manl $RPM_BUILD_ROOT%{_mandir}
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/include/* $RPM_BUILD_ROOT%{_includedir}
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux $RPM_BUILD_ROOT%{_libdir}/dx
+%{__mv} $RPM_BUILD_ROOT%{_datadir}/dx/bin_linux $RPM_BUILD_ROOT%{_libdir}/dx
+%{__mv} $RPM_BUILD_ROOT%{_examplesdir}/dx/samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 ln -s %{_libdir}/dx $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux
 ln -s %{_libdir}/dx/bin_linux $RPM_BUILD_ROOT%{_datadir}/dx
-rm -rf $RPM_BUILD_ROOT%{_datadir}/{bin,dx/{bin/dx,man,include,doc}}
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{bin,dx/{bin/dx,man,include,doc}}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -138,7 +207,7 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc doc/README*
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/dx
 %dir %{_datadir}/dx
 %attr(755,root,root) %{_datadir}/dx/bin
 %{_datadir}/dx/bin_linux
@@ -146,25 +215,37 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/dx/lib
 %{_datadir}/dx/lib_linux
 %{_datadir}/dx/ui
-%{_mandir}/manl/*
+# FIXME: should be dx(1)
+%{_mandir}/manl/dx.l*
+%{_desktopdir}/dx.desktop
+%{_pixmapsdir}/dx.xpm
 
 %files libs
 %defattr(644,root,root,755)
 %dir %{_libdir}/dx
-%attr(755,root,root) %{_libdir}/dx/bin_linux
-%attr(755,root,root) %{_libdir}/dx/lib*.so.*
+%dir %{_libdir}/dx/bin_linux
+%attr(755,root,root) %{_libdir}/dx/bin_linux/*
+%attr(755,root,root) %{_libdir}/dx/libDX*.so.*
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/*
-%{_libdir}/dx/*.mak
-%{_libdir}/dx/*.la
-%{_libdir}/dx/*.so
+%attr(755,root,root) %{_libdir}/dx/libDX*.so
+%{_includedir}/dx
+%{_includedir}/dxconfig.h
+%{_includedir}/dxl.h
+%{_includedir}/dxstereo.h
+%{_libdir}/dx/libDX*.la
+%{_libdir}/dx/arch.mak
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/dx/*.a
+%{_libdir}/dx/libDX*.a
 
 %files doc
 %defattr(644,root,root,755)
-%{_datadir}/dx/h*
+%{_datadir}/dx/help
+%{_datadir}/dx/html
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
This page took 0.132552 seconds and 4 git commands to generate.