]>
Commit | Line | Data |
---|---|---|
31f8b84d JB |
1 | # TODO: complete Java parts |
2 | # NOTE: | |
3 | # - inter-library dependencies contain too many cycles to make shared libraries | |
4 | # - some libraries have too common names to put them into system lib directory | |
5 | # ...so we package static libraries (with PIC enabled, so they could be linked | |
6 | # into shared library/module) in private tree | |
7 | # | |
8 | # Conditional build: | |
9 | %bcond_without hdf4 # HDF 4 support | |
10 | %bcond_without java # Java-based components | |
11 | %bcond_without netcdf # NetCDF support | |
12 | # | |
13 | Summary: Rasdaman - intelligent multidimensional raster server | |
14 | Summary(pl.UTF-8): Rasdaman - inteligentny, wielowymiarowy serwer danych rastrowych | |
15 | Name: rasdaman | |
16 | Version: 8.4.0 | |
a3ebfa40 | 17 | Release: 2 |
31f8b84d JB |
18 | License: GPL v3+ |
19 | Group: Libraries | |
20 | #Source0Download: http://rasdaman.eecs.jacobs-university.de/wiki/Versions | |
21 | Source0: http://rasdaman.eecs.jacobs-university.de/raw-attachment/wiki/Versions/%{name}-v%{version}.tgz | |
22 | # Source0-md5: c9a687ea3a723444b03d26d94b7b64aa | |
23 | # for newer versions, not archived on trac: | |
24 | # git clone git://kahlua.eecs.jacobs-university.de/rasdaman.git | |
25 | # git archive --prefix=rasdaman-%{version}/ -o ../rasdaman-%{version}.tar.gz v%{version} | |
26 | Patch0: %{name}-configure.patch | |
27 | Patch1: %{name}-libpng.patch | |
28 | Patch2: %{name}-bison.patch | |
29 | Patch3: %{name}-shared.patch | |
30 | URL: http://rasdaman.eecs.jacobs-university.de/ | |
31 | BuildRequires: autoconf >= 2.61 | |
32 | BuildRequires: automake >= 1:1.9 | |
33 | BuildRequires: bison | |
34 | BuildRequires: doxygen | |
35 | BuildRequires: flex | |
36 | BuildRequires: gdal-devel | |
37 | %{?with_hdf4:BuildRequires: hdf-devel >= 4} | |
38 | %{?with_java:BuildRequires: jdk} | |
39 | BuildRequires: libjpeg-devel >= 6b | |
40 | BuildRequires: libpng-devel | |
41 | #BuildRequires: libsigsegv | |
42 | BuildRequires: libstdc++-devel | |
43 | BuildRequires: libtiff-devel | |
44 | BuildRequires: ncurses-devel | |
45 | %{?with_netcdf:BuildRequires: netcdf-devel} | |
46 | %{?with_netcdf:BuildRequires: netcdf-cxx-devel} | |
47 | BuildRequires: netpbm-devel | |
48 | BuildRequires: openssl-devel | |
49 | BuildRequires: postgresql-devel >= 7.4.6 | |
50 | BuildRequires: postgresql-ecpg-devel >= 7.4.6 | |
51 | BuildRequires: readline-devel | |
52 | BuildRequires: zlib-devel | |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
54 | ||
55 | %description | |
56 | Rasdaman Community is a free, open-source middleware extending | |
57 | standard relational database systems with the ability to efficiently | |
58 | query and manipulate multi-dimensional arrays of unlimited size. Such | |
59 | arrays are also called "raster data", "gridded data" etc. depending on | |
60 | the application domain. | |
61 | ||
62 | %description -l pl.UTF-8 | |
63 | Rasdaman Community to wolnodostępny, mający otwarte źródła system baz | |
64 | danych pośredniczących, rozszerzających standard, mających możliwość | |
65 | wydajnego wyszukiwania i modyfikowania tabel wielowymiarowych bez | |
66 | ograniczeń rozmiaru. Tabele takie są nazywane "danymi rastrowymi" lub | |
67 | "danymi tablicowymi" w zależności od dziedziny aplikacji. | |
68 | ||
69 | %package devel | |
70 | Summary: Header files and static rasdaman libraries | |
71 | Summary(pl.UTF-8): Pliki nagłówkowe i statyczne biblioteki rasdaman | |
72 | Group: Development/Libraries | |
73 | ||
74 | %description devel | |
75 | Header files and static rasdaman libraries. | |
76 | ||
77 | %description devel -l pl.UTF-8 | |
78 | Pliki nagłówkowe i statyczne biblioteki rasdaman. | |
79 | ||
80 | %package static | |
81 | Summary: Static rasdaman libraries | |
82 | Summary(pl.UTF-8): Statyczne biblioteki rasdaman | |
83 | Group: Development/Libraries | |
84 | Requires: %{name}-devel = %{version}-%{release} | |
85 | ||
86 | %description static | |
87 | Static rasdaman libraries. | |
88 | ||
89 | %description static -l pl.UTF-8 | |
90 | Statyczne biblioteki rasdaman. | |
91 | ||
92 | %package doc | |
93 | Summary: Rasdaman middleware documentation | |
94 | Summary(pl.UTF-8): Dokumentacja do oprogramowania pośredniego rasdaman | |
95 | Group: Documentation | |
96 | ||
97 | %description doc | |
98 | Rasdaman middleware documentation. | |
99 | ||
100 | %description doc -l pl.UTF-8 | |
101 | Dokumentacja do oprogramowania pośredniego rasdaman. | |
102 | ||
103 | %prep | |
104 | %setup -q -c | |
105 | %patch0 -p1 | |
106 | %patch1 -p1 | |
107 | %patch2 -p1 | |
108 | #patch3 -p1 | |
109 | ||
110 | ln -sf oql.hh qlparser/oql.h | |
111 | ln -sf odl.hh rasdl/odl.h | |
112 | ||
113 | %build | |
114 | %{__libtoolize} | |
115 | %{__aclocal} -I m4 | |
116 | %{__autoconf} | |
117 | %{__automake} | |
118 | CPPFLAGS="%{rpmcppflags} -I/usr/include/ecpg" | |
119 | CFLAGS="%{rpmcflags} -fPIC" | |
120 | CXXFLAGS="%{rpmcxxflags} -fPIC" | |
121 | %configure \ | |
122 | --includedir=%{_includedir}/rasdaman \ | |
123 | --libdir=%{_libdir}/rasdaman/lib \ | |
124 | %{!?with_java:--disable-java} \ | |
125 | --with-docs \ | |
126 | %{?with_hdf4:--with-hdf4} \ | |
127 | --with-logdir=/var/log/rasdaman \ | |
128 | %{?with_netcdf:--with-netcdf} | |
0dfd9d8a | 129 | %{__make} -j1 |
31f8b84d JB |
130 | |
131 | %install | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %{__make} install \ | |
135 | DESTDIR=$RPM_BUILD_ROOT | |
136 | ||
137 | # potential or real name conflicts | |
138 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/{create_db,ras_create_db}.sh | |
139 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/{insertppm,ras_insertppm} | |
140 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/{rview,rasview} | |
141 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/{update_db,ras_update_db}.sh | |
142 | # XXX: needs patch | |
143 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/labels.txt $RPM_BUILD_ROOT%{_datadir}/rasdaman | |
144 | ||
145 | install -d $RPM_BUILD_ROOT{%{_docdir},%{_examplesdir}} | |
146 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/rasdaman/doc $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} | |
147 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/rasdaman/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
148 | # package just PDFs, no MS DOCs | |
149 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/pdf/*.doc | |
150 | ||
151 | # provide "include" and "lib" inside %{_libdir}/rasdaman tree | |
152 | ln -sf %{_includedir}/rasdaman $RPM_BUILD_ROOT%{_libdir}/rasdaman/include | |
153 | ||
154 | # should(?) belong to log4j | |
155 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/log4j.properties | |
156 | # ??? | |
157 | %{__rm} $RPM_BUILD_ROOT%{_prefix}/.rviewrc | |
158 | %{__rm} $RPM_BUILD_ROOT/var/log/rasdaman/empty | |
159 | ||
160 | %clean | |
161 | rm -rf $RPM_BUILD_ROOT | |
162 | ||
163 | %post -p /sbin/ldconfig | |
164 | %postun -p /sbin/ldconfig | |
165 | ||
166 | %files | |
167 | %defattr(644,root,root,755) | |
168 | %attr(755,root,root) %{_bindir}/add_wms_service.sh | |
169 | %attr(755,root,root) %{_bindir}/drop_wms.sh | |
170 | %attr(755,root,root) %{_bindir}/fill_pyramid.sh | |
171 | %attr(755,root,root) %{_bindir}/fillpyramid | |
172 | %attr(755,root,root) %{_bindir}/init_wms.sh | |
173 | %attr(755,root,root) %{_bindir}/initpyramid | |
174 | %attr(755,root,root) %{_bindir}/petascope_insertdemo.sh | |
175 | %attr(755,root,root) %{_bindir}/ras_create_db.sh | |
176 | %attr(755,root,root) %{_bindir}/ras_insertppm | |
177 | %attr(755,root,root) %{_bindir}/ras_update_db.sh | |
178 | %attr(755,root,root) %{_bindir}/rascontrol | |
179 | %attr(755,root,root) %{_bindir}/rasdaman_insertdemo.sh | |
180 | %attr(755,root,root) %{_bindir}/rasdl | |
181 | %attr(755,root,root) %{_bindir}/raserase | |
182 | %attr(755,root,root) %{_bindir}/rasimport | |
183 | %attr(755,root,root) %{_bindir}/rasmgr | |
184 | %attr(755,root,root) %{_bindir}/raspasswd | |
185 | %attr(755,root,root) %{_bindir}/rasql | |
186 | %attr(755,root,root) %{_bindir}/rasserver | |
187 | %attr(755,root,root) %{_bindir}/rasview | |
188 | %attr(755,root,root) %{_bindir}/start_rasdaman.sh | |
189 | %attr(755,root,root) %{_bindir}/stop_rasdaman.sh | |
190 | %attr(755,root,root) %{_bindir}/update_petascopedb.sh | |
191 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rasmgr.conf | |
192 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/petascope.properties | |
193 | %dir %{_datadir}/rasdaman | |
194 | %{_datadir}/rasdaman/db_updates | |
195 | %{_datadir}/rasdaman/petascope | |
196 | %{_datadir}/rasdaman/raswct | |
197 | %{_datadir}/rasdaman/war | |
198 | %{_datadir}/rasdaman/errtxts | |
199 | %lang(de) %{_datadir}/rasdaman/errtxts_de | |
200 | %lang(en) %{_datadir}/rasdaman/errtxts_en | |
201 | %lang(fr) %{_datadir}/rasdaman/errtxts_fr | |
202 | %{_datadir}/rasdaman/labels.txt | |
203 | %dir /var/log/rasdaman | |
204 | ||
205 | %files devel | |
206 | %defattr(644,root,root,755) | |
207 | %{_includedir}/rasdaman | |
208 | %dir %{_libdir}/rasdaman | |
209 | %{_libdir}/rasdaman/include | |
210 | %dir %{_libdir}/rasdaman/lib | |
211 | %{_libdir}/rasdaman/lib/libcatalogmgr.a | |
212 | %{_libdir}/rasdaman/lib/libclientcomm.a | |
213 | %{_libdir}/rasdaman/lib/libcommline.a | |
214 | %{_libdir}/rasdaman/lib/libconversion.a | |
215 | %{_libdir}/rasdaman/lib/libhttpserver.a | |
216 | %{_libdir}/rasdaman/lib/libindexmgr.a | |
217 | %{_libdir}/rasdaman/lib/libmddmgr.a | |
218 | %{_libdir}/rasdaman/lib/libnetwork.a | |
219 | %{_libdir}/rasdaman/lib/libqlparser.a | |
220 | %{_libdir}/rasdaman/lib/libraslib.a | |
221 | %{_libdir}/rasdaman/lib/librasodmg.a | |
222 | %{_libdir}/rasdaman/lib/libreladminif.a | |
223 | %{_libdir}/rasdaman/lib/librelblobif.a | |
224 | %{_libdir}/rasdaman/lib/librelcatalogif.a | |
225 | %{_libdir}/rasdaman/lib/librelindexif.a | |
226 | %{_libdir}/rasdaman/lib/librelmddif.a | |
227 | %{_libdir}/rasdaman/lib/librelstorageif.a | |
228 | %{_libdir}/rasdaman/lib/libservercomm.a | |
229 | %{_libdir}/rasdaman/lib/libstoragemgr.a | |
230 | %{_libdir}/rasdaman/lib/libtilemgr.a | |
231 | ||
232 | %if 0 | |
233 | %files static | |
234 | %defattr(644,root,root,755) | |
235 | # TODO | |
236 | %endif | |
237 | ||
238 | %files doc | |
239 | %defattr(644,root,root,755) | |
240 | %{_docdir}/%{name}-%{version} | |
241 | %{_examplesdir}/%{name}-%{version} |