]>
Commit | Line | Data |
---|---|---|
98517597 | 1 | # TODO: |
d8c389bc JB |
2 | # - check running |
3 | # - 2.5 -> 3.0 migration? | |
d8c389bc | 4 | # - more docs from http://www.firebirdsql.org/en/reference-manuals/ ? |
98517597 | 5 | # - kill unaligned accesses (create_db,gpre_current,gbak_static,isql_static) on alpha |
6302c6a3 | 6 | # - check if it's fixed now (RISC_ALIGNMENT is defined) |
aacfabf3 | 7 | # - check classic subpackage pre/post scripts |
75e61db1 | 8 | # - logrotate script |
aacfabf3 BS |
9 | # - create SYSDBA user with initial password before first firebird start |
10 | # eg.: | |
11 | # su firebird | |
1856fc63 | 12 | # echo "create user SYSDBA password 'masterkey';"|fb_isql -u SYSDBA /var/lib/firebird/security5.fdb |
5c17f9d1 | 13 | # |
9fa49beb | 14 | Summary: Firebird SQL Database Server and Client tools |
dc230623 ER |
15 | Summary(de.UTF-8): Firebird - relationalen Open-Source- Datenbankmanagementsystems |
16 | Summary(pl.UTF-8): Firebird - serwer baz danych SQL oraz narzędzia klienckie | |
9fa49beb | 17 | Name: Firebird |
1856fc63 BS |
18 | Version: 5.0.0.1306 |
19 | Release: 1 | |
6302c6a3 | 20 | License: Interbase Public License 1.0, Initial Developer's Public License 1.0 |
9fa49beb | 21 | Group: Applications/Databases |
1856fc63 BS |
22 | Source0: https://github.com/FirebirdSQL/firebird/releases/download/v5.0.0/%{name}-%{version}-0-source.tar.xz |
23 | # Source0-md5: 9d8b64e922df57d6a3f3de1acca4f8e3 | |
24 | Source1: https://firebirdsql.org/file/documentation/pdf/en/firebirddocs/qsg5/firebird-5-quickstartguide.pdf | |
ae291aff | 25 | # Source1-md5: c02b14827cc050806bf107fd85a18458 |
6302c6a3 JB |
26 | # distfiles refuses this, would require some audit to allow '('/')' chars |
27 | #Source2: http://www.firebirdsql.org/pdfmanual/Using-Firebird_(wip).pdf | |
28 | ## Source2-md5: 9eb90583c200bdd7292a80ecc1df1178 | |
8fce9f85 | 29 | Source3: http://www.firebirdsql.org/pdfmanual/%{name}-Null-Guide.pdf |
1fe5ebac | 30 | # Source3-md5: dc8e5e234b2138af9a472feca6565359 |
8fce9f85 | 31 | Source4: http://www.firebirdsql.org/pdfmanual/%{name}-Generator-Guide.pdf |
1fe5ebac | 32 | # Source4-md5: 23926037205ab8716cf0a54544585231 |
8fce9f85 | 33 | Source5: http://www.firebirdsql.org/pdfmanual/MSSQL-to-%{name}.pdf |
5a217c67 | 34 | # Source5-md5: 230ef237842d255916398f408f459281 |
8fce9f85 | 35 | Source6: http://www.firebirdsql.org/pdfmanual/%{name}-nbackup.pdf |
2263f72b | 36 | # Source6-md5: 98d310a374ecc3f1f241e1feac6e4dca |
1fe5ebac BS |
37 | Source7: http://www.firebirdsql.org/pdfmanual/%{name}-shell-scripts.pdf |
38 | # Source7-md5: 01c5e91de9f1639f62f93b3e486584c8 | |
afbf0830 | 39 | Source8: http://www.firebirdnews.org/docs/fb2min.pdf |
1fe5ebac BS |
40 | # Source8-md5: 5e192abaf5db4417b29ad871716522b5 |
41 | Source9: https://firebirdsql.org/file/documentation/reference_manuals/reference_material/Firebird-2.1-ErrorCodes.pdf | |
f09ba703 | 42 | # Source9-md5: 9ab392dc349657dbcf9a9c35acd8e8db |
1fe5ebac BS |
43 | Source10: http://www.firebirdsql.org/pdfmanual/%{name}-gsec.pdf |
44 | # Source10-md5: 326ef6f7afebf369b534838945ee4f74 | |
45 | Source11: http://www.firebirdsql.org/pdfmanual/%{name}-gfix.pdf | |
46 | # Source11-md5: 22e2cdc1058dd4f764728bcb3a8644f0 | |
47 | Source12: http://www.firebirdsql.org/pdfmanual/%{name}-gsplit.pdf | |
48 | # Source12-md5: 0147b5d2118e2e80c93762600107a71f | |
1856fc63 BS |
49 | Source13: https://firebirdsql.org/file/documentation/pdf/en/refdocs/fblangref50/firebird-50-language-reference.pdf |
50 | # Source13-md5: cf095a223a7b7f631e6a4b8a9604b1da | |
afbf0830 AM |
51 | Source100: firebird.init |
52 | Source101: firebird.sysconfig | |
53 | Source102: firebird.inetd | |
aacfabf3 BS |
54 | Source103: firebird.tmpfiles |
55 | Source104: firebird.service | |
56 | Source105: firebird-classic.service | |
57 | Source106: firebird-classic.socket | |
58 | Source107: server_mode-ss.conf | |
59 | Source108: server_mode-classic.conf | |
acde953e | 60 | Source109: fb_config |
3e30a275 | 61 | Patch0: %{name}-chmod.patch |
e3bc302b | 62 | Patch1: %{name}-editline.patch |
3657cd88 | 63 | Patch2: %{name}-va.patch |
19f3deae JB |
64 | Patch3: %{name}-FHS.patch |
65 | Patch4: %{name}-opt.patch | |
d8c389bc | 66 | Patch6: %{name}-libpath.patch |
acde953e | 67 | Patch7: add-pkgconfig-files.patch |
8f47d69b | 68 | Patch10: no-copy-from-icu.patch |
aacfabf3 | 69 | Patch11: config.patch |
c29f40ad | 70 | Patch12: chown.patch |
acde953e | 71 | Patch13: cloop-honour-build-flags.patch |
1fe5ebac | 72 | Patch14: mod_loader.patch |
40c5ec59 | 73 | URL: http://www.firebirdsql.org/ |
d8c389bc | 74 | BuildRequires: autoconf >= 2.67 |
41daf6c3 | 75 | BuildRequires: automake |
c7da80e5 | 76 | BuildRequires: bison |
0a93a495 | 77 | BuildRequires: libatomic_ops |
6302c6a3 | 78 | BuildRequires: libedit-devel |
6246a616 | 79 | BuildRequires: libicu-devel |
3e30a275 | 80 | BuildRequires: libstdc++-devel |
d8c389bc JB |
81 | BuildRequires: libtommath-devel |
82 | BuildRequires: libtool >= 2:2 | |
8f47d69b AM |
83 | # for lockfile |
84 | BuildRequires: procmail | |
f32247bb | 85 | BuildRequires: rpmbuild(macros) >= 1.268 |
f09ba703 | 86 | BuildRequires: sed >= 4.0 |
d8c389bc | 87 | BuildRequires: zlib-devel |
27e76269 | 88 | Requires: %{name}-dirs = %{version}-%{release} |
ff19b114 | 89 | Requires: %{name}-lib = %{version}-%{release} |
19988721 JB |
90 | # official ports are x86, x86_64, ppc, sparc, arm, mips/mipsel, ia64 |
91 | # alpha is added in morearchs patch | |
92 | # see morearchs patch if you want more | |
f220d6ad | 93 | ExclusiveArch: %{ix86} %{x8664} x32 arm ia64 mips mipsel ppc sparc sparcv9 alpha |
9fa49beb JB |
94 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
95 | ||
eee53b00 | 96 | %define filterout -flto |
9fa49beb | 97 | %define ibdir %{_libdir}/interbase |
3e30a275 JB |
98 | %define specflags -fno-strict-aliasing |
99 | %define debugcflags -O1 -g -Wall -fno-strict-aliasing | |
81ff2314 | 100 | %define Werror_cflags '' |
9fa49beb JB |
101 | |
102 | %description | |
103 | Firebird is a powerful, high-performance relational database designed | |
104 | to be embedded into applications on multiple platforms. | |
105 | ||
bc5f1efa JR |
106 | %description -l pl.UTF-8 |
107 | Firebird jest potężnym, wysoko wydajnym systemem relacyjnych baz | |
9fa49beb JB |
108 | danych zaprojektowanym do osadzania w aplikacjach na wielu |
109 | platformach. | |
110 | ||
bc5f1efa | 111 | %description -l de.UTF-8 |
d88756a7 | 112 | Firebird ist der Open-Source-Spin-Off des weiterhin kommerziell von |
113 | Borland vertriebenen relationalen Datenbankmanagementsystemes | |
114 | InterBase. Die Abspaltung erfolgte im Jahre 2000 als kurz vor Freigabe | |
bc5f1efa JR |
115 | der Version 6 des kommerziellen Vorgängers Interbase bei Borland |
116 | ernsthafte Überlegungen im Gange waren, die Weiterentwicklung | |
d88756a7 | 117 | einzustellen. |
118 | ||
119 | Aus Interbase 6.0 wurde Firebird 1.0, wobei dies als eine | |
120 | Bugfix-Version mit nur wenigen Erweiterungen angesehen werden kann. | |
121 | Eine Erweiterung von Firebird 1.0 ist der 64-Bit File I/O, so dass | |
bc5f1efa | 122 | auch Datenbankdateien über 2GB erzeugt werden können. |
d88756a7 | 123 | |
27e76269 JR |
124 | %package dirs |
125 | Summary: Firebird SQL Database common directories | |
126 | Summary(pl.UTF-8): Firebird - wspólne katalogi | |
127 | Group: Applications/Databases | |
128 | ||
129 | %description dirs | |
130 | Firebird SQL Database common directories. | |
131 | ||
132 | %description dirs -l pl.UTF-8 | |
133 | Firebird - wspólne katalogi. | |
134 | ||
9fa49beb JB |
135 | %package lib |
136 | Summary: Firebird shared library | |
dc230623 | 137 | Summary(pl.UTF-8): Biblioteka współdzielona Firebird |
9fa49beb JB |
138 | Group: Libraries |
139 | ||
140 | %description lib | |
141 | Firebird shared library (libgds). | |
142 | ||
bc5f1efa JR |
143 | %description lib -l pl.UTF-8 |
144 | Biblioteka współdzielona Firebird (libgds). | |
9fa49beb JB |
145 | |
146 | %package devel | |
147 | Summary: Header files for Firebird library | |
dc230623 | 148 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Firebird |
9fa49beb | 149 | Group: Development/Libraries |
27e76269 | 150 | Requires: %{name}-dirs = %{version}-%{release} |
ff19b114 | 151 | Requires: %{name}-lib = %{version}-%{release} |
3e30a275 | 152 | Requires: libstdc++-devel |
d8c389bc | 153 | Obsoletes: Firebird-static |
9fa49beb JB |
154 | |
155 | %description devel | |
156 | Header files for Firebird library. | |
157 | ||
bc5f1efa JR |
158 | %description devel -l pl.UTF-8 |
159 | Pliki nagłówkowe biblioteki Firebird. | |
9fa49beb | 160 | |
6d06b555 JB |
161 | %package doc |
162 | Summary: Extensive InterBase and Firebird documentation | |
dc230623 | 163 | Summary(pl.UTF-8): Obszerna dokumentacja do baz InterBase i Firebird |
6d06b555 JB |
164 | Group: Documentation |
165 | ||
166 | %description doc | |
167 | Extensive InterBase and Firebird documentation. | |
168 | ||
bc5f1efa | 169 | %description doc -l pl.UTF-8 |
6d06b555 JB |
170 | Obszerna dokumentacja do baz InterBase i Firebird. |
171 | ||
aacfabf3 | 172 | %package ss |
18cef825 JB |
173 | Summary: Firebird SuperServer init scripts |
174 | Summary(pl.UTF-8): Skrypty startowe Firebirda jako SuperServera | |
175 | Group: Daemons | |
aacfabf3 BS |
176 | Requires: %{name} = %{version}-%{release} |
177 | Requires(post,preun): /sbin/chkconfig | |
178 | Requires: rc-scripts | |
179 | ||
180 | %description ss | |
18cef825 JB |
181 | Firebird SuperServer init scripts. |
182 | ||
183 | %description ss -l pl.UTF-8 | |
184 | Skrypty startowe Firebirda jako SuperServera. | |
aacfabf3 BS |
185 | |
186 | %package classic | |
187 | Summary: Firebird Classic init scripts | |
18cef825 JB |
188 | Summary(pl.UTF-8): Skrypty startowe Firebirda w wersji Classic |
189 | Group: Daemons | |
aacfabf3 BS |
190 | Requires: %{name} = %{version}-%{release} |
191 | ||
192 | %description classic | |
18cef825 JB |
193 | Firebird Classic (inetd) init scripts. |
194 | ||
195 | %description classic -l pl.UTF-8 | |
196 | Skrypty startowe Firebirda w wersji Classic (inetd). | |
aacfabf3 | 197 | |
9fa49beb | 198 | %prep |
1856fc63 | 199 | %setup -q -n %{name}-%{version}-0-source |
9fa49beb | 200 | %patch0 -p1 |
6302c6a3 JB |
201 | %patch1 -p1 |
202 | %patch2 -p1 | |
19f3deae | 203 | %patch3 -p1 |
75e61db1 | 204 | %patch4 -p1 |
19f3deae | 205 | %patch6 -p1 |
acde953e | 206 | %patch7 -p1 |
aacfabf3 | 207 | %patch11 -p1 |
c29f40ad | 208 | %patch12 -p1 |
acde953e | 209 | %patch13 -p1 |
1fe5ebac | 210 | %patch14 -p1 |
41ed72e5 | 211 | |
6302c6a3 | 212 | mkdir docs |
1fe5ebac BS |
213 | cp %{SOURCE1} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} \ |
214 | %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} docs | |
6302c6a3 | 215 | |
6be40696 | 216 | # not processed by configure |
6299ab26 | 217 | %{__sed} -i -e 's/^CFLAGS.*$/& %{rpmcflags} %{rpmcppflags}/' extern/btyacc/Makefile |
4db8ab34 | 218 | %{__sed} -i -e 's;^\(CC\|LINKER\)\(.*= \)gcc$;\1\2 %{__cc};' extern/btyacc/Makefile |
6be40696 | 219 | |
9fa49beb | 220 | %build |
3e30a275 JB |
221 | %{__libtoolize} |
222 | %{__aclocal} | |
223 | %{__autoconf} | |
9fa49beb | 224 | |
3e30a275 | 225 | %configure \ |
8f47d69b | 226 | CFLAGS="%{rpmcflags} -fno-delete-null-pointer-checks" \ |
d8c389bc | 227 | --prefix=%{ibdir} \ |
0a93a495 | 228 | --with-fbconf=%{_sysconfdir}/firebird \ |
d8c389bc | 229 | --with-fbinclude=%{_includedir} \ |
0a93a495 JB |
230 | --with-fblib=%{_libdir} \ |
231 | --with-fblog=/var/log \ | |
232 | --with-fbsecure-db=/var/lib/firebird \ | |
d8c389bc | 233 | --with-fbglock=/var/lib/firebird \ |
75e61db1 KK |
234 | --with-gnu-ld \ |
235 | --with-gpre-pascal \ | |
afbf0830 | 236 | --with-system-editline \ |
d8c389bc JB |
237 | %{?debug:--enable-debug} \ |
238 | --disable-rpath \ | |
aacfabf3 | 239 | --disable-binreloc |
9fa49beb | 240 | |
a4b6cfeb | 241 | %{__make} -j1 |
9fa49beb JB |
242 | |
243 | %install | |
244 | rm -rf $RPM_BUILD_ROOT | |
9fa49beb | 245 | |
1fe5ebac | 246 | %{__make} -C src -f ../gen/Makefile.install buildRoot |
9fa49beb | 247 | |
aacfabf3 | 248 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/{firebird{,/conf.d},rc.d/init.d,sysconfig/rc-inetd} |
e77a3775 | 249 | install -d $RPM_BUILD_ROOT{%{_bindir},%{ibdir},%{_libdir},%{_includedir},%{_pkgconfigdir}} \ |
75e61db1 | 250 | install -d $RPM_BUILD_ROOT/var/{log,lib/firebird} \ |
9fa49beb | 251 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
aacfabf3 BS |
252 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d |
253 | install -d $RPM_BUILD_ROOT%{systemdunitdir} | |
254 | cp -p %{SOURCE103} $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/firebird.conf | |
75e61db1 | 255 | touch $RPM_BUILD_ROOT/var/log/firebird.log |
3e30a275 | 256 | |
e77a3775 ER |
257 | cp -p gen/install/misc/fbclient.pc $RPM_BUILD_ROOT%{_pkgconfigdir} |
258 | ||
0a93a495 | 259 | cd gen/buildroot |
1856fc63 | 260 | cp -p var/lib/firebird/security5.fdb $RPM_BUILD_ROOT/var/lib/firebird |
aacfabf3 | 261 | cp -p etc/firebird/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/firebird |
d8c389bc JB |
262 | chmod 755 usr/include/firebird/impl |
263 | cp -pr usr/include/* $RPM_BUILD_ROOT%{_includedir} | |
264 | cp -dp usr/%{_lib}/*.so* $RPM_BUILD_ROOT%{_libdir} | |
0a93a495 | 265 | cd .%{ibdir} |
1856fc63 | 266 | cp -a bin intl plugins firebird.msg $RPM_BUILD_ROOT%{ibdir} |
894b33a3 | 267 | ln -s %{ibdir}/intl $RPM_BUILD_ROOT%{_sysconfdir}/firebird |
eee53b00 | 268 | ln -s %{ibdir}/{bin,plugins,firebird.msg} $RPM_BUILD_ROOT%{_sysconfdir}/firebird |
d8c389bc | 269 | chmod u+w -R examples # allow further cleaning |
6302c6a3 | 270 | cp -rf examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
9fa49beb | 271 | |
6302c6a3 JB |
272 | ln -sf libfbclient.so.2 $RPM_BUILD_ROOT%{_libdir}/libgds.so.0 |
273 | ln -sf libfbclient.so.2 $RPM_BUILD_ROOT%{_libdir}/libgds.so | |
3e30a275 | 274 | |
d8c389bc | 275 | for f in bin/{fb_lock_print,gbak,gfix,gpre,gsec,gsplit,gstat,nbackup}; do |
0a93a495 | 276 | ln -sf %{ibdir}/$f $RPM_BUILD_ROOT%{_bindir}/${f#bin/} |
8fce9f85 | 277 | done |
aacfabf3 | 278 | ln -sf %{ibdir}/bin/isql $RPM_BUILD_ROOT%{_bindir}/fb_isql |
8fce9f85 | 279 | |
aacfabf3 BS |
280 | rm -f $RPM_BUILD_ROOT%{ibdir}/bin/{FirebirdUninstall.sh,changeServerMode.sh} |
281 | ||
282 | sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE100} >$RPM_BUILD_ROOT/etc/rc.d/init.d/firebird | |
283 | cp -p %{SOURCE101} $RPM_BUILD_ROOT/etc/sysconfig/firebird | |
284 | sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE104} >$RPM_BUILD_ROOT%{systemdunitdir}/firebird.service | |
535fa407 | 285 | install -d $RPM_BUILD_ROOT/run/firebird |
aacfabf3 | 286 | |
894b33a3 | 287 | sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE102} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/firebird |
aacfabf3 BS |
288 | sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE105} >$RPM_BUILD_ROOT%{systemdunitdir}/firebird-classic@.service |
289 | cp -p %{SOURCE106} $RPM_BUILD_ROOT%{systemdunitdir}/firebird-classic.socket | |
290 | ||
291 | cp -p %{SOURCE107} $RPM_BUILD_ROOT%{_sysconfdir}/firebird/conf.d/ | |
292 | cp -p %{SOURCE108} $RPM_BUILD_ROOT%{_sysconfdir}/firebird/conf.d/ | |
acde953e | 293 | install -p %{_sourcedir}/fb_config $RPM_BUILD_ROOT%{_bindir}/fb_config |
59aa3c60 | 294 | |
9fa49beb JB |
295 | %clean |
296 | rm -rf $RPM_BUILD_ROOT | |
297 | ||
85eb4f4f | 298 | %pre |
6ad2f94a ER |
299 | %groupadd -g 145 firebird |
300 | %useradd -u 145 -d %{ibdir} -s /bin/sh -g firebird -c "Firebird Server" firebird | |
85eb4f4f | 301 | |
aacfabf3 BS |
302 | %postun |
303 | if [ "$1" = "0" ]; then | |
304 | %userremove firebird | |
305 | %groupremove firebird | |
306 | fi | |
307 | ||
308 | %post lib -p /sbin/ldconfig | |
309 | %postun lib -p /sbin/ldconfig | |
310 | ||
311 | %post ss | |
85eb4f4f | 312 | /sbin/chkconfig --add firebird |
f32247bb | 313 | %service firebird restart |
aacfabf3 | 314 | %systemd_post firebird.service |
85eb4f4f | 315 | |
aacfabf3 | 316 | %preun ss |
85eb4f4f | 317 | if [ "$1" = "0" ]; then |
f32247bb | 318 | %service firebird stop |
6ad2f94a | 319 | /sbin/chkconfig --del firebird |
85eb4f4f | 320 | fi |
aacfabf3 | 321 | %systemd_preun firebird.service |
85eb4f4f | 322 | |
aacfabf3 BS |
323 | %postun ss |
324 | %systemd_reload | |
85eb4f4f | 325 | |
aacfabf3 BS |
326 | %post classic |
327 | %systemd_post firebird-classic@.service firebird-classic.socket | |
328 | ||
329 | %preun classic | |
330 | %systemd_preun firebird-classic@.service firebird-classic.socket | |
331 | ||
332 | %postun classic | |
333 | %systemd_reload | |
3e30a275 | 334 | |
75e61db1 | 335 | %triggerpostun -- %{name} < 2.1.1.17910-2 |
75e61db1 | 336 | if [ -f %{ibdir}/firebird.conf.rpmsave ]; then |
a82ae013 | 337 | mv -f %{ibdir}/firebird.conf.rpmsave %{_sysconfdir}/firebird/firebird.conf |
75e61db1 | 338 | fi |
75e61db1 | 339 | |
9fa49beb JB |
340 | %files |
341 | %defattr(644,root,root,755) | |
eee53b00 | 342 | %doc doc/{license,sql.extensions,Firebird_conf.txt,README.user*} |
75e61db1 | 343 | %dir %{_sysconfdir}/firebird |
aacfabf3 | 344 | %dir %{_sysconfdir}/firebird/conf.d |
d8c389bc | 345 | %attr(640,root,firebird) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/firebird/databases.conf |
0a93a495 JB |
346 | %attr(640,root,firebird) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/firebird/fbtrace.conf |
347 | %attr(640,root,firebird) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/firebird/firebird.conf | |
d8c389bc | 348 | %attr(640,root,firebird) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/firebird/plugins.conf |
eee53b00 | 349 | %attr(640,root,firebird) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/firebird/replication.conf |
734522b6 | 350 | %{_sysconfdir}/firebird/intl |
aacfabf3 BS |
351 | %{_sysconfdir}/firebird/bin |
352 | %{_sysconfdir}/firebird/firebird.msg | |
353 | %{_sysconfdir}/firebird/plugins | |
354 | %attr(755,root,root) %{_bindir}/fb_isql | |
8fce9f85 | 355 | %attr(755,root,root) %{_bindir}/fb_lock_print |
0a93a495 | 356 | %attr(755,root,root) %{_bindir}/gbak |
0a93a495 | 357 | %attr(755,root,root) %{_bindir}/gfix |
0a93a495 JB |
358 | %attr(755,root,root) %{_bindir}/gsec |
359 | %attr(755,root,root) %{_bindir}/gsplit | |
360 | %attr(755,root,root) %{_bindir}/gstat | |
8fce9f85 | 361 | %attr(755,root,root) %{_bindir}/nbackup |
9fa49beb | 362 | %attr(755,root,root) %{_libdir}/libib_util.so |
27e76269 | 363 | %attr(755,root,root) %{ibdir}/bin/* |
c6be0ab0 | 364 | %exclude %{ibdir}/bin/fb_config |
aacfabf3 BS |
365 | %exclude %{ibdir}/bin/gpre |
366 | %exclude %{ibdir}/bin/fbguard | |
c29f40ad | 367 | %dir %{ibdir}/intl |
e3bc302b | 368 | %attr(755,root,root) %{ibdir}/intl/fbintl |
8fce9f85 | 369 | # should it be moved to %{_sysconfdir} and marked as config? |
6302c6a3 | 370 | %{ibdir}/intl/fbintl.conf |
0a93a495 | 371 | %dir %{ibdir}/plugins |
eee53b00 | 372 | %attr(755,root,root) %{ibdir}/plugins/libChaCha.so |
1856fc63 | 373 | %attr(755,root,root) %{ibdir}/plugins/libDefault_Profiler.so |
0a93a495 | 374 | %attr(755,root,root) %{ibdir}/plugins/libfbtrace.so |
eee53b00 | 375 | %attr(755,root,root) %{ibdir}/plugins/libEngine13.so |
d8c389bc JB |
376 | %attr(755,root,root) %{ibdir}/plugins/libLegacy_Auth.so |
377 | %attr(755,root,root) %{ibdir}/plugins/libLegacy_UserManager.so | |
378 | %attr(755,root,root) %{ibdir}/plugins/libSrp.so | |
379 | %attr(755,root,root) %{ibdir}/plugins/libudr_engine.so | |
380 | %dir %{ibdir}/plugins/udr | |
eee53b00 BS |
381 | %attr(755,root,root) %{ibdir}/plugins/udr/libudf_compat.so |
382 | %{ibdir}/plugins/udr/udf_compat.sql | |
d8c389bc JB |
383 | %attr(755,root,root) %{ibdir}/plugins/udr/libudrcpp_example.so |
384 | %{ibdir}/plugins/udr_engine.conf | |
385 | ||
3e30a275 | 386 | %{ibdir}/firebird.msg |
75e61db1 | 387 | %dir %attr(770,root,firebird) /var/lib/firebird |
1856fc63 | 388 | %attr(660,root,firebird) %config(noreplace) %verify(not md5 mtime size) /var/lib/firebird/security5.fdb |
75e61db1 KK |
389 | %attr(660,root,firebird) %config(noreplace) %verify(not md5 mtime size) /var/log/firebird.log |
390 | ||
9fa49beb | 391 | |
27e76269 JR |
392 | %files dirs |
393 | %defattr(644,root,root,755) | |
394 | %dir %{ibdir} | |
395 | %dir %{ibdir}/bin | |
396 | ||
9fa49beb JB |
397 | %files lib |
398 | %defattr(644,root,root,755) | |
3e30a275 | 399 | %attr(755,root,root) %{_libdir}/libfbclient.so.*.*.* |
6302c6a3 | 400 | %attr(755,root,root) %ghost %{_libdir}/libfbclient.so.2 |
0c3071c2 | 401 | |
3e30a275 JB |
402 | # InterBase/old Firebird compatibility symlinks |
403 | %attr(755,root,root) %{_libdir}/libgds.so.0 | |
404 | # needed here - original libgds.so.0 didn't have soname, so some old | |
405 | # (possibly not open-source) apps may be linked with libgds.so | |
406 | %attr(755,root,root) %{_libdir}/libgds.so | |
9fa49beb JB |
407 | |
408 | %files devel | |
409 | %defattr(644,root,root,755) | |
acde953e | 410 | %attr(755,root,root) %{_bindir}/fb_config |
3e30a275 | 411 | %attr(755,root,root) %{_libdir}/libfbclient.so |
c6be0ab0 | 412 | %attr(755,root,root) %{ibdir}/bin/fb_config |
aacfabf3 BS |
413 | %attr(755,root,root) %{ibdir}/bin/gpre |
414 | %attr(755,root,root) %{_bindir}/gpre | |
e77a3775 | 415 | %{_pkgconfigdir}/fbclient.pc |
d8c389bc | 416 | %{_includedir}/firebird |
6302c6a3 JB |
417 | %{_includedir}/ib_util.h |
418 | %{_includedir}/ibase.h | |
419 | %{_includedir}/iberror.h | |
420 | %{_includedir}/perf.h | |
9fa49beb JB |
421 | %{_examplesdir}/%{name}-%{version} |
422 | ||
6d06b555 JB |
423 | %files doc |
424 | %defattr(644,root,root,755) | |
425 | %doc docs/* | |
aacfabf3 BS |
426 | |
427 | %files ss | |
428 | %defattr(644,root,root,755) | |
429 | %attr(640,root,firebird) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/firebird/conf.d/server_mode-ss.conf | |
430 | %attr(754,root,root) /etc/rc.d/init.d/firebird | |
431 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/firebird | |
432 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tmpfiles.d/firebird.conf | |
433 | %attr(755,root,root) %{ibdir}/bin/fbguard | |
535fa407 | 434 | %dir %attr(770,root,firebird) /run/firebird |
aacfabf3 BS |
435 | %{systemdunitdir}/firebird.service |
436 | ||
437 | %files classic | |
438 | %defattr(644,root,root,755) | |
439 | %attr(640,root,firebird) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/firebird/conf.d/server_mode-classic.conf | |
440 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/firebird | |
441 | %{systemdunitdir}/firebird-classic@.service | |
442 | %{systemdunitdir}/firebird-classic.socket |