Accepting request 74845 from home:AndreasStieger:branches:network:utilities
- fix SLES_9 build - fix for missing licenses package in Factory - fix rpmlint warning about LGPL address - fix rpmlint warning about GPL address - fix rpmlint warning about rpm macros in comments - fix osc commit warning of unreferenced signature files OBS-URL: https://build.opensuse.org/request/show/74845 OBS-URL: https://build.opensuse.org/package/show/network:utilities/bwbar?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
75458e2c99
commit
c7abdcff82
23
bwbar.spec
23
bwbar.spec
@@ -11,7 +11,7 @@
|
||||
# norootforbuild
|
||||
|
||||
Name: bwbar
|
||||
BuildRequires: gcc-c++ libpng-devel licenses
|
||||
BuildRequires: gcc-c++ libpng-devel
|
||||
Url: http://www.kernel.org/pub/software/web/bwbar/
|
||||
License: GPL v2 or later
|
||||
Group: Productivity/Networking/Other
|
||||
@@ -23,9 +23,7 @@ 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
|
||||
@@ -39,7 +37,8 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
#%patch
|
||||
|
||||
%{__cp} %{SOURCE1} .
|
||||
|
||||
%build
|
||||
CFLAGS="-Wall $RPM_OPT_FLAGS"
|
||||
@@ -47,12 +46,12 @@ CFLAGS="-Wall $RPM_OPT_FLAGS"
|
||||
--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}
|
||||
install -m 644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
|
||||
install -m 755 -D %{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}
|
||||
|
||||
@@ -61,6 +60,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%postun
|
||||
%insserv_cleanup
|
||||
%restart_on_update
|
||||
|
||||
%preun
|
||||
%stop_on_removal
|
||||
@@ -72,14 +72,5 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_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
|
||||
|
||||
|
Reference in New Issue
Block a user