1 Summary: Firebird SQL Database Server and Client tools
2 Summary(pl): Firebird - serwer baz danych SQL oraz narzêdzia klienckie
4 # FirebirdCS/FirebirdSS (Classic Server/Super Server)?
7 License: Interbase Public License 1.0
8 Group: Applications/Databases
9 Source0: ftp://ftp.sourceforge.net/pub/sourceforge/firebird/%{name}-%{version}.src.tar.gz
10 Source1: ftp://ftp.sourceforge.net/pub/sourceforge/firebird/bootkit-%{version}.tar.gz
11 Source2: http://www.ibphoenix.com/downloads/60All.zip
12 Source3: http://www.ibphoenix.com/downloads/ib_4_0_docs.tar.gz
13 Source4: http://www.ibphoenix.com/downloads/isc_docs.zip
14 # dirty "fixes" for missing error contants and conflict with isql from unixODBC
15 # (gds__bad_{limit,skip}_param are defined in supplied codes.h, but removed
16 # by codes.h regeneration from messages.gbak(?))
17 Patch0: %{name}-fix.patch
18 URL: http://firebird.sourceforge.net/
20 Requires: %{name}-lib = %{version}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define ibdir %{_libdir}/interbase
26 Firebird is a powerful, high-performance relational database designed
27 to be embedded into applications on multiple platforms.
30 Firebird jest potê¿nym, wysoko wydajnym systemem relacyjnych baz
31 danych zaprojektowanym do osadzania w aplikacjach na wielu
35 Summary: Firebird shared library
36 Summary(pl): Biblioteka wspó³dzielona Firebird
40 Firebird shared library (libgds).
42 %description lib -l pl
43 Biblioteka wspó³dzielona Firebird (libgds).
46 Summary: Header files for Firebird library
47 Summary(pl): Pliki nag³ówkowe biblioteki Firebird
48 Group: Development/Libraries
49 Requires: %{name}-lib = %{version}
52 Header files for Firebird library.
54 %description devel -l pl
55 Pliki nag³ówkowe biblioteki Firebird.
58 Summary: Static Firebird library
59 Summary(pl): Statyczna biblioteka Firebird
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}
64 Static Firebird library (libgds).
66 %description static -l pl
67 Statyczna biblioteka Firebird (libgds).
70 Summary: Extensive InterBase and Firebird documentation
71 Summary(pl): Obszerna dokumentacja do baz InterBase i Firebird
75 Extensive InterBase and Firebird documentation.
77 %description doc -l pl
78 Obszerna dokumentacja do baz InterBase i Firebird.
81 %setup -q -n firebird-%{version} -a1
84 install -d docs/{IB3.0,IB4.0,IB6.0}
85 unzip -q %{SOURCE2} -d docs/IB6.0
86 tar xzf %{SOURCE3} -C docs/IB4.0
87 unzip -q %{SOURCE4} -d docs/IB3.0
88 # standardize extension, also avoids gzipping by compress-doc
89 mv -f docs/IB6.0/LANGREF.{PDF,pdf}
92 INTERBASE=/usr/lib/interbase; export INTERBASE
93 echo 'y' | ./Configure.sh PROD
94 . ./Configure_SetupEnv.sh
98 PROD_CFLAGS="%{rpmcflags} -fpic -DFLINTSTONE"
100 # classic/super - what's the difference?
101 #%{__make} super_firebird
103 #-Isource/interbase/include"
106 rm -rf $RPM_BUILD_ROOT
107 INTERBASE=/usr/lib/interbase; export INTERBASE
108 . ./Configure_SetupEnv.sh
110 %{__make} buildclassicimage -f firebird/install/linux/Makefile
112 install -d $RPM_BUILD_ROOT{%{ibdir},%{_libdir},%{_includedir}} \
113 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
114 cd buildroot/opt/interbase
116 cp -af UDF bin help intl interbase.msg isc4.gdb isc_config \
117 $RPM_BUILD_ROOT%{ibdir}
118 install include/* $RPM_BUILD_ROOT%{_includedir}
119 install lib/* $RPM_BUILD_ROOT%{_libdir}
120 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
123 rm -rf $RPM_BUILD_ROOT
126 %defattr(644,root,root,755)
127 %doc builds_win32/install/{*License,Readme}.txt
128 %attr(755,root,root) %{_libdir}/libib_util.so
130 %attr(755,root,root) %{ibdir}/UDF
131 %attr(755,root,root) %{ibdir}/bin
134 %{ibdir}/interbase.msg
135 # following two files should be in /var and /etc resp.?
140 %defattr(644,root,root,755)
141 # .so link needed here - library doesn't have SONAME
142 %attr(755,root,root) %{_libdir}/libgds.so*
145 %defattr(644,root,root,755)
147 %{_examplesdir}/%{name}-%{version}
150 %defattr(644,root,root,755)
154 %defattr(644,root,root,755)