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