Browse Source

upgrading package: bittorrent 4.1.3 -> 4.1.4

Ralf S. Engelschall 21 years ago
parent
commit
f2e4790528
1 changed files with 11 additions and 9 deletions
  1. 11 9
      bittorrent/bittorrent.spec

+ 11 - 9
bittorrent/bittorrent.spec

@@ -32,8 +32,8 @@ Distribution: OpenPKG
 Class:        PLUS
 Class:        PLUS
 Group:        Network
 Group:        Network
 License:      MIT-style
 License:      MIT-style
-Version:      4.1.3
-Release:      20050715
+Version:      4.1.4
+Release:      20050820
 
 
 #   list of sources
 #   list of sources
 Source0:      http://www.bittorrent.com/dl/BitTorrent-%{version}.tar.gz
 Source0:      http://www.bittorrent.com/dl/BitTorrent-%{version}.tar.gz
@@ -74,14 +74,13 @@ AutoReqProv:  no
     %{l_shtool} mkdir -f -p -m 755 \
     %{l_shtool} mkdir -f -p -m 755 \
         $RPM_BUILD_ROOT%{l_prefix}/libexec/bittorrent
         $RPM_BUILD_ROOT%{l_prefix}/libexec/bittorrent
     ( cd $RPM_BUILD_ROOT%{l_prefix}/bin
     ( cd $RPM_BUILD_ROOT%{l_prefix}/bin
-      for src in *.py; do
-          dst=`echo $src | sed -e 's;\.py$;;'`
-          mv $src $RPM_BUILD_ROOT%{l_prefix}/libexec/bittorrent/$src
+      for bin in *; do
+          mv $bin $RPM_BUILD_ROOT%{l_prefix}/libexec/bittorrent/$bin
           ( echo "#!/bin/sh"
           ( echo "#!/bin/sh"
             echo "PYTHONPATH=\"%{l_prefix}/libexec/bittorrent\"; export PYTHONPATH"
             echo "PYTHONPATH=\"%{l_prefix}/libexec/bittorrent\"; export PYTHONPATH"
-            echo "exec %{l_prefix}/libexec/bittorrent/$src \${1+\"\$@\"}"
-          ) >$RPM_BUILD_ROOT%{l_prefix}/bin/$dst
-          chmod a+x $RPM_BUILD_ROOT%{l_prefix}/bin/$dst
+            echo "exec %{l_prefix}/libexec/bittorrent/$bin \${1+\"\$@\"}"
+          ) >$RPM_BUILD_ROOT%{l_prefix}/bin/$bin
+          chmod a+x $RPM_BUILD_ROOT%{l_prefix}/bin/$bin
       done
       done
     ) || exit $?
     ) || exit $?
     %{l_shtool} mkdir -f -p -m 755 \
     %{l_shtool} mkdir -f -p -m 755 \
@@ -94,9 +93,12 @@ AutoReqProv:  no
         %{SOURCE rc.bittorrent} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
         %{SOURCE rc.bittorrent} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
     %{l_shtool} mkdir -f -p -m 755 \
     %{l_shtool} mkdir -f -p -m 755 \
         $RPM_BUILD_ROOT%{l_prefix}/var/bittorrent
         $RPM_BUILD_ROOT%{l_prefix}/var/bittorrent
+    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc
+    rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
         %{l_files_std} \
         %{l_files_std} \
-        '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/bittorrent'
+        '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/bittorrent' \
+        '%config %{l_prefix}/etc/bittorrent/*'
 
 
 %files -f files
 %files -f files