75458e2c99
Request was accepted with message: looks ok to me OBS-URL: https://build.opensuse.org/package/show/network:utilities/bwbar?expand=0&rev=1
86 lines
2.1 KiB
RPMSpec
86 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package bwbar (Version 1.2.3)
|
|
#
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
Name: bwbar
|
|
BuildRequires: gcc-c++ libpng-devel licenses
|
|
Url: http://www.kernel.org/pub/software/web/bwbar/
|
|
License: GPL v2 or later
|
|
Group: Productivity/Networking/Other
|
|
AutoReqProv: on
|
|
Summary: Bandwidth usage bar
|
|
Version: 1.2.3
|
|
Release: 1
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Source1: COPYING
|
|
Source2: bwbar_config
|
|
Source3: bwbar_initscript
|
|
#Patch: %{name}.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Requires: licenses
|
|
|
|
%description
|
|
bwbar is a small program that generates a text and a graphical readout
|
|
of the current bandwidth use to be displayed on a web page.
|
|
|
|
It is used, among others, at http://www.kernel.org/.
|
|
|
|
Authors:
|
|
--------
|
|
H. Peter Anvin <hpa@zytor.com>
|
|
|
|
%prep
|
|
%setup -q
|
|
#%patch
|
|
|
|
%build
|
|
CFLAGS="-Wall $RPM_OPT_FLAGS"
|
|
%configure --prefix=%{_prefix} \
|
|
--infodir=%{_infodir} \
|
|
--mandir=%{_mandir}
|
|
make
|
|
%install
|
|
ln -vs /usr/share/doc/licenses/GPL-2.0.txt COPYING
|
|
install -d $RPM_BUILD_ROOT%{_bindir}
|
|
install -m 755 --strip bwbar $RPM_BUILD_ROOT%{_bindir}
|
|
install -m 644 -D -T %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
|
|
install -m 755 -D -T %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/%{name}
|
|
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
|
|
ln -svf ../../etc/init.d/%{name} $RPM_BUILD_ROOT/%{_sbindir}/rc%{name}
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%postun
|
|
%insserv_cleanup
|
|
|
|
%preun
|
|
%stop_on_removal
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc README COPYING
|
|
%{_bindir}/*
|
|
%{_sbindir}/*
|
|
%config %{_sysconfdir}/%{name}
|
|
%config %{_sysconfdir}/init.d/%{name}
|
|
#%{_mandir}/*/*
|
|
#%{_datadir}/locale/*/*/*
|
|
#%{_datadir}/%{name}
|
|
%changelog
|
|
-------------------------------------------------------------------
|
|
* Wed Mar 25 2009 andreas.stieger@gmx.de
|
|
|
|
- initial package
|
|
- runlevel script and config file
|
|
- added GPLv2 text
|
|
|