]>
Commit | Line | Data |
---|---|---|
e8701a1f KK |
1 | %define pname rfunc |
2 | %define subver rc1 | |
3 | Summary: rFunc - UDF Library for InterBase/Firebird server | |
4 | Name: Firebird-rfunc | |
5 | Version: 2.1.3.1 | |
6 | Release: 0.%{subver}.1 | |
7 | License: LGPL v2.1 | |
8 | Group: Libraries | |
72d4bfe2 | 9 | Source0: http://downloads.sourceforge.net/rfunc/%{pname}-%{version}-RC1-unix.tar.gz |
e8701a1f KK |
10 | # Source0-md5: 8105d437b058defb82d83aac9b665b6d |
11 | Patch0: %{name}-makefile.patch | |
12 | URL: http://rfunc.sourceforge.net/ | |
13 | BuildRequires: Firebird-devel | |
14 | BuildRequires: libuuid-devel | |
15 | BuildRequires: sed >= 4.0 | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %define ibdir %{_libdir}/interbase | |
19 | ||
20 | %description | |
21 | rFunc is a UDF Library for InterBase/Firebird server. The library | |
72d4bfe2 KK |
22 | represents a set of user's (UDF) string, bit, numerical functions, and |
23 | also for operation with dates&time and BLOBs. | |
e8701a1f KK |
24 | |
25 | %prep | |
26 | %setup -q -c | |
27 | %patch0 -p1 | |
28 | ||
29 | %build | |
30 | %{__make} -C source \ | |
31 | CC="%{__cc}" \ | |
32 | LIBDIR="%{_libdir}" \ | |
33 | USERCFLAGS="%{rpmcflags}" | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | install -d $RPM_BUILD_ROOT%{ibdir}/UDF | |
39 | install source/rfunc $RPM_BUILD_ROOT%{ibdir}/UDF/rfunc.so | |
40 | install sql/rfunc6.sql $RPM_BUILD_ROOT%{ibdir}/UDF/rfunc.sql | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %doc doc/rfunc* doc/*.css doc/img | |
48 | %lang(ru) %doc doc/rus | |
49 | %attr(755,root,root) %{ibdir}/UDF/rfunc.so | |
50 | %{ibdir}/UDF/rfunc.sql |