Skip to content

Commit

Permalink
Merge branch 'jb38578' into 'master'
Browse files Browse the repository at this point in the history
Rename psmisc-docs to psmisc-doc. JB#38578

See merge request mer-core/psmisc!1
  • Loading branch information
Tomin1 committed Jan 23, 2019
2 parents cfc36b6 + 7e49b34 commit 6f0db14
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
3 changes: 3 additions & 0 deletions psmisc.changes
@@ -1,3 +1,6 @@
* Wed Jan 09 2019 Tomi Leppänen <tomi.leppanen@jolla.com> - 22.13-7
- [packaging] Rename psmisc-docs to psmisc-doc. Contributes to JB#38578

* Mon Jan 27 2014 Oleg Girko <oleg.girko@jolla.com> - 22.13-6
- Add aarch64 support. Fixes JB#39688

Expand Down
27 changes: 20 additions & 7 deletions psmisc.spec
@@ -1,11 +1,7 @@
#
# Please submit bugfixes or comments via http://bugs.meego.com/
#

Name: psmisc
Version: 22.13
Release: 6
License: BSD/GPLv2+
Release: 7
License: GPLv2+
Summary: Utilities for managing processes on your system
Url: http://psmisc.sourceforge.net
Group: Applications/System
Expand All @@ -28,6 +24,15 @@ command sends a specified signal (SIGTERM if nothing is specified) to
processes identified by name. The fuser command identifies the PIDs
of processes that are using specified files or filesystems.

%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
Obsoletes: %{name}-docs

%description doc
Man pages for %{name}.

%prep
%setup -q
%patch0 -p1
Expand All @@ -47,10 +52,13 @@ pushd %{buildroot}/sbin;
ln -s ../usr/bin/killall pidof
popd

%docs_package
mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
install -m0644 -t %{buildroot}%{_docdir}/%{name}-%{version} \
AUTHORS ChangeLog NEWS README

%files
%defattr(-,root,root)
%license COPYING
/sbin/fuser
%{_bindir}/killall
/sbin/pidof
Expand All @@ -60,3 +68,8 @@ popd
%ifnarch aarch64
%{_bindir}/peekfd
%endif

%files doc
%defattr(-,root,root)
%{_mandir}/man1/*.*
%{_docdir}/%{name}-%{version}

0 comments on commit 6f0db14

Please sign in to comment.