[procps] added devel package

Jan Görig jgorig at fedoraproject.org
Tue Oct 19 07:45:15 UTC 2010


commit 5a919960138bdfb888c7b3e4e4fdc3ef3e281e70
Author: Jan Görig <jgorig at redhat.com>
Date:   Tue Oct 19 09:42:18 2010 +0200

    added devel package

 procps.spec |   28 +++++++++++++++++++++++++---
 1 files changed, 25 insertions(+), 3 deletions(-)
---
diff --git a/procps.spec b/procps.spec
index bdcf6b2..f90072c 100644
--- a/procps.spec
+++ b/procps.spec
@@ -1,7 +1,7 @@
 Summary: System and process monitoring utilities
 Name: procps
 Version: 3.2.8
-Release: 13%{?dist}
+Release: 14%{?dist}
 License: GPLv2+ and LGPLv2+
 Group: Applications/System
 URL: http://procps.sourceforge.net
@@ -117,6 +117,14 @@ virtual memory statistics about processes, memory, paging, block
 I/O, traps, and CPU activity. The pwdx command reports the current 
 working directory of a process or processes.
 
+%package devel
+Summary:  System and process monitoring utilities
+Group:    Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+System and process monitoring utilities development headers
+
 %prep
 %setup -q
 
@@ -171,7 +179,7 @@ make SHARED=1 CFLAGS="$RPM_OPT_FLAGS" W_SHOWFROM=-DW_SHOWFROM lib64=%{_lib}
 %install
 rm -rf %{buildroot}
 make ldconfig=true DESTDIR=%{buildroot} lib64=%{_lib} install="install -D" \
-	SKIP="/bin/kill /usr/share/man/man1/kill.1" install
+      SKIP="/bin/kill /usr/share/man/man1/kill.1" install
 mkdir -p %{buildroot}/%{_docdir}/procps-%{version}
 # keep 'rpm' happy...
 chmod -R u+w %{buildroot}/sbin
@@ -179,6 +187,12 @@ chmod -R u+w %{buildroot}/bin
 chmod -R u+w %{buildroot}/usr/bin
 chmod -R u+w %{buildroot}/lib*
 
+mkdir -p %{buildroot}/%{_includedir}/proc
+install -Dpm 644 proc/*.h %{buildroot}/%{_includedir}/proc
+pushd %{buildroot}/%{_lib}
+ln -s libproc-%{version}.so libproc.so
+popd
+
 %clean
 rm -rf %{buildroot}
 
@@ -189,7 +203,7 @@ rm -rf %{buildroot}
 %files
 %defattr(0644,root,root,755)
 %doc NEWS BUGS TODO FAQ
-%attr(755,root,root) /%{_lib}/*
+%attr(755,root,root) /%{_lib}/libproc-%{version}.so
 %attr(755,root,root) /bin/ps
 %attr(755,root,root) /sbin/sysctl
 %attr(755,root,root) /usr/bin/*
@@ -198,7 +212,15 @@ rm -rf %{buildroot}
 %attr(0644,root,root) %{_mandir}/man8/*
 %attr(0644,root,root) %{_mandir}/man5/*
 
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/proc
+/%{_lib}/libproc.so
+
 %changelog
+* Tue Oct 19 2010 Jan Görig <jgorig at redhat.com> 3.2.8-14
+- added devel package (Hicham HAOUARI <hicham.haouari at gmail.com>)
+
 * Wed Sep 29 2010 jkeating - 3.2.8-13
 - Rebuilt for gcc bug 634757
 


More information about the scm-commits mailing list