|
|
@@ -32,8 +32,13 @@ Packager: The OpenPKG Project
|
|
|
Distribution: OpenPKG [EXP]
|
|
|
Group: System
|
|
|
License: MIT-style
|
|
|
-Version: 0.1.1
|
|
|
-Release: 20020723
|
|
|
+Version: 0.1.3
|
|
|
+Release: 20020724
|
|
|
+
|
|
|
+# package options
|
|
|
+%ifndef with_debug
|
|
|
+%define with_debug no
|
|
|
+%endif
|
|
|
|
|
|
# list of sources
|
|
|
Source0: ftp://ftp.ossp.org/pkg/lib/fsl/fsl-%{version}.tar.gz
|
|
|
@@ -54,6 +59,9 @@ AutoReqProv: no
|
|
|
advantage of OSSP l2 by just linking this library in before libc.
|
|
|
The source code of the program remains unchanged.
|
|
|
|
|
|
+ Options
|
|
|
+ with_debug=%{with_debug}
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
|
|
|
@@ -63,6 +71,14 @@ AutoReqProv: no
|
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
|
--with-cfgdir=%{l_prefix}/etc/fsl \
|
|
|
+%if "%{with_debug}" == "yes"
|
|
|
+ --with-debug="\
|
|
|
+ prefix(prefix=\\\"%%%%b %%%%d %%%%H:%%%%M:%%%%S <%%%%L> [%%%%P]: \\\", timezone=local) \
|
|
|
+ -> { \
|
|
|
+ trace : file(path=\\\"%{l_prefix}/var/fsl/trace.log\\\",append=1,perm=432); \
|
|
|
+ (debug): file(path=\\\"%{l_prefix}/var/fsl/debug.log\\\",append=0,perm=432) \
|
|
|
+ }" \
|
|
|
+%endif
|
|
|
--disable-shared
|
|
|
%{l_make} %{l_mflags}
|
|
|
|
|
|
@@ -73,6 +89,10 @@ AutoReqProv: no
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl
|
|
|
%{l_shtool} install -c -m 644 \
|
|
|
%{SOURCE fsl.default} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
|
|
|
+ %{l_shtool} mkdir -f -p -m 755 \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/fsl
|
|
|
+ touch $RPM_BUILD_ROOT%{l_prefix}/var/fsl/trace.log
|
|
|
+ touch $RPM_BUILD_ROOT%{l_prefix}/var/fsl/debug.log
|
|
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.la
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
|