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