]> git.pld-linux.org Git - packages/bes.git/blob - bes.spec
6e45a199c866235fb04a627f18408480ecfc167a
[packages/bes.git] / bes.spec
1 Summary:        OPeNDAP Back End Server software framework
2 Summary(pl.UTF-8):      Szkielet OPeNDAP Back End Server (serwera backendu OPeNDAP)
3 Name:           bes
4 Version:        3.13.2
5 Release:        1
6 License:        LGPL v2.1+
7 Group:          Libraries
8 Source0:        http://www.opendap.org/pub/source/%{name}-%{version}.tar.gz
9 # Source0-md5:  bef8f57a6c0be8798b8dd09462e5526e
10 Patch0:         %{name}-missing.patch
11 Patch1:         %{name}-gdal.patch
12 URL:            http://opendap.org/
13 BuildRequires:  autoconf >= 2.61
14 BuildRequires:  automake >= 1:1.10
15 BuildRequires:  bison
16 BuildRequires:  bzip2-devel
17 %{?with_tests:BuildRequires:    cppunit-devel >= 1.12.0}
18 BuildRequires:  gdal-devel >= 1.10.0
19 BuildRequires:  libdap-devel >= 3.12.0
20 BuildRequires:  libstdc++-devel
21 BuildRequires:  libtool >= 2:1.5
22 BuildRequires:  libwrap-devel
23 BuildRequires:  libxml2-devel >= 1:2.6.16
24 BuildRequires:  openssl-devel
25 BuildRequires:  pkgconfig
26 BuildRequires:  readline-devel
27 BuildRequires:  sed >= 4.0
28 BuildRequires:  zlib-devel
29 Requires(pre):  /bin/id
30 Requires(pre):  /usr/bin/getgid
31 Requires(pre):  /usr/sbin/groupadd
32 Requires(pre):  /usr/sbin/useradd
33 Requires(postun):       /usr/sbin/groupdel
34 Requires(postun):       /usr/sbin/userdel
35 Requires:       libxml2 >= 1:2.6.16
36 Requires:       %{name}-libs = %{version}-%{release}
37 Provides:       group(bes)
38 Provides:       user(bes)
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %description
42 BES is a high-performance back-end server software framework for
43 OPeNDAP that allows data providers more flexibility in providing end 
44 users views of their data. The current OPeNDAP data objects (DAS, DDS,
45 and DataDDS) are still supported, but now data providers can add new
46 data views, provide new functionality, and new features to their end
47 users through the BES modular design. Providers can add new data
48 handlers, new data objects/views, the ability to define views with
49 constraints and aggregation, the ability to add reporting mechanisms,
50 initialization hooks, and more.
51
52 %description -l pl.UTF-8
53 BES to szkielet wysoko wydajnego serwera backendu dla OPeNDAP,
54 pozwalający na większą elastyczność dostarczycieli danych (providers)
55 w udostępnianiu widoków danych dla użytkowników końcowych. Obecne
56 obiekty danych OPeNDAP (DAS, DDS i DataDDS) są nadal obsługiwane, ale
57 teraz dostarczyciele danych mogą dodawać nowe widoki danych, zapewniać
58 nową funkcjonalność oraz nowe możliwości dla użytkowników końcowych
59 poprzez modularną budowę BES. Dostarczyciele mogą dodawać nowe
60 procedury obsługujące (handlers), nowe obiekty/widoki danych,
61 możliwość definiowania widoków z ograniczeniami i agregacją, możliwość
62 dodawania mechanizmów raportujących, uchwytów inicjujących itd.
63
64 %package libs
65 Summary:        Shared OPeNDAP Back End Server libraries
66 Summary(pl.UTF-8):      Biblioteki współdzielone serwera backendu OPeNDAP
67 Group:          Libraries
68 Requires:       libdap >= 3.12.0
69
70 %description libs
71 Shared OPeNDAP Back End Server libraries.
72
73 %description libs -l pl.UTF-8
74 Biblioteki współdzielone serwera backendu OPeNDAP.
75
76 %package devel
77 Summary:        Header files for OPeNDAP Back End Server libraries
78 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek serwera backendu OPeNDAP
79 Group:          Development/Libraries
80 Requires:       %{name}-libs = %{version}-%{release}
81 Requires:       bzip2-devel
82 Requires:       libstdc++-devel
83 Requires:       openssl-devel
84 Requires:       zlib-devel
85
86 %description devel
87 Header files for OPeNDAP Back End Server libraries.
88
89 %description devel -l pl.UTF-8
90 Pliki nagłówkowe bibliotek serwera backendu OPeNDAP.
91
92 %package static
93 Summary:        Static OPeNDAP Back End Server libraries
94 Summary(pl.UTF-8):      Statyczne biblioteki serwera backendu OPeNDAP
95 Group:          Development/Libraries
96 Requires:       %{name}-devel = %{version}-%{release}
97
98 %description static
99 Static OPeNDAP Back End Server libraries.
100
101 %description static -l pl.UTF-8
102 Statyczne biblioteki serwera backendu OPeNDAP.
103
104 %prep
105 %setup -q
106 %patch0 -p1
107 %patch1 -p1
108
109 %{__sed} -i \
110         -e 's:=/tmp:=/var/cache/bes:' \
111         -e 's:=.*/bes\.log:=/var/log/bes/bes.log:' \
112         -e 's:=.*/lib/bes:=%{_libdir}/bes:' \
113         -e 's:=.*/share/bes:=%{_datadir}/bes:' \
114         -e 's:=.*/share/hyrax:=%{_datadir}/hyrax:' \
115         -e 's:=/full/path/to/serverside/certificate/file.pem:=/etc/pki/bes/cacerts/file.pem:' \
116         -e 's:=/full/path/to/serverside/key/file.pem:=/etc/pki/bes/public/file.pem:' \
117         -e 's:=/full/path/to/clientside/certificate/file.pem:=/etc/pki/bes/cacerts/file.pem:' \
118         -e 's:=/full/path/to/clientside/key/file.pem:=/etc/pki/bes/public/file.pem:' \
119         -e 's:=user_name:=bes:' \
120         -e 's:=group_name:=bes:' \
121         dispatch/bes/bes.conf
122
123 %build
124 %{__libtoolize}
125 %{__aclocal} -I conf
126 %{__autoconf}
127 %{__autoheader}
128 %{__automake}
129 %configure \
130         --with-libwrap
131 %{__make}
132
133 %{?with_tests:%{__make} check}
134
135 %install
136 rm -rf $RPM_BUILD_ROOT
137 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/pki/bes/{cacerts,public}} \
138         $RPM_BUILD_ROOT{/var/cache/bes,/var/log/bes} \
139         $RPM_BUILD_ROOT%{_datadir}/hyrax/data
140
141 %{__make} -j1 install \
142         DESTDIR=$RPM_BUILD_ROOT
143
144 %{__mv} $RPM_BUILD_ROOT%{_bindir}/besd $RPM_BUILD_ROOT/etc/rc.d/init.d
145
146 %{__rm} $RPM_BUILD_ROOT%{_libdir}/bes/*.{la,a}
147 # obsoleted by pkg-config
148 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbes*.la
149
150 install -d $RPM_BUILD_ROOT%{systemdtmpfilesdir}
151 cat >$RPM_BUILD_ROOT%{systemdtmpfilesdir}/bes.conf <<EOF
152 d /var/run/bes 0775 bes bes -
153 EOF
154
155 %clean
156 rm -rf $RPM_BUILD_ROOT
157
158 %pre
159 %groupadd -g 307 bes
160 %useradd -u 307 -d /var/cache/bes -g bes -s /bin/false -c "BES daemon" bes
161
162 %postun
163 if [ "$1" = "0" ]; then
164         %userremove bes
165         %groupremove bes
166 fi
167
168 %post   libs -p /sbin/ldconfig
169 %postun libs -p /sbin/ldconfig
170
171 %files
172 %defattr(644,root,root,755)
173 %attr(755,root,root) %{_bindir}/bescmdln
174 %attr(755,root,root) %{_bindir}/besctl
175 %attr(755,root,root) %{_bindir}/besdaemon
176 %attr(755,root,root) %{_bindir}/beslistener
177 %attr(755,root,root) %{_bindir}/besstandalone
178 %attr(755,root,root) %{_bindir}/hyraxctl
179 %dir %{_sysconfdir}/bes/modules
180 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/dap.conf
181 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/modules/functions.conf
182 %dir /etc/pki/bes
183 %dir /etc/pki/bes/cacerts
184 %dir /etc/pki/bes/public
185 %attr(754,root,root) /etc/rc.d/init.d/besd
186 %dir %{_datadir}/hyrax
187 %dir %{_datadir}/hyrax/data
188 %attr(775,bes,bes) %dir /var/cache/bes
189 %attr(775,bes,bes) %dir /var/log/bes
190 %attr(775,bes,bes) %dir /var/run/bes
191 %{systemdtmpfilesdir}/bes.conf
192
193 %files libs
194 %defattr(644,root,root,755)
195 %doc NEWS README*
196 %attr(755,root,root) %{_libdir}/libbes_dispatch.so.*.*.*
197 %attr(755,root,root) %ghost %{_libdir}/libbes_dispatch.so.8
198 %attr(755,root,root) %{_libdir}/libbes_ppt.so.*.*.*
199 %attr(755,root,root) %ghost %{_libdir}/libbes_ppt.so.4
200 %attr(755,root,root) %{_libdir}/libbes_xml_command.so.*.*.*
201 %attr(755,root,root) %ghost %{_libdir}/libbes_xml_command.so.1
202 %dir %{_libdir}/bes
203 %attr(755,root,root) %{_libdir}/bes/libdap_module.so
204 %attr(755,root,root) %{_libdir}/bes/libdap_xml_module.so
205 %attr(755,root,root) %{_libdir}/bes/libdapreader_module.so
206 %attr(755,root,root) %{_libdir}/bes/libfunctions_module.so
207 %dir %{_sysconfdir}/bes
208 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bes/bes.conf
209 %dir %{_datadir}/bes
210 %{_datadir}/bes/bes_help.*
211 %{_datadir}/bes/dap_help.*
212
213 %files devel
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_bindir}/bes-config
216 %attr(755,root,root) %{_bindir}/bes-config-pkgconfig
217 %attr(755,root,root) %{_bindir}/besCreateModule
218 %attr(755,root,root) %{_libdir}/libbes_dispatch.so
219 %attr(755,root,root) %{_libdir}/libbes_ppt.so
220 %attr(755,root,root) %{_libdir}/libbes_xml_command.so
221 %{_includedir}/bes
222 %{_pkgconfigdir}/bes_dispatch.pc
223 %{_pkgconfigdir}/bes_ppt.pc
224 %{_pkgconfigdir}/bes_xml_command.pc
225 %{_aclocaldir}/bes.m4
226 %{_datadir}/bes/templates
227
228 %files static
229 %defattr(644,root,root,755)
230 %{_libdir}/libbes_dispatch.a
231 %{_libdir}/libbes_ppt.a
232 %{_libdir}/libbes_xml_command.a
This page took 0.076211 seconds and 2 git commands to generate.