]> git.pld-linux.org Git - packages/dx.git/blob - dx.spec
1336ec8b796ea153dbdd69390de8d1de0c90e02f
[packages/dx.git] / dx.spec
1 Summary:        Excellent tool for making visualization of data
2 Summary(pl.UTF-8):      Doskonałe narzędzie do wizualizacji danych
3 Name:           dx
4 Version:        4.4.4
5 Release:        4
6 License:        IPL
7 Group:          Applications
8 Source0:        http://opendx.npaci.edu/source/%{name}-%{version}.tar.gz
9 # Source0-md5:  6da0c4cd21d3c08f97b7662e3aee5b7b
10 Source1:        http://opendx.npaci.edu/source/%{name}samples-4.4.0.tar.gz
11 # Source1-md5:  e8f43722ca0a66282608bded7c0e4f93
12 Source2:        %{name}.desktop
13 Patch0:         %{name}-DESTDIR.patch
14 Patch1:         %{name}-nolibs.patch
15 Patch2:         dxsamples-DESTDIR.patch
16 Patch3:         dxsamples-unused_bin.patch
17 Patch4:         %{name}-include.patch
18 URL:            http://www.opendx.org/
19 BuildRequires:  ImageMagick-devel >= 1:6.2.4.0
20 BuildRequires:  OpenGL-devel
21 BuildRequires:  autoconf >= 2.57
22 BuildRequires:  automake
23 BuildRequires:  bison
24 BuildRequires:  flex
25 BuildRequires:  hdf-devel
26 BuildRequires:  libjpeg-devel
27 BuildRequires:  libtool
28 BuildRequires:  libtiff-devel
29 BuildRequires:  motif-devel
30 BuildRequires:  netcdf-devel
31 Requires:       %{name}-libs = %{version}-%{release}
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %define         specflags_ia32  -fomit-frame-pointer
35
36 %description
37 OpenDX is a uniquely powerful, full-featured software package for the
38 visualization of scientific, engineering and analytical data: Its open
39 system design is built on a standard interface environments. And its
40 sophisticated data model provides users with great flexibility in
41 creating visualizations.
42
43 %description -l pl.UTF-8
44 OpenDX jest w pełni funkcjonalnym, o unikalnych możliwościach,
45 pakietem do wizualizacji danych naukowych, inżynierskich i
46 analitycznych. Został zaprojektowany w sposób otwarty, w oparciu o
47 standardowe środowiska interfejsów. Jego przemyślany model danych
48 daje użytkownikom dużą elastyczność w tworzeniu wizualizacji.
49
50 %package libs
51 Summary:        OpenDX shared libraries
52 Summary(pl.UTF-8):      Biblioteki współdzielone OpenDX
53 Group:          Libraries
54
55 %description libs
56 OpenDX shared libraries.
57
58 %description libs -l pl.UTF-8
59 Biblioteki współdzielone OpenDX.
60
61 %package devel
62 Summary:        OpenDX development files
63 Summary(pl.UTF-8):      Pliki nagłówkowe OpenDX
64 Group:          Development/Libraries
65 Requires:       %{name}-libs = %{version}-%{release}
66
67 %description devel
68 OpenDX development files.
69
70 %description devel -l pl.UTF-8
71 Pliki nagłówkowe OpenDX oraz inne pliki, potrzebne do budowania.
72
73 %package static
74 Summary:        OpenDX static libraries
75 Summary(pl.UTF-8):      Biblioteki statyczne OpenDX
76 Group:          Development/Libraries
77 Requires:       %{name}-devel = %{version}-%{release}
78
79 %description static
80 OpenDX static libraries.
81
82 %description static -l pl.UTF-8
83 Biblioteki statyczne OpenDX.
84
85 %package doc
86 Summary:        OpenDX documentation
87 Summary(pl.UTF-8):      Dokumentacja OpenDX
88 Group:          Documentation
89
90 %description doc
91 Online help and html documentation for OpenDX.
92
93 %description doc -l pl.UTF-8
94 Podręczna pomoc oraz dokumentacja html dla OpenDX.
95
96 %package examples
97 Summary:        OpenDX Examples
98 Summary(pl.UTF-8):      Przykłady dla OpenDX
99 Group:          Documentation
100
101 %description examples
102 Examples for OpenDX.
103
104 %description examples -l pl.UTF-8
105 Przykłady dla OpenDX.
106
107 %prep
108 %setup  -q -a 1
109 #%patch0 -p1
110 %patch1 -p1
111 %patch2 -p0
112 %patch3 -p1
113 %patch4 -p1
114
115 %build
116 %{__libtoolize}
117 %{__aclocal}
118 %{__autoheader}
119 %{__autoconf}
120 %{__automake}
121 %configure \
122         --prefix=%{_datadir} \
123         --enable-shared \
124         --enable-static \
125         --disable-dependency-tracking \
126         --enable-smp-linux \
127         --enable-new-keylayout \
128         --without-javadx
129
130 cd %{name}samples-4.4.0
131 %{__aclocal}
132 %{__autoheader}
133 %{__autoconf}
134 %{__automake}
135 %configure \
136         --prefix=%{_examplesdir} \
137         --without-javadx
138 cd ..
139
140 %{__make}
141
142 %{__make} -C %{name}samples-4.4.0
143
144 %install
145 rm -rf $RPM_BUILD_ROOT
146
147 %{__make} install \
148         DESTDIR=$RPM_BUILD_ROOT
149
150 %{__make} -C %{name}samples-4.4.0 install \
151         DESTDIR=$RPM_BUILD_ROOT
152
153 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir},%{_mandir},%{_desktopdir},%{_pixmapsdir}}
154 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
155
156 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
157 install src/uipp/ui/icon50.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/dx.xpm
158 mv $RPM_BUILD_ROOT%{_datadir}/bin/dx $RPM_BUILD_ROOT%{_bindir}
159 mv $RPM_BUILD_ROOT%{_datadir}/dx/man/manl $RPM_BUILD_ROOT%{_mandir}
160 mv $RPM_BUILD_ROOT%{_datadir}/dx/include/* $RPM_BUILD_ROOT%{_includedir}
161 mv $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux $RPM_BUILD_ROOT%{_libdir}/dx
162 mv $RPM_BUILD_ROOT%{_datadir}/dx/bin_linux $RPM_BUILD_ROOT%{_libdir}/dx
163 mv $RPM_BUILD_ROOT%{_examplesdir}/dx/samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
164 ln -s %{_libdir}/dx $RPM_BUILD_ROOT%{_datadir}/dx/lib_linux
165 ln -s %{_libdir}/dx/bin_linux $RPM_BUILD_ROOT%{_datadir}/dx
166 rm -rf $RPM_BUILD_ROOT%{_datadir}/{bin,dx/{bin/dx,man,include,doc}}
167
168 %clean
169 rm -rf $RPM_BUILD_ROOT
170
171 %files
172 %defattr(644,root,root,755)
173 %doc doc/README*
174 %attr(755,root,root) %{_bindir}/*
175 %dir %{_datadir}/dx
176 %attr(755,root,root) %{_datadir}/dx/bin
177 %{_datadir}/dx/bin_linux
178 %{_datadir}/dx/fonts
179 %{_datadir}/dx/lib
180 %{_datadir}/dx/lib_linux
181 %{_datadir}/dx/ui
182 %{_mandir}/manl/*
183 %{_desktopdir}/*.desktop
184 %{_pixmapsdir}/*
185
186 %files libs
187 %defattr(644,root,root,755)
188 %dir %{_libdir}/dx
189 %attr(755,root,root) %{_libdir}/dx/bin_linux
190 %attr(755,root,root) %{_libdir}/dx/lib*.so.*
191
192 %files devel
193 %defattr(644,root,root,755)
194 %{_includedir}/*
195 %{_libdir}/dx/*.mak
196 %{_libdir}/dx/*.la
197 %{_libdir}/dx/*.so
198
199 %files static
200 %defattr(644,root,root,755)
201 %{_libdir}/dx/*.a
202
203 %files doc
204 %defattr(644,root,root,755)
205 %{_datadir}/dx/h*
206
207 %files examples
208 %defattr(644,root,root,755)
209 %{_examplesdir}/%{name}-%{version}
This page took 0.069066 seconds and 3 git commands to generate.