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 Source3: http://www.ibphoenix.com/downloads/ib_4_0_docs.tar.gz
15 # Source3-md5: f4176d5dec952ee774bb8ee74c1f715d
16 Source4: http://www.ibphoenix.com/downloads/isc_docs.zip
17 # dirty "fixes" for missing error contants and conflict with isql from unixODBC
18 # (gds__bad_{limit,skip}_param are defined in supplied codes.h, but removed
19 # by codes.h regeneration from messages.gbak(?))
20 Patch0: %{name}-fix.patch
21 URL: http://firebird.sourceforge.net/
23 Requires: %{name}-lib = %{version}
24 # see firebird-*/jrd/{common.h,gds.h,ibase.h} if you want to add support for more
25 ExclusiveArch: %{ix86}
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define ibdir %{_libdir}/interbase
31 Firebird is a powerful, high-performance relational database designed
32 to be embedded into applications on multiple platforms.
35 Firebird jest potê¿nym, wysoko wydajnym systemem relacyjnych baz
36 danych zaprojektowanym do osadzania w aplikacjach na wielu
40 Summary: Firebird shared library
41 Summary(pl): Biblioteka wspó³dzielona Firebird
45 Firebird shared library (libgds).
47 %description lib -l pl
48 Biblioteka wspó³dzielona Firebird (libgds).
51 Summary: Header files for Firebird library
52 Summary(pl): Pliki nag³ówkowe biblioteki Firebird
53 Group: Development/Libraries
54 Requires: %{name}-lib = %{version}
57 Header files for Firebird library.
59 %description devel -l pl
60 Pliki nag³ówkowe biblioteki Firebird.
63 Summary: Static Firebird library
64 Summary(pl): Statyczna biblioteka Firebird
65 Group: Development/Libraries
66 Requires: %{name}-devel = %{version}
69 Static Firebird library (libgds).
71 %description static -l pl
72 Statyczna biblioteka Firebird (libgds).
75 Summary: Extensive InterBase and Firebird documentation
76 Summary(pl): Obszerna dokumentacja do baz InterBase i Firebird
80 Extensive InterBase and Firebird documentation.
82 %description doc -l pl
83 Obszerna dokumentacja do baz InterBase i Firebird.
86 %setup -q -n firebird-%{version} -a1
89 install -d docs/{IB3.0,IB4.0,IB6.0}
90 unzip -q %{SOURCE2} -d docs/IB6.0
91 tar xzf %{SOURCE3} -C docs/IB4.0
92 unzip -q %{SOURCE4} -d docs/IB3.0
93 # standardize extension, also avoids gzipping by compress-doc
94 mv -f docs/IB6.0/LANGREF.{PDF,pdf}
97 INTERBASE=/usr/lib/interbase; export INTERBASE
98 echo 'y' | ./Configure.sh PROD
99 . ./Configure_SetupEnv.sh
103 PROD_CFLAGS="%{rpmcflags} -fpic -DFLINTSTONE"
105 # classic/super - what's the difference?
106 #%%{__make} super_firebird
108 #-Isource/interbase/include"
111 rm -rf $RPM_BUILD_ROOT
112 INTERBASE=/usr/lib/interbase; export INTERBASE
113 . ./Configure_SetupEnv.sh
115 %{__make} buildclassicimage -f firebird/install/linux/Makefile
117 install -d $RPM_BUILD_ROOT{%{ibdir},%{_libdir},%{_includedir}} \
118 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
119 cd buildroot/opt/interbase
121 cp -af UDF bin help intl interbase.msg isc4.gdb isc_config \
122 $RPM_BUILD_ROOT%{ibdir}
123 install include/* $RPM_BUILD_ROOT%{_includedir}
124 install lib/* $RPM_BUILD_ROOT%{_libdir}
125 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
128 rm -rf $RPM_BUILD_ROOT
131 %defattr(644,root,root,755)
132 %doc builds_win32/install/{*License,Readme}.txt
133 %attr(755,root,root) %{_libdir}/libib_util.so
135 %attr(755,root,root) %{ibdir}/UDF
136 %attr(755,root,root) %{ibdir}/bin
139 %{ibdir}/interbase.msg
140 # following two files should be in /var and /etc resp.?
145 %defattr(644,root,root,755)
146 # .so link needed here - library doesn't have SONAME
147 %attr(755,root,root) %{_libdir}/libgds.so*
150 %defattr(644,root,root,755)
152 %{_examplesdir}/%{name}-%{version}
155 %defattr(644,root,root,755)
159 %defattr(644,root,root,755)