]> git.pld-linux.org Git - SPECS.git/blob - rpmlist.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / rpmlist.spec
1 %define         rpmlist_rev 1.5
2 Summary:        RPM browser
3 Summary(pl.UTF-8):      Przeglądarka RPM-ów
4 Name:           rpmlist
5 Version:        %{rpmlist_rev}
6 Release:        1
7 License:        GPL
8 Group:          Applications/System
9 Source0:        %{name}.py
10 BuildRequires:  rpm-pythonprov
11 Requires:       python-poldek
12 Requires:       python-rpm
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 This package contains a HTTP server which provides information about
18 installed RPMs and those from poldek's databases. By default program
19 listens on port 9999, but you could change this, for example by:
20 rpmlist 7777.
21
22 %description -l pl.UTF-8
23 Ten pakiet zawiera serwer www dostarczający informacji o
24 zainstalowanych pakietach RPM oraz o RPM-ach z baz poldka. Domyślnie
25 serwer nasłuchuje na porcie 9999. Można to zmienić uruchamiając
26 rpmlist np. tak: rpmlist 7777.
27
28
29 %prep
30 rev=$(awk '/^#.*Revision:.*Date/{print $3}' %{SOURCE0})
31 if [ "$rev" != "%rpmlist_rev" ]; then
32         : Update rpmlist_rev define to $rev, and retry
33         exit 1
34 fi
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_bindir}
39 install %{SOURCE0} $RPM_BUILD_ROOT%{_bindir}/rpmlist
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %files
45 %defattr(644,root,root,755)
46 %attr(755,root,root) %{_bindir}/rpmlist
This page took 0.242232 seconds and 3 git commands to generate.