Selaa lähdekoodia

upgrading package: bittorrent 4.1.3 -> 4.1.4

Ralf S. Engelschall 21 vuotta sitten
vanhempi
commit
f2e4790528
1 muutettua tiedostoa jossa 11 lisäystä ja 9 poistoa
  1. 11 9
      bittorrent/bittorrent.spec

+ 11 - 9
bittorrent/bittorrent.spec

@@ -32,8 +32,8 @@ Distribution: OpenPKG
 Class:        PLUS
 Group:        Network
 License:      MIT-style
-Version:      4.1.3
-Release:      20050715
+Version:      4.1.4
+Release:      20050820
 
 #   list of sources
 Source0:      http://www.bittorrent.com/dl/BitTorrent-%{version}.tar.gz
@@ -74,14 +74,13 @@ AutoReqProv:  no
     %{l_shtool} mkdir -f -p -m 755 \
         $RPM_BUILD_ROOT%{l_prefix}/libexec/bittorrent
     ( 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 "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
     ) || exit $?
     %{l_shtool} mkdir -f -p -m 755 \
@@ -94,9 +93,12 @@ AutoReqProv:  no
         %{SOURCE rc.bittorrent} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
     %{l_shtool} mkdir -f -p -m 755 \
         $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_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