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 URL: http://firebird.sourceforge.net/
25 Requires: %{name}-lib = %{version}
26 # see firebird-*/jrd/{common.h,gds.h,ibase.h} if you want to add support for more
27 ExclusiveArch: %{ix86}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define ibdir %{_libdir}/interbase
33 Firebird is a powerful, high-performance relational database designed
34 to be embedded into applications on multiple platforms.
37 Firebird jest potê¿nym, wysoko wydajnym systemem relacyjnych baz
38 danych zaprojektowanym do osadzania w aplikacjach na wielu
42 Summary: Firebird shared library
43 Summary(pl): Biblioteka wspó³dzielona Firebird
47 Firebird shared library (libgds).
49 %description lib -l pl
50 Biblioteka wspó³dzielona Firebird (libgds).
53 Summary: Header files for Firebird library
54 Summary(pl): Pliki nag³ówkowe biblioteki Firebird
55 Group: Development/Libraries
56 Requires: %{name}-lib = %{version}
59 Header files for Firebird library.
61 %description devel -l pl
62 Pliki nag³ówkowe biblioteki Firebird.
65 Summary: Static Firebird library
66 Summary(pl): Statyczna biblioteka Firebird
67 Group: Development/Libraries
68 Requires: %{name}-devel = %{version}
71 Static Firebird library (libgds).
73 %description static -l pl
74 Statyczna biblioteka Firebird (libgds).
77 Summary: Extensive InterBase and Firebird documentation
78 Summary(pl): Obszerna dokumentacja do baz InterBase i Firebird
82 Extensive InterBase and Firebird documentation.
84 %description doc -l pl
85 Obszerna dokumentacja do baz InterBase i Firebird.
88 %setup -q -n firebird-%{version} -a1
91 install -d docs/{IB3.0,IB4.0,IB6.0}
92 unzip -q %{SOURCE2} -d docs/IB6.0
93 tar xzf %{SOURCE3} -C docs/IB4.0
94 unzip -q %{SOURCE4} -d docs/IB3.0
95 # standardize extension, also avoids gzipping by compress-doc
96 mv -f docs/IB6.0/LANGREF.{PDF,pdf}
99 INTERBASE=/usr/lib/interbase; export INTERBASE
100 echo 'y' | ./Configure.sh PROD
101 . ./Configure_SetupEnv.sh
105 PROD_CFLAGS="%{rpmcflags} -fpic -DFLINTSTONE"
107 # classic/super - what's the difference?
108 #%%{__make} super_firebird
110 #-Isource/interbase/include"
113 rm -rf $RPM_BUILD_ROOT
114 INTERBASE=/usr/lib/interbase; export INTERBASE
115 . ./Configure_SetupEnv.sh
117 %{__make} buildclassicimage -f firebird/install/linux/Makefile
119 install -d $RPM_BUILD_ROOT{%{ibdir},%{_libdir},%{_includedir}} \
120 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
121 cd buildroot/opt/interbase
123 cp -af UDF bin help intl interbase.msg isc4.gdb isc_config \
124 $RPM_BUILD_ROOT%{ibdir}
125 install include/* $RPM_BUILD_ROOT%{_includedir}
126 install lib/* $RPM_BUILD_ROOT%{_libdir}
127 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
130 rm -rf $RPM_BUILD_ROOT
133 %defattr(644,root,root,755)
134 %doc builds_win32/install/{*License,Readme}.txt
135 %attr(755,root,root) %{_libdir}/libib_util.so
137 %attr(755,root,root) %{ibdir}/UDF
138 %attr(755,root,root) %{ibdir}/bin
141 %{ibdir}/interbase.msg
142 # following two files should be in /var and /etc resp.?
147 %defattr(644,root,root,755)
148 # .so link needed here - library doesn't have SONAME
149 %attr(755,root,root) %{_libdir}/libgds.so*
152 %defattr(644,root,root,755)
154 %{_examplesdir}/%{name}-%{version}
157 %defattr(644,root,root,755)
161 %defattr(644,root,root,755)