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