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: http://dl.sourceforge.net/firebird/%{name}-%{version}.src.tar.gz
10 # Source0-md5: 8ca9aac6cfe2670659d00bb2decb3456
11 Source1: http://dl.sourceforge.net/firebird/bootkit-%{version}.tar.gz
12 # Source1-md5: 3ce1d058d568242843fa0f92d5ae7018
13 Source2: http://www.ibphoenix.com/downloads/60All.zip
14 # Source2-md5: f86a132012361cd4ae88563105741a4c
15 Source3: http://www.ibphoenix.com/downloads/ib_4_0_docs.tar.gz
16 # Source3-md5: f4176d5dec952ee774bb8ee74c1f715d
17 Source4: http://www.ibphoenix.com/downloads/isc_docs.zip
18 # Source4-md5: 66eef71c188215d10988788282c014a7
19 # dirty "fixes" for missing error contants and conflict with isql from unixODBC
20 # (gds__bad_{limit,skip}_param are defined in supplied codes.h, but removed
21 # by codes.h regeneration from messages.gbak(?))
22 Patch0: %{name}-fix.patch
23 Patch1: %{name}-gcc33.patch
24 Patch2: %{name}-link.patch
25 Patch3: %{name}-chmod.patch
26 Patch4: %{name}-env-overflows.patch
27 URL: http://firebird.sourceforge.net/
29 Requires: %{name}-lib = %{version}-%{release}
30 # see firebird-*/jrd/{common.h,gds.h,ibase.h} if you want to add support for more
31 ExclusiveArch: %{ix86}
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define ibdir %{_libdir}/interbase
37 Firebird is a powerful, high-performance relational database designed
38 to be embedded into applications on multiple platforms.
41 Firebird jest potê¿nym, wysoko wydajnym systemem relacyjnych baz
42 danych zaprojektowanym do osadzania w aplikacjach na wielu
46 Summary: Firebird shared library
47 Summary(pl): Biblioteka wspó³dzielona Firebird
51 Firebird shared library (libgds).
53 %description lib -l pl
54 Biblioteka wspó³dzielona Firebird (libgds).
57 Summary: Header files for Firebird library
58 Summary(pl): Pliki nag³ówkowe biblioteki Firebird
59 Group: Development/Libraries
60 Requires: %{name}-lib = %{version}-%{release}
63 Header files for Firebird library.
65 %description devel -l pl
66 Pliki nag³ówkowe biblioteki Firebird.
69 Summary: Static Firebird library
70 Summary(pl): Statyczna biblioteka Firebird
71 Group: Development/Libraries
72 Requires: %{name}-devel = %{version}-%{release}
75 Static Firebird library (libgds).
77 %description static -l pl
78 Statyczna biblioteka Firebird (libgds).
81 Summary: Extensive InterBase and Firebird documentation
82 Summary(pl): Obszerna dokumentacja do baz InterBase i Firebird
86 Extensive InterBase and Firebird documentation.
88 %description doc -l pl
89 Obszerna dokumentacja do baz InterBase i Firebird.
92 %setup -q -n firebird-%{version} -a1
99 install -d docs/{IB3.0,IB4.0,IB6.0}
100 unzip -q %{SOURCE2} -d docs/IB6.0
101 tar xzf %{SOURCE3} -C docs/IB4.0
102 unzip -q %{SOURCE4} -d docs/IB3.0
103 # standardize extension, also avoids gzipping by compress-doc
104 mv -f docs/IB6.0/LANGREF.{PDF,pdf}
107 INTERBASE=/usr/lib/interbase; export INTERBASE
108 echo 'y' | ./Configure.sh PROD
109 . ./Configure_SetupEnv.sh
113 PROD_CFLAGS="%{rpmcflags} -fpic -DFLINTSTONE"
115 # classic/super - what's the difference?
116 #%%{__make} super_firebird
118 #-Isource/interbase/include"
121 rm -rf $RPM_BUILD_ROOT
122 INTERBASE=/usr/lib/interbase; export INTERBASE
123 . ./Configure_SetupEnv.sh
125 %{__make} buildclassicimage -f firebird/install/linux/Makefile
127 install -d $RPM_BUILD_ROOT{%{ibdir},%{_libdir},%{_includedir}} \
128 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
129 cd buildroot/opt/interbase
131 cp -af UDF bin help intl interbase.msg isc4.gdb isc_config \
132 $RPM_BUILD_ROOT%{ibdir}
133 install include/* $RPM_BUILD_ROOT%{_includedir}
134 install lib/* $RPM_BUILD_ROOT%{_libdir}
135 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
138 rm -rf $RPM_BUILD_ROOT
141 %defattr(644,root,root,755)
142 %doc builds_win32/install/{*License,Readme}.txt
143 %attr(755,root,root) %{_libdir}/libib_util.so
145 %attr(755,root,root) %{ibdir}/UDF
146 %attr(755,root,root) %{ibdir}/bin
149 %{ibdir}/interbase.msg
150 # following two files should be in /var and /etc resp.?
155 %defattr(644,root,root,755)
156 # .so link needed here - library doesn't have SONAME
157 %attr(755,root,root) %{_libdir}/libgds.so*
160 %defattr(644,root,root,755)
162 %{_examplesdir}/%{name}-%{version}
165 %defattr(644,root,root,755)
169 %defattr(644,root,root,755)