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 # missing isc4.gbak generated by: make isql || : ; make gdef gsec secutity_db
15 Source5: %{name}-isc4.gbak
16 # missing save.c generated by gpre after building pixar w/o save.o and then other stuff
17 Patch0: %{name}-bootkit-missing.patch
18 # dirty "fixes" for missing error contants and conflict with isql from unixODBC
19 Patch1: %{name}-fix.patch
20 # ksh supports only [! ] globs, not [^ ]
21 Patch2: %{name}-ksh.patch
22 URL: http://firebird.sourceforge.net/
24 Requires: %{name}-lib = %{version}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define ibdir %{_libdir}/interbase
30 Firebird is a powerful, high-performance relational database designed
31 to be embedded into applications on multiple platforms.
34 Firebird jest potê¿nym, wysoko wydajnym systemem relacyjnych baz
35 danych zaprojektowanym do osadzania w aplikacjach na wielu
39 Summary: Firebird shared library
40 Summary(pl): Biblioteka wspó³dzielona Firebird
44 Firebird shared library (libgds).
46 %description lib -l pl
47 Biblioteka wspó³dzielona Firebird (libgds).
50 Summary: Header files for Firebird library
51 Summary(pl): Pliki nag³ówkowe biblioteki Firebird
52 Group: Development/Libraries
53 Requires: %{name}-lib = %{version}
56 Header files for Firebird library.
58 %description devel -l pl
59 Pliki nag³ówkowe biblioteki Firebird.
62 Summary: Static Firebird library
63 Summary(pl): Statyczna biblioteka Firebird
64 Group: Development/Libraries
65 Requires: %{name}-devel = %{version}
68 Static Firebird library (libgds).
70 %description static -l pl
71 Statyczna biblioteka Firebird (libgds).
74 Summary: Extensive InterBase and Firebird documentation
75 Summary(pl): Obszerna dokumentacja do baz InterBase i Firebird
79 Extensive InterBase and Firebird documentation.
81 %description doc -l pl
82 Obszerna dokumentacja do baz InterBase i Firebird.
85 %setup -q -n firebird-%{version} -a1
91 cp -f %{SOURCE5} misc/isc4.gbak
93 install -d docs/{IB3.0,IB4.0,IB6.0}
94 unzip -q %{SOURCE2} -d docs/IB6.0
95 tar xzf %{SOURCE3} -C docs/IB4.0
96 unzip -q %{SOURCE4} -d docs/IB3.0
97 # standardize extension, also avoids gzipping by compress-doc
98 mv -f docs/IB6.0/LANGREF.{PDF,pdf}
101 INTERBASE=/usr/lib/interbase; export INTERBASE
102 echo 'y' | ./Configure.sh PROD
103 . ./Configure_SetupEnv.sh
107 PROD_CFLAGS="%{rpmcflags} -fpic -DFLINTSTONE"
109 # classic/super - what's the difference?
110 #%{__make} super_firebird
112 #-Isource/interbase/include"
115 rm -rf $RPM_BUILD_ROOT
116 INTERBASE=/usr/lib/interbase; export INTERBASE
117 . ./Configure_SetupEnv.sh
119 %{__make} buildclassicimage -f firebird/install/linux/Makefile
121 install -d $RPM_BUILD_ROOT{%{ibdir},%{_libdir},%{_includedir}} \
122 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
123 cd buildroot/opt/interbase
125 cp -af UDF bin help intl interbase.msg isc4.gdb isc_config \
126 $RPM_BUILD_ROOT%{ibdir}
127 install include/* $RPM_BUILD_ROOT%{_includedir}
128 install lib/* $RPM_BUILD_ROOT%{_libdir}
129 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
132 rm -rf $RPM_BUILD_ROOT
135 %defattr(644,root,root,755)
136 %doc builds_win32/install/{*License,Readme}.txt
137 %attr(755,root,root) %{_libdir}/libib_util.so
139 %attr(755,root,root) %{ibdir}/UDF
140 %attr(755,root,root) %{ibdir}/bin
143 %{ibdir}/interbase.msg
144 # following two files should be in /var and /etc resp.?
149 %defattr(644,root,root,755)
150 # .so link needed here - library doesn't have SONAME
151 %attr(755,root,root) %{_libdir}/libgds.so*
154 %defattr(644,root,root,755)
156 %{_examplesdir}/%{name}-%{version}
159 %defattr(644,root,root,755)
163 %defattr(644,root,root,755)