[packages/libteam] cleanups

glen glen at pld-linux.org
Sun Aug 28 16:35:15 CEST 2016


commit ac41c7a5bb6d47379e86902402de3393ef50fb63
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Aug 28 17:35:06 2016 +0300

    cleanups

 libteam.spec | 23 ++++++++++-------------
 1 file changed, 10 insertions(+), 13 deletions(-)
---
diff --git a/libteam.spec b/libteam.spec
index ab90e53..06e8ffe 100644
--- a/libteam.spec
+++ b/libteam.spec
@@ -1,14 +1,12 @@
 Summary:	Library for controlling team network device
 Summary(pl.UTF-8):	Biblioteka do sterowania grupowymi urządzeniami sieciowymi
 Name:		libteam
-#%define     _snap   20160809
 Version:	1.26
 Release:	2
 License:	LGPL v2.1+
 Group:		Libraries
 Source0:	http://libteam.org/files/%{name}-%{version}.tar.gz
 # Source0-md5:	f8529a3bfee28500bef5faff6aeb0063
-#Source0:	%{name}-%{_snap}.zip
 Source1:    teamd.sysconfig
 Source2:    teamd-lvl1-service-generator
 Source3:    teamd-lvl2-service-generator
@@ -92,7 +90,7 @@ Statyczna biblioteka libteam.
 %package -n teamd
 Group:      Networking/Admin
 Summary:    Team network device control daemon
-Requires:   libteam = %{version}-%{release}
+Requires:   %{name} = %{version}-%{release}
 
 %description -n teamd
 The teamd package contains team network device control daemon.
@@ -136,9 +134,8 @@ install %{SOURCE7} $RPM_BUILD_ROOT%{systemdunitdir}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
 
 %post -n teamd
 /sbin/ldconfig
@@ -152,6 +149,13 @@ export NORESTART="yes"
 /sbin/ldconfig
 %systemd_reload
 
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/teamnl
+%attr(755,root,root) %{_libdir}/libteam.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libteam.so.5
+%{_mandir}/man8/teamnl.8*
+
 %files -n teamd
 %defattr(644,root,root,755)
 %doc README teamd/example_configs
@@ -171,13 +175,6 @@ export NORESTART="yes"
 %{_mandir}/man8/teamd.8*
 %{_mandir}/man8/teamdctl.8*
 
-%files
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/teamnl
-%attr(755,root,root) %{_libdir}/libteam.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libteam.so.5
-%{_mandir}/man8/teamnl.8*
-
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libteam.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libteam.git/commitdiff/ac41c7a5bb6d47379e86902402de3393ef50fb63



More information about the pld-cvs-commit mailing list