X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=dx.spec;h=ed00fddebc47762ff6f021cfd4d1dd3efea2b42a;hb=1798cd757234c546b4d4a797f7edeb5523638ea2;hp=e645430b92e30f2f13609fc2012c99cbd86f2735;hpb=56cc823078c580c8ba5d3b920f72d8f43b24fb26;p=packages%2Fdx.git diff --git a/dx.spec b/dx.spec index e645430..ed00fdd 100644 --- a/dx.spec +++ b/dx.spec @@ -1,87 +1,225 @@ -Summary: Excelent tool to making visualization of data. -Summary(pl): Doskonale narzedzie do vizualizacji danych -Name: dx -Version: 4.1.0 -Release: 1 -Group: - -Group(de): - -Group(fr): - -Group(pl): - -Group(tr): - -Copyright: IPL -Vendor: PLD -Source0: http://opendx.npaci.edu/source/%{name}-%{version}.tar.gz -Source1: http://opendx.npaci.edu/source/dxsamples-4.0.8.tar.gz -Patch0: dx-DESTDIR.patch -URL: http://www.opendx.org -#BuildPrereq: -#Requires: -#Prereq: +Summary: Excellent tool for making visualization of data +Summary(pl.UTF-8): Doskonałe narzędzie do wizualizacji danych +Name: dx +Version: 4.4.4 +Release: 15 +License: IPL +Group: Applications +Source0: http://opendx.npaci.edu/source/%{name}-%{version}.tar.gz +# 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: dxsamples-DESTDIR.patch +Patch3: dxsamples-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 +URL: http://www.opendx.org/ +BuildRequires: ImageMagick-devel >= 1:6.2.4.0 +BuildRequires: OpenGL-devel +BuildRequires: OpenGL-GLU-devel +BuildRequires: autoconf >= 2.57 +BuildRequires: automake +BuildRequires: bison +BuildRequires: flex +BuildRequires: hdf-devel +BuildRequires: libjpeg-devel +BuildRequires: libtool +BuildRequires: libtiff-devel +BuildRequires: motif-devel +BuildRequires: netcdf-devel +BuildRequires: xorg-lib-libXinerama-devel +BuildRequires: xorg-lib-libXpm-devel +Requires: openssh-clients +Requires: %{name}-libs = %{version}-%{release} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _prefix /usr/X11R6 -%define _mandir %{_prefix}/man +%define specflags_ia32 -fomit-frame-pointer +%define skip_post_check_so libDXL.so.* -%description +%description OpenDX is a uniquely powerful, full-featured software package for the -visualization of scientific, engineering and analytical data: Its open system -design is built on a standard interface environments. And its sophisticated -data model provides users with great flexibility in creating visualizations. +visualization of scientific, engineering and analytical data: Its open +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 +%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. -%prep -%setup -q -%patch -p1 +%package libs +Summary: OpenDX shared libraries +Summary(pl.UTF-8): Biblioteki współdzielone OpenDX +Group: Libraries -%build -autoheader;autoconf;automake; +%description libs +OpenDX shared libraries. -LDFLAGS="-s" ; export LDFLAGS -%configure --prefix=%{_prefix} \ - --datadir=%{_datadir} \ - --mandir=%{_mandir} +%description libs -l pl.UTF-8 +Biblioteki współdzielone OpenDX. -make +%package devel +Summary: OpenDX development files +Summary(pl.UTF-8): Pliki nagłówkowe OpenDX +Group: Development/Libraries +Requires: %{name}-libs = %{version}-%{release} -%install -rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_datadir}/%{name} -install -d $RPM_BUILD_ROOT%{_docdir}/%{name} -install -d $RPM_BUILD_ROOT%{_includedir}/%{name} -install -d $RPM_BUILD_ROOT%{_libdir}/%{name} +%description devel +OpenDX development files. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe OpenDX oraz inne pliki, potrzebne do budowania. + +%package static +Summary: OpenDX static libraries +Summary(pl.UTF-8): Biblioteki statyczne OpenDX +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} +%description static +OpenDX static libraries. -make install DESTDIR=$RPM_BUILD_ROOT +%description static -l pl.UTF-8 +Biblioteki statyczne OpenDX. +%package doc +Summary: OpenDX documentation +Summary(pl.UTF-8): Dokumentacja OpenDX +Group: Documentation -gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \ - README ChangeLog +%description doc +Online help and html documentation for OpenDX. -%pre +%description doc -l pl.UTF-8 +Podręczna pomoc oraz dokumentacja html dla OpenDX. -%preun +%package examples +Summary: OpenDX Examples +Summary(pl.UTF-8): Przykłady dla OpenDX +Group: Documentation -%post +%description examples +Examples for OpenDX. -%postun +%description examples -l pl.UTF-8 +Przykłady dla OpenDX. + +%prep +%setup -q -a 1 +#%patch0 -p1 +%patch1 -p1 +%patch2 -p0 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 +%patch9 -p1 + +%build +%{__libtoolize} +%{__aclocal} -I m4 +%{__autoheader} +%{__autoconf} +%{__automake} +%configure \ + --prefix=%{_datadir} \ + --enable-shared \ + --enable-static \ + --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} -j1 + +%{__make} -j1 -C %{name}samples-4.4.0 + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%{__make} -C %{name}samples-4.4.0 install \ + DESTDIR=$RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir},%{_desktopdir},%{_pixmapsdir}} +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} + +install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} +install 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} -r $RPM_BUILD_ROOT%{_datadir}/{bin,dx/{bin/dx,man,include,doc}} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%attr(755,root,root) /usr/X11R6/bin/* -/usr/X11R6/include/* -/usr/X11R6/include/dx/* -/usr/X11R6/lib/* -%doc /usr/share/doc/dx/* -%doc /usr/share/doc/dx/html/* -/usr/X11R6/share/dx/fonts/* -/usr/X11R6/share/dx/bin/* -/usr/X11R6/share/dx/help/* -/usr/X11R6/share/dx/ui/* +%doc doc/README* +%attr(755,root,root) %{_bindir}/* +%dir %{_datadir}/dx +%attr(755,root,root) %{_datadir}/dx/bin +%{_datadir}/dx/bin_linux +%{_datadir}/dx/fonts +%{_datadir}/dx/lib +%{_datadir}/dx/lib_linux +%{_datadir}/dx/ui +%{_mandir}/manl/* +%{_desktopdir}/*.desktop +%{_pixmapsdir}/* + +%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.* +%files devel +%defattr(644,root,root,755) +%{_includedir}/* +%{_libdir}/dx/*.mak +%{_libdir}/dx/*.la +%{_libdir}/dx/*.so +%files static +%defattr(644,root,root,755) +%{_libdir}/dx/*.a -%changelog +%files doc +%defattr(644,root,root,755) +%{_datadir}/dx/h* + +%files examples +%defattr(644,root,root,755) +%{_examplesdir}/%{name}-%{version}