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