commit 9c39af6d5986d5f35af357eafebf14c66dd83356
Author: Elan Ruusamäe <[email protected]>
Date:   Wed Apr 15 11:23:08 2015 +0300

    up to 0.49, verbose man files
    
    fixes '[' or ']' in ps listing
    https://github.com/liske/needrestart/issues/6#issuecomment-93040126

 format.patch                | 29 -----------------------------
 perl-Proc-ProcessTable.spec | 23 +++++++++++------------
 2 files changed, 11 insertions(+), 41 deletions(-)
---
diff --git a/perl-Proc-ProcessTable.spec b/perl-Proc-ProcessTable.spec
index 19a45bb..0679203 100644
--- a/perl-Proc-ProcessTable.spec
+++ b/perl-Proc-ProcessTable.spec
@@ -1,21 +1,20 @@
 #
 # Conditional build:
 %bcond_with    tests   # do perform "make test" (requires mounted /proc)
-#
-%include       /usr/lib/rpm/macros.perl
+
 %define                pdir    Proc
 %define                pnam    ProcessTable
+%include       /usr/lib/rpm/macros.perl
 Summary:       Proc::ProcessTable - Perl interface to the UNIX process table
 Summary(pl.UTF-8):     Proc::ProcessTable - interfejs perlowy do uniksowej 
tabeli procesów
 Name:          perl-Proc-ProcessTable
-Version:       0.48
-Release:       4
+Version:       0.49
+Release:       1
 # same as perl
 License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
 Source0:       
http://www.cpan.org/modules/by-module/Proc/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: ddc2c67cd1184ddb0ba1f84e89b90e2a
-Patch0:                format.patch
+# Source0-md5: 6bb75f4717bce5cf866d68f6c13321bd
 URL:           http://search.cpan.org/dist/Proc-ProcessTable/
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
@@ -46,7 +45,6 @@ sposobem.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
-%patch0 -p1
 
 %build
 %{__perl} Makefile.PL \
@@ -59,11 +57,11 @@ sposobem.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
+
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-install example.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+mv 
$RPM_BUILD_ROOT{%{perl_vendorarch}/Proc/example.pl,%{_examplesdir}/%{name}-%{version}}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -78,6 +76,7 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{perl_vendorarch}/auto/Proc/ProcessTable
 %attr(755,root,root) %{perl_vendorarch}/auto/Proc/ProcessTable/*.so
 %{perl_vendorarch}/auto/Proc/ProcessTable/Process
-%dir %{_examplesdir}/%{name}-%{version}
-%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl
-%{_mandir}/man3/*
+%{_mandir}/man3/Proc::Killall.3pm*
+%{_mandir}/man3/Proc::Killfam.3pm*
+%{_mandir}/man3/Proc::ProcessTable*
+%{_examplesdir}/%{name}-%{version}
diff --git a/format.patch b/format.patch
deleted file mode 100644
index a0083f3..0000000
--- a/format.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- Proc-ProcessTable-0.48/os/Linux.c.wiget    2013-04-07 12:56:30.000000000 
+0200
-+++ Proc-ProcessTable-0.48/os/Linux.c  2013-06-10 21:26:13.953054773 +0200
-@@ -394,7 +394,7 @@ static void eval_link(char *pid, char *l
- 
-     /* copy the path onto our obstack, set the value (somewhere in pts)
-      * and free the results of canonicalize_file_name */
--    obstack_printf(mem_pool, link);
-+    obstack_printf(mem_pool, "%s", link);
-     obstack_1grow(mem_pool, '\0');
- 
-     *ptr = (char *) obstack_finish(mem_pool);
-@@ -635,7 +635,7 @@ void OS_get_table()
-         bzero(prs, sizeof(struct procstat));
- 
-         /* intilize the format string */
--        obstack_printf(&mem_pool, get_string(STR_DEFAULT_FORMAT));
-+        obstack_printf(&mem_pool, "%s", get_string(STR_DEFAULT_FORMAT));
-         obstack_1grow(&mem_pool, '\0');
-         format_str = (char *) obstack_finish(&mem_pool);
- 
---- Proc-ProcessTable-0.48/ProcessTable.xs.wiget       2013-06-10 
21:29:03.826413135 +0200
-+++ Proc-ProcessTable-0.48/ProcessTable.xs     2013-06-10 21:27:54.582453793 
+0200
-@@ -402,5 +402,5 @@ _initialize_os(obj)
-      char* error;
- 
-      if( (error = OS_initialize()) != NULL ){
--       croak(error);
-+       croak("%s", error);
-      }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Proc-ProcessTable.git/commitdiff/9c39af6d5986d5f35af357eafebf14c66dd83356

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to