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