summaryrefslogtreecommitdiff
path: root/packaging/rpmorphan.spec
blob: 0d23ffe5fa3bcc35e211361da2bbaea4c2ed47ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
%global _binary_filedigest_algorithm 1
%global _source_filedigest_algorithm 1

Summary: 	List packages that have no dependencies (like deborphan)
Name: 		rpmorphan
Version:    1.11
Release: 	1
Group:		Applications/System
License:	GPLv2+

BuildArch:	noarch

URL: 	http://rpmorphan.sourceforge.net
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1001: 	rpmorphan.manifest
Requires:	perl
Requires:	rpm

%description
rpmorphan finds "orphaned"[2,5] packages on your system. It determines
which packages have no other packages depending on their installation,
and shows you a list of these packages.  It intends to be clone of
deborphan Debian tools for rpm packages.

It will try to help you to remove unused packages, for example:
* after a distribution upgrade
* when you want to suppress packages after some tests

Several tools are also provided :
* rpmusage - display rpm packages last use date
* rpmdep - display the full dependency of an installed rpm package
* rpmduplicates - find packages with several version installed
* rpmextra - find installed packages not in distribution


%prep
%setup -q
cp %{SOURCE1001} .

%build
make %{?_smp_mflags}


%install
%make_install


%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
%doc COPYING
%{_bindir}/rpmorphan-lib.pl
%{_bindir}/rpmorphan-curses-lib.pl
%{_bindir}/rpmorphan-tk-lib.pl
%{_bindir}/rpmorphan.pl
%{_bindir}/rpmorphan
%{_bindir}/grpmorphan
%{_bindir}/rpmusage.pl
%{_bindir}/rpmusage
%{_bindir}/rpmdep.pl
%{_bindir}/rpmdep
%{_bindir}/rpmduplicates.pl
%{_bindir}/rpmduplicates
%{_bindir}/rpmextra.pl
%{_bindir}/rpmextra
%ghost /var/log/rpmorphan.log
%dir /var/lib/rpmorphan
%config(noreplace) %attr(644, root, root) /var/lib/rpmorphan/keep
%dir /usr/lib/rpmorphan
%dir /usr/lib/rpmorphan/locale
%dir /usr/lib/rpmorphan/locale/en
%attr(644, root, root) /usr/lib/rpmorphan/locale/en/rpmorphan_trans.pl
%dir /usr/lib/rpmorphan/locale/fr_FR
%attr(644, root, root) /usr/lib/rpmorphan/locale/fr_FR/rpmorphan_trans.pl
%config(noreplace) /etc/logrotate.d/rpmorphan
%config(noreplace) /etc/rpmorphanrc
%doc %{_mandir}/man1/rpmorphan.1*
%doc %{_mandir}/man1/rpmusage.1*
%doc %{_mandir}/man1/rpmdep.1*
%doc %{_mandir}/man1/rpmduplicates.1*
%doc %{_mandir}/man1/rpmextra.1*