Cleanup spec, fix deps, use %%license, only need COPYING in libteam as all other packages depend on it
This commit is contained in:
parent
f121727893
commit
b7d2eadf59
37
libteam.spec
37
libteam.spec
@ -1,15 +1,16 @@
|
||||
Name: libteam
|
||||
Version: 1.27
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
Summary: Library for controlling team network device
|
||||
Group: System Environment/Libraries
|
||||
License: LGPLv2+
|
||||
URL: http://www.libteam.org
|
||||
Source: http://www.libteam.org/files/libteam-%{version}.tar.gz
|
||||
BuildRequires: gcc
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: jansson-devel
|
||||
BuildRequires: libdaemon-devel
|
||||
BuildRequires: libnl3-devel
|
||||
BuildRequires: python-unversioned-command
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: dbus-devel
|
||||
BuildRequires: swig
|
||||
@ -21,33 +22,29 @@ counterpart for team network driver. It provides an API
|
||||
to control team network devices.
|
||||
|
||||
%package devel
|
||||
Group: Development/Libraries
|
||||
Summary: Libraries and header files for libteam development
|
||||
Requires: libteam = %{version}-%{release}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%package doc
|
||||
Group: Documentation
|
||||
Summary: API documentation for libteam and libteamd
|
||||
Requires: libteam = %{version}-%{release}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description doc
|
||||
This package contains libteam and libteamd API documentation
|
||||
|
||||
%package -n teamd
|
||||
Group: System Environment/Daemons
|
||||
Summary: Team network device control daemon
|
||||
Requires: libteam = %{version}-%{release}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: network-scripts
|
||||
|
||||
%package -n teamd-devel
|
||||
Group: Development/Libraries
|
||||
Summary: Libraries and header files for teamd development
|
||||
Requires: teamd = %{version}-%{release}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%package -n python2-libteam
|
||||
%{?python_provide:%python_provide python2-libteam}
|
||||
Group: Development/Libraries
|
||||
Summary: Team network device library bindings
|
||||
Requires: libteam = %{version}-%{release}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The libteam-devel package contains the header files and libraries
|
||||
@ -108,22 +105,22 @@ python ./setup.py install --root $RPM_BUILD_ROOT -O1
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%doc COPYING
|
||||
%license COPYING
|
||||
%{_libdir}/libteam.so.*
|
||||
%{_bindir}/teamnl
|
||||
%{_mandir}/man8/teamnl.8*
|
||||
|
||||
%files devel
|
||||
%doc COPYING _tmpdoc1/examples
|
||||
%doc _tmpdoc1/examples
|
||||
%{_includedir}/team.h
|
||||
%{_libdir}/libteam.so
|
||||
%{_libdir}/pkgconfig/libteam.pc
|
||||
|
||||
%files doc
|
||||
%doc COPYING doc/api
|
||||
%doc doc/api
|
||||
|
||||
%files -n teamd
|
||||
%doc COPYING teamd/example_configs teamd/redhat/example_ifcfgs/
|
||||
%doc teamd/example_configs teamd/redhat/example_ifcfgs/
|
||||
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/teamd.conf
|
||||
%config(noreplace) %attr(644,root,root) %{_unitdir}/teamd@.service
|
||||
%{_sysconfdir}/sysconfig/network-scripts/ifup-Team
|
||||
@ -140,16 +137,18 @@ python ./setup.py install --root $RPM_BUILD_ROOT -O1
|
||||
%{_mandir}/man1/bond2team.1*
|
||||
|
||||
%files -n teamd-devel
|
||||
%doc COPYING
|
||||
%{_includedir}/teamdctl.h
|
||||
%{_libdir}/libteamdctl.so
|
||||
%{_libdir}/pkgconfig/libteamdctl.pc
|
||||
|
||||
%files -n python2-libteam
|
||||
%doc COPYING _tmpdoc2/examples
|
||||
%doc _tmpdoc2/examples
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
||||
* Sun Jul 22 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.27-8
|
||||
- Cleanup spec, fix deps
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.27-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user