Browse Source

upgrading package: fsl 0.1.1 -> 0.1.3

Thomas Lotterer 24 years ago
parent
commit
787f3a2551
1 changed files with 22 additions and 2 deletions
  1. 22 2
      fsl/fsl.spec

+ 22 - 2
fsl/fsl.spec

@@ -32,8 +32,13 @@ Packager:     The OpenPKG Project
 Distribution: OpenPKG [EXP]
 Distribution: OpenPKG [EXP]
 Group:        System
 Group:        System
 License:      MIT-style
 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
 #   list of sources
 Source0:      ftp://ftp.ossp.org/pkg/lib/fsl/fsl-%{version}.tar.gz
 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.
     advantage of OSSP l2 by just linking this library in before libc.
     The source code of the program remains unchanged.
     The source code of the program remains unchanged.
 
 
+    Options
+    with_debug=%{with_debug}
+
 %prep
 %prep
     %setup -q
     %setup -q
 
 
@@ -63,6 +71,14 @@ AutoReqProv:  no
     ./configure \
     ./configure \
         --prefix=%{l_prefix} \
         --prefix=%{l_prefix} \
         --with-cfgdir=%{l_prefix}/etc/fsl \
         --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
         --disable-shared
     %{l_make} %{l_mflags}
     %{l_make} %{l_mflags}
 
 
@@ -73,6 +89,10 @@ AutoReqProv:  no
         $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
         $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
     %{l_shtool} install -c -m 644 \
     %{l_shtool} install -c -m 644 \
         %{SOURCE fsl.default} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
         %{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
     rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.la
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}