packages: iproute2/iproute2.spec - doc subpackage
glen
glen at pld-linux.org
Wed Dec 15 22:39:04 CET 2010
Author: glen Date: Wed Dec 15 21:39:04 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- doc subpackage
---- Files affected:
packages/iproute2:
iproute2.spec (1.196 -> 1.197)
---- Diffs:
================================================================
Index: packages/iproute2/iproute2.spec
diff -u packages/iproute2/iproute2.spec:1.196 packages/iproute2/iproute2.spec:1.197
--- packages/iproute2/iproute2.spec:1.196 Wed Dec 15 22:29:33 2010
+++ packages/iproute2/iproute2.spec Wed Dec 15 22:38:59 2010
@@ -11,14 +11,14 @@
%bcond_with uClibc # do some hacks to build with uClibc
%bcond_with iface_descr # build with interface description support
-Summary: Advanced IP routing and network device configuration tools
+Summary: Advanced IP routing and network device configuration tools
Summary(es.UTF-8): Herramientas para encaminamiento avanzado y configuración de interfaces de red
Summary(pl.UTF-8): Narzędzie do kontrolowania Sieci w kernelach
Summary(pt_BR.UTF-8): Ferramentas para roteamento avançado e configuração de interfaces de rede
Name: iproute2
# do not use ,,2.6.X'' as version here, put whole number like 2.6.8
Version: 2.6.35
-Release: 3
+Release: 4
License: GPL
Group: Networking/Admin
Source0: http://devresources.linux-foundation.org/dev/iproute2/download/%{name}-%{version}.tar.bz2
@@ -102,6 +102,14 @@
Ta biblioteka udostępnia interfejs do interfejsu netlink między jądrem
a przestrzenią użytkownika.
+%package doc
+Summary: ip and tc documentation with examples
+License: GPL v2+
+Group: Applications/System
+
+%description doc
+The iproute documentation contains howtos and examples of settings.
+
%prep
%setup -q
#rm -rf include/linux
@@ -162,13 +170,18 @@
cp -a include/libnetlink.h $RPM_BUILD_ROOT%{_includedir}
%{?with_tc:install -p tc/*.so $RPM_BUILD_ROOT%{_libdir}/tc}
+%if %{with doc}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README README.decnet README.iproute2+tc README.lnstat RELNOTES
-%doc ChangeLog %{?with_doc:doc/*.ps}
+%doc README README.decnet README.iproute2+tc README.distribution README.lnstat
+%doc ChangeLog
%attr(755,root,root) %{_sbindir}/ifstat
%attr(755,root,root) %{_sbindir}/ip
%attr(755,root,root) %{_sbindir}/lnstat
@@ -184,8 +197,10 @@
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_scopes
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_tables
%{_mandir}/man8/*
-%{?with_tc:%dir %{_libdir}/tc}
-%{?with_tc:%attr(755,root,root) %{_libdir}/tc/*.so}
+%if %{with tc}
+%dir %{_libdir}/tc
+%attr(755,root,root) %{_libdir}/tc/*.so
+%endif
%files -n libnetlink-devel
%defattr(644,root,root,755)
@@ -193,12 +208,23 @@
%{_includedir}/libnetlink.h
%{_mandir}/man3/libnetlink.3*
+%if %{with doc}
+%files doc
+%defattr(644,root,root,755)
+%doc doc/*.ps
+%doc RELNOTES
+%{_examplesdir}/%{name}-%{version}
+%endif
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.197 2010/12/15 21:38:59 glen
+- doc subpackage
+
Revision 1.196 2010/12/15 21:29:33 glen
- you can't disable rpm macros with shell syntax, just turn bcond off
- updated summary and desc from fedora
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/iproute2/iproute2.spec?r1=1.196&r2=1.197&f=u
More information about the pld-cvs-commit
mailing list