append standard CFLAGS
Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
This commit is contained in:
parent
36822d8e42
commit
9e9c8b7f1e
@ -1,13 +1,12 @@
|
||||
Summary: A console-based network monitoring utility
|
||||
Name: iptraf-ng
|
||||
Version: 1.1.3.1
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Source0: https://fedorahosted.org/releases/i/p/iptraf-ng/%{name}-%{version}.tar.gz
|
||||
Source1: iptraf-ng-logrotate.conf
|
||||
URL: https://fedorahosted.org/iptraf-ng/
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: ncurses-devel
|
||||
Obsoletes: iptraf < 3.1
|
||||
Provides: iptraf = 3.1
|
||||
@ -38,22 +37,22 @@ on a wide variety of supported network cards.
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags}
|
||||
make %{?_smp_mflags} V=1 CFLAGS+="-W -std=gnu99 %{optflags}"
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr
|
||||
rm -rf %{buildroot}
|
||||
make install DESTDIR=%{buildroot} prefix=%{_prefix}
|
||||
|
||||
# remove everything besides the html and pictures in Documentation
|
||||
find Documentation -type f | grep -v '\.html$\|\.png$\|/stylesheet' | \
|
||||
xargs rm -f
|
||||
|
||||
install -D -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/iptraf-ng
|
||||
install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/iptraf-ng
|
||||
|
||||
install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/{lock,log,lib}/iptraf-ng
|
||||
install -d -m 0755 %{buildroot}%{_localstatedir}/{lock,log,lib}/iptraf-ng
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
@ -69,6 +68,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/iptraf-ng
|
||||
|
||||
%changelog
|
||||
* Thu May 24 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.3.1-2
|
||||
- append standard CFLAGS
|
||||
|
||||
* Wed May 23 2012 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.3.1-1
|
||||
- new upstream iptraf-ng-1.1.3.1-1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user