2 # - kill unaligned accesses (create_db,gpre_current,gbak_static,isql_static) on alpha
3 # - check if it's fixed now (RISC_ALIGNMENT is defined)
4 # - create classic server/super server subpackages and drop bcond
5 # (see firebird2 on debian how to do it)
7 # - make -devel not to pull so many deps:
8 #Firebird-devel-2.1.1.17910-2.i486 marks Firebird-2.1.1.17910-1.i486 (cap /usr/lib/interbase/bin)
9 # Firebird-2.1.1.17910-1.i486 marks rc-inetd-0.17-2.noarch (cap /etc/sysconfig/rc-inetd)
10 # rc-inetd-0.17-2.noarch marks inetd-0.17-12.i486 (cap inetdaemon)
11 # inetd-0.17-12.i486 marks tcp_wrappers-7.6-43.i486 (cap tcp_wrappers)
12 # tcp_wrappers-7.6-43.i486 marks libwrap-7.6-43.i486 (cap libwrap = 7.6-43)
13 #error: Firebird-2.1.1.17910-1.i486: req Firebird-lib = 2.1.1.17910-1 not found
14 #There are 6 packages to install (5 marked by dependencies):
17 %bcond_with ss # Super Server (standalone daemon instead of inetd service)
19 Summary: Firebird SQL Database Server and Client tools
20 Summary(de.UTF-8): Firebird - relationalen Open-Source- Datenbankmanagementsystems
21 Summary(pl.UTF-8): Firebird - serwer baz danych SQL oraz narzędzia klienckie
23 # FirebirdCS/FirebirdSS (Classic Server/Super Server)?
26 License: Interbase Public License 1.0, Initial Developer's Public License 1.0
27 Group: Applications/Databases
28 Source0: http://dl.sourceforge.net/firebird/Firebird-%{version}-0.tar.bz2
29 # Source0-md5: c8bed24245440cb21b9c4fe16aae70bb
30 Source1: http://www.firebirdsql.org/pdfmanual/Firebird-2.1-QuickStart.pdf
31 # Source1-md5: 676e5b294a04e3cd12b9298a776e19eb
32 # distfiles refuses this, would require some audit to allow '('/')' chars
33 #Source2: http://www.firebirdsql.org/pdfmanual/Using-Firebird_(wip).pdf
34 ## Source2-md5: 9eb90583c200bdd7292a80ecc1df1178
35 Source3: http://www.firebirdsql.org/pdfmanual/Firebird-Null-Guide.pdf
36 # Source3-md5: d1f8ba75fe3bb9eb9d203ce3f82a1a1a
37 Source4: http://www.firebirdsql.org/pdfmanual/Firebird-Generator-Guide.pdf
38 # Source4-md5: 44e7568ef477072a8ad5f381c3e12a75
39 Source5: http://www.firebirdsql.org/pdfmanual/MSSQL-to-Firebird.pdf
40 # Source5-md5: 1bd4a168e550910fc899e2aa125d83a3
41 Source6: http://www.firebirdsql.org/pdfmanual/Firebird-nbackup.pdf
42 # Source6-md5: 7ef8a8b9a899d06bec2a5da0bb5fea0e
43 Source7: http://www.firebirdsql.org/pdfmanual/Firebird-Utils-WIP.pdf
44 # Source7-md5: 39b9a4f3c9d9e27d985e9277ae163ceb
45 Source8: http://www.firebirdnews.org/docs/fb2min.pdf
46 # Source8-md5: ebac312c0afbe97b1850bdc74c553c28
47 Source9: http://www.firebirdsql.org/doc/contrib/fb_2_0_errorcodes.pdf
48 # Source9-md5: 2acf2ff63c4ba3a1c590989e19bb253e
49 Source100: firebird.init
50 Source101: firebird.sysconfig
51 Source102: firebird.inetd
52 Patch0: %{name}-chmod.patch
53 Patch1: %{name}-editline.patch
54 Patch2: %{name}-va.patch
55 Patch3: %{name}-morearchs.patch
56 Patch4: %{name}-FHS.patch
57 URL: http://www.firebirdsql.org/
58 BuildRequires: autoconf >= 2.56
59 BuildRequires: automake
61 BuildRequires: libedit-devel
62 BuildRequires: libicu-devel
63 BuildRequires: libstdc++-devel
64 BuildRequires: libtool
65 BuildRequires: ncurses-devel
66 BuildRequires: psmisc >= 22.5-2
67 BuildRequires: rpmbuild(macros) >= 1.268
68 Requires: %{name}-lib = %{version}-%{release}
70 Requires(post,preun): /sbin/chkconfig
73 # official ports are x86, x86_64, ppc, sparc, arm, mips/mipsel, ia64
74 # alpha is added in morearchs patch
75 # see morearchs patch if you want more
76 ExclusiveArch: %{ix86} %{x8664} arm ia64 mips mipsel ppc sparc sparcv9 alpha
77 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
79 %define ibdir %{_libdir}/interbase
80 %define specflags -fno-strict-aliasing
81 %define debugcflags -O1 -g -Wall -fno-strict-aliasing
84 Firebird is a powerful, high-performance relational database designed
85 to be embedded into applications on multiple platforms.
87 %description -l pl.UTF-8
88 Firebird jest potężnym, wysoko wydajnym systemem relacyjnych baz
89 danych zaprojektowanym do osadzania w aplikacjach na wielu
92 %description -l de.UTF-8
93 Firebird ist der Open-Source-Spin-Off des weiterhin kommerziell von
94 Borland vertriebenen relationalen Datenbankmanagementsystemes
95 InterBase. Die Abspaltung erfolgte im Jahre 2000 als kurz vor Freigabe
96 der Version 6 des kommerziellen Vorgängers Interbase bei Borland
97 ernsthafte Überlegungen im Gange waren, die Weiterentwicklung
100 Aus Interbase 6.0 wurde Firebird 1.0, wobei dies als eine
101 Bugfix-Version mit nur wenigen Erweiterungen angesehen werden kann.
102 Eine Erweiterung von Firebird 1.0 ist der 64-Bit File I/O, so dass
103 auch Datenbankdateien über 2GB erzeugt werden können.
106 Summary: Firebird shared library
107 Summary(pl.UTF-8): Biblioteka współdzielona Firebird
111 Firebird shared library (libgds).
113 %description lib -l pl.UTF-8
114 Biblioteka współdzielona Firebird (libgds).
117 Summary: Header files for Firebird library
118 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Firebird
119 Group: Development/Libraries
120 Requires: %{name}-lib = %{version}-%{release}
121 Requires: libstdc++-devel
124 Header files for Firebird library.
126 %description devel -l pl.UTF-8
127 Pliki nagłówkowe biblioteki Firebird.
130 Summary: Static Firebird library
131 Summary(pl.UTF-8): Statyczna biblioteka Firebird
132 Group: Development/Libraries
133 Requires: %{name}-devel = %{version}-%{release}
136 Static Firebird library (libgds).
138 %description static -l pl.UTF-8
139 Statyczna biblioteka Firebird (libgds).
142 Summary: Extensive InterBase and Firebird documentation
143 Summary(pl.UTF-8): Obszerna dokumentacja do baz InterBase i Firebird
147 Extensive InterBase and Firebird documentation.
149 %description doc -l pl.UTF-8
150 Obszerna dokumentacja do baz InterBase i Firebird.
153 %setup -q -n Firebird-%{version}-0
161 rm -f src/dsql/parse.cpp
164 cp %{SOURCE1} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} docs
175 --with-system-editline \
177 %{?with_ss:--enable-superserver} \
179 %{?debug:--enable-debug}
185 %ifarch sparc sparcv9
195 PROD_FLAGS="%{rpmcflags} -DNDEBUG -DLINUX -pipe -MMD -fPIC $DARCH" \
196 DEV_FLAGS="%{rpmcflags} -DLINUX -DDEBUG_GDS_ALLOC -pipe -MMD -fPIC -Wall -Wno-switch $DARCH" \
197 LIB_LINK_RPATH_LINE= \
198 LIB_CLIENT_LINK_OPTIONS="-lpthread"
200 # fb_lock_mgr is started during build - try to stop it (if /proc is mounted...)
201 fuser -k gen/firebird/bin/fb_lock_mgr 2>/dev/null || :
204 rm -rf $RPM_BUILD_ROOT
206 %{__make} -C src -f ../gen/Makefile.install buildImageDir
208 install -d $RPM_BUILD_ROOT/etc/{firebird,rc.d/init.d,sysconfig/rc-inetd}
209 install -d $RPM_BUILD_ROOT{%{ibdir},%{_libdir},%{_includedir}} \
210 install -d $RPM_BUILD_ROOT/var/{log,lib/firebird} \
211 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
213 install gen/firebird/lib/libfb*.a $RPM_BUILD_ROOT%{_libdir}
214 install gen/firebird/lib/libfbembed.so* $RPM_BUILD_ROOT%{_libdir}
215 touch $RPM_BUILD_ROOT/var/log/firebird.log
217 cd gen/buildroot/%{ibdir}
218 install security2.fdb $RPM_BUILD_ROOT/var/lib/firebird
219 install *.conf $RPM_BUILD_ROOT%{_sysconfdir}/firebird
220 install include/* $RPM_BUILD_ROOT%{_includedir}
221 cp -af UDF bin help intl firebird.msg $RPM_BUILD_ROOT%{ibdir}
222 cp -df lib/* $RPM_BUILD_ROOT%{_libdir}
223 cp -rf examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
226 ln -sf libfbclient.so.2 $RPM_BUILD_ROOT%{_libdir}/libgds.so.0
227 ln -sf libfbclient.so.2 $RPM_BUILD_ROOT%{_libdir}/libgds.so
229 ln -sf libfbstatic.a $RPM_BUILD_ROOT%{_libdir}/libgds.a
232 install %{SOURCE100} $RPM_BUILD_ROOT/etc/rc.d/init.d/firebird
233 install %{SOURCE101} $RPM_BUILD_ROOT/etc/sysconfig/firebird
235 install %{SOURCE102} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/firebird
239 rm -rf $RPM_BUILD_ROOT
242 %groupadd -g 145 firebird
243 %useradd -u 145 -d %{ibdir} -s /bin/sh -g firebird -c "Firebird Server" firebird
247 /sbin/chkconfig --add firebird
248 %service firebird restart
251 if [ "$1" = "0" ]; then
252 %service firebird stop
253 /sbin/chkconfig --del firebird
258 if [ "$1" = "0" ]; then
260 %groupremove firebird
263 %post lib -p /sbin/ldconfig
264 %postun lib -p /sbin/ldconfig
266 %triggerpostun -- %{name} < 2.1.1.17910-2
267 if [ -f %{ibdir}/aliases.conf.rpmsave ]; then
268 mv -f %{ibdir}/aliases.conf.rpmsave %{_sysconfdir}/firebird/aliases.conf
270 if [ -f %{ibdir}/firebird.conf.rpmsave ]; then
271 mv -f %{ibdir}/firebird.conf.rpmsave %{_sysconfdir}/firebird/firebird.conf
273 if [ -f %{ibdir}/security2.fdb.rpmsave ]; then
274 mv -f %{ibdir}/security2.fdb.rpmsave /var/lib/firebird/security2.fdb
278 %defattr(644,root,root,755)
279 %doc doc/{license,sql.extensions,Firebird_conf.txt,README.user*,WhatsNew,fb2-todo.txt}
280 %dir %{_sysconfdir}/firebird
281 %attr(640,root,firebird) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/firebird/*.conf
282 %attr(755,root,root) %{_libdir}/libib_util.so
284 %attr(755,root,root) %{ibdir}/UDF
285 %attr(755,root,root) %{ibdir}/bin
286 %exclude %{ibdir}/bin/fb_config
288 %dir %attr(770,root,firebird) %{ibdir}/intl
289 %attr(755,root,root) %{ibdir}/intl/fbintl
290 # should it be moved to /etc and marked as config?
291 %{ibdir}/intl/fbintl.conf
292 %{ibdir}/firebird.msg
293 %dir %attr(770,root,firebird) /var/lib/firebird
294 %attr(660,root,firebird) %config(noreplace) %verify(not md5 mtime size) /var/lib/firebird/security2.fdb
295 %attr(660,root,firebird) %config(noreplace) %verify(not md5 mtime size) /var/log/firebird.log
298 %attr(754,root,root) /etc/rc.d/init.d/firebird
299 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/firebird
301 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/firebird
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/libfbclient.so.*.*.*
307 %attr(755,root,root) %ghost %{_libdir}/libfbclient.so.2
308 %attr(755,root,root) %{_libdir}/libfbembed.so.*.*.*
309 %attr(755,root,root) %ghost %{_libdir}/libfbembed.so.2.1
311 # InterBase/old Firebird compatibility symlinks
312 %attr(755,root,root) %{_libdir}/libgds.so.0
313 # needed here - original libgds.so.0 didn't have soname, so some old
314 # (possibly not open-source) apps may be linked with libgds.so
315 %attr(755,root,root) %{_libdir}/libgds.so
318 %defattr(644,root,root,755)
319 %attr(755,root,root) %{_libdir}/libfbclient.so
320 %attr(755,root,root) %{_libdir}/libfbembed.so
321 %attr(755,root,root) %{ibdir}/bin/fb_config
322 %{_includedir}/ib_util.h
323 %{_includedir}/ibase.h
324 %{_includedir}/iberror.h
325 %{_includedir}/perf.h
326 %{_examplesdir}/%{name}-%{version}
329 %defattr(644,root,root,755)
330 %{_libdir}/libfbstatic.a
335 %defattr(644,root,root,755)