]> git.pld-linux.org Git - packages/Firebird.git/blob - Firebird.spec
- only builds (Classic version for now)
[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.0.796
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 # missing isc4.gbak generated by: make isql || : ; make gdef gsec secutity_db
12 Source2:        %{name}-isc4.gbak
13 # missing save.c generated by gpre after building pixar w/o save.o and then other stuff
14 Patch0:         %{name}-bootkit-missing.patch
15 # dirty "fixes" for missing error contants and conflict with isql from unixODBC
16 Patch1:         %{name}-fix.patch
17 # ksh supports only [! ] globs, not [^ ]
18 Patch2:         %{name}-ksh.patch
19 URL:            http://firebird.sourceforge.net/
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 %prep
70 %setup -q -n firebird-%{version} -a1
71 %patch0 -p1
72 %patch1 -p1
73 %patch2 -p1
74
75 chmod u+w -R .
76 cp -f %{SOURCE2} misc/isc4.gbak
77
78 %build
79 INTERBASE=/usr/lib/interbase; export INTERBASE
80 echo 'y' | ./Configure.sh PROD
81 . ./Configure_SetupEnv.sh
82
83 %{__make} firebird \
84         CC="%{__cc}" \
85         PROD_CFLAGS="%{rpmcflags} -fpic -DFLINTSTONE"
86
87 # classic/super - what's the difference?
88 #%{__make} super_firebird
89
90 #-Isource/interbase/include"
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94 INTERBASE=/usr/lib/interbase; export INTERBASE
95 . ./Configure_SetupEnv.sh
96
97 %{__make} buildclassicimage -f firebird/install/linux/Makefile
98
99 install -d $RPM_BUILD_ROOT{%{ibdir},%{_libdir},%{_includedir}} \
100         $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
101 cd buildroot/opt/interbase
102 rm -f bin/isc4.gbak
103 cp -af UDF bin help intl interbase.msg isc4.gdb isc_config \
104         $RPM_BUILD_ROOT%{ibdir}
105 install include/* $RPM_BUILD_ROOT%{_includedir}
106 install lib/* $RPM_BUILD_ROOT%{_libdir}
107 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %files
113 %defattr(644,root,root,755)
114 %doc builds_win32/install/{*License,Readme}.txt
115 %attr(755,root,root) %{_libdir}/libib_util.so
116 %dir %{ibdir}
117 %attr(755,root,root) %{ibdir}/UDF
118 %attr(755,root,root) %{ibdir}/bin
119 %{ibdir}/help
120 %{ibdir}/intl
121 %{ibdir}/interbase.msg
122 # following two files should be in /var and /etc resp.?
123 %{ibdir}/isc4.gdb
124 %{ibdir}/isc_config
125
126 %files lib
127 %defattr(644,root,root,755)
128 # .so link needed here - library doesn't have SONAME
129 %attr(755,root,root) %{_libdir}/libgds.so*
130
131 %files devel
132 %defattr(644,root,root,755)
133 %{_includedir}/*
134 %{_examplesdir}/%{name}-%{version}
135
136 %files static
137 %defattr(644,root,root,755)
138 %{_libdir}/libgds.a
This page took 0.107312 seconds and 3 git commands to generate.