]> git.pld-linux.org Git - packages/Firebird.git/blob - Firebird.spec
- updated to 1.0.2.908
[packages/Firebird.git] / Firebird.spec
1 Summary:        Firebird SQL Database Server and Client tools
2 Summary(pl):    Firebird - serwer baz danych SQL oraz narzêdzia klienckie
3 Name:           Firebird
4 # FirebirdCS/FirebirdSS (Classic Server/Super Server)?
5 Version:        1.0.2.908
6 Release:        1
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/
19 BuildRequires:  unzip
20 Requires:       %{name}-lib = %{version}
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         ibdir   %{_libdir}/interbase
24
25 %description
26 Firebird is a powerful, high-performance relational database designed
27 to be embedded into applications on multiple platforms.
28
29 %description -l pl
30 Firebird jest potê¿nym, wysoko wydajnym systemem relacyjnych baz
31 danych zaprojektowanym do osadzania w aplikacjach na wielu
32 platformach.
33
34 %package lib
35 Summary:        Firebird shared library
36 Summary(pl):    Biblioteka wspó³dzielona Firebird
37 Group:          Libraries
38
39 %description lib
40 Firebird shared library (libgds).
41
42 %description lib -l pl
43 Biblioteka wspó³dzielona Firebird (libgds).
44
45 %package devel
46 Summary:        Header files for Firebird library
47 Summary(pl):    Pliki nag³ówkowe biblioteki Firebird
48 Group:          Development/Libraries
49 Requires:       %{name}-lib = %{version}
50
51 %description devel
52 Header files for Firebird library.
53
54 %description devel -l pl
55 Pliki nag³ówkowe biblioteki Firebird.
56
57 %package static
58 Summary:        Static Firebird library
59 Summary(pl):    Statyczna biblioteka Firebird
60 Group:          Development/Libraries
61 Requires:       %{name}-devel = %{version}
62
63 %description static
64 Static Firebird library (libgds).
65
66 %description static -l pl
67 Statyczna biblioteka Firebird (libgds).
68
69 %package doc
70 Summary:        Extensive InterBase and Firebird documentation
71 Summary(pl):    Obszerna dokumentacja do baz InterBase i Firebird
72 Group:          Documentation
73
74 %description doc
75 Extensive InterBase and Firebird documentation.
76
77 %description doc -l pl
78 Obszerna dokumentacja do baz InterBase i Firebird.
79
80 %prep
81 %setup -q -n firebird-%{version} -a1
82 %patch0 -p1
83
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}
90
91 %build
92 INTERBASE=/usr/lib/interbase; export INTERBASE
93 echo 'y' | ./Configure.sh PROD
94 . ./Configure_SetupEnv.sh
95
96 %{__make} firebird \
97         CC="%{__cc}" \
98         PROD_CFLAGS="%{rpmcflags} -fpic -DFLINTSTONE"
99
100 # classic/super - what's the difference?
101 #%{__make} super_firebird
102
103 #-Isource/interbase/include"
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107 INTERBASE=/usr/lib/interbase; export INTERBASE
108 . ./Configure_SetupEnv.sh
109
110 %{__make} buildclassicimage -f firebird/install/linux/Makefile
111
112 install -d $RPM_BUILD_ROOT{%{ibdir},%{_libdir},%{_includedir}} \
113         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
114 cd buildroot/opt/interbase
115 rm -f bin/isc4.gbak
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}
121
122 %clean
123 rm -rf $RPM_BUILD_ROOT
124
125 %files
126 %defattr(644,root,root,755)
127 %doc builds_win32/install/{*License,Readme}.txt
128 %attr(755,root,root) %{_libdir}/libib_util.so
129 %dir %{ibdir}
130 %attr(755,root,root) %{ibdir}/UDF
131 %attr(755,root,root) %{ibdir}/bin
132 %{ibdir}/help
133 %{ibdir}/intl
134 %{ibdir}/interbase.msg
135 # following two files should be in /var and /etc resp.?
136 %{ibdir}/isc4.gdb
137 %{ibdir}/isc_config
138
139 %files lib
140 %defattr(644,root,root,755)
141 # .so link needed here - library doesn't have SONAME
142 %attr(755,root,root) %{_libdir}/libgds.so*
143
144 %files devel
145 %defattr(644,root,root,755)
146 %{_includedir}/*
147 %{_examplesdir}/%{name}-%{version}
148
149 %files static
150 %defattr(644,root,root,755)
151 %{_libdir}/libgds.a
152
153 %files doc
154 %defattr(644,root,root,755)
155 %doc docs/*
This page took 0.048268 seconds and 4 git commands to generate.