On Thu, Oct 18, 2007 at 11:37:11PM +0200, Kacper Kornet wrote:
> Ponieważ widzę, że arekm już poprawił sekcję %install, to proponuję
> jeszcze wyczyścić trochę sekcję %build. Łatka w załączniku.

Z małą poprawką.

-- 
  Kacper Kornet
Index: openssl.spec
===================================================================
RCS file: /cvsroot/SPECS/openssl.spec,v
retrieving revision 1.177
diff -u -r1.177 openssl.spec
--- openssl.spec        18 Oct 2007 22:32:54 -0000      1.177
+++ openssl.spec        19 Oct 2007 15:00:41 -0000
@@ -250,52 +250,17 @@
        CC="%{__cc}" \
        INSTALLTOP=%{_prefix}
 
-# Conv PODs to man pages. "openssl_" prefix is added to each manpage
+# "openssl_" prefix is added to each manpage
 # to avoid potential conflicts with others packages.
-center="OpenSSL 0.9.7"
-rel="OpenSSL 0.9.7"
 
-cd doc/apps || exit 1
-%{__perl} -pi -e 's/(\W)((?<!openssl_)\w+)(\(\d\))/$1openssl_$2$3/g; 
s/openssl_openssl/openssl/g;' *.pod;
-
-for pod in *.pod; do
-       if [ $pod != "openssl.pod" ]; then
-               mv -f $pod openssl_$pod;
-               pod=openssl_$pod;
-       fi
-
-       sec=1
-       if [ $pod = "openssl_config.pod" ]; then
-               sec=5
-       fi
-
-       manpage=`basename $pod .pod`.$sec;
-       pod2man --section="$sec" --release="$rel" --center="$center" \
-               $pod > $manpage;
-       echo "$manpage";
-done
-cd ..
-
-sec=3
-for dir in ssl crypto; do
+for dir in doc/{apps,ssl,crypto}; do
        cd $dir || exit 1;
-       if [ $dir = "ssl" ]; then
-               rel="OpenSSL SSL/TLS library"
-       elif [ $dir = "crypto" ]; then
-               rel="OpenSSL cryptographic library"
-       fi
-
        %{__perl} -pi -e 's/(\W)((?<!openssl_)\w+)(\(\d\))/$1openssl_$2$3/g; 
s/openssl_openssl/openssl/g;' *.pod;
 
-       for pod in *.pod; do
-               sec=`[ "$pod" = "des_modes.pod" ] && echo 7 || echo 3`;
+       for pod in !(openssl*).pod; do
                mv -f $pod openssl_$pod;
-               pod=openssl_$pod;
-               manpage=`basename $pod .pod`.$sec;
-               pod2man --section="$sec" --release="$rel" --center=" " $pod > 
$manpage;
-               echo "$manpage";
        done
-       cd ..
+       cd ../..
 done
 
 #cd perl
_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl

Odpowiedź listem elektroniczym