python-netifaces-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. %global with_python3 1
  2. %global pypi_name netifaces
  3. Name: python-netifaces
  4. Version: 0.10.9
  5. Release: 1%{?_dist_release}
  6. Summary: Python library to retrieve information about network interfaces
  7. Group: programming
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: MIT
  11. URL: https://pypi.python.org/pypi/netifaces
  12. Source0: https://pypi.python.org/packages/source/n/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
  13. BuildRequires: python-devel
  14. BuildRequires: python-setuptools
  15. %description
  16. This package provides a cross platform API for getting address information
  17. from network interfaces.
  18. %if 0%{?with_python3}
  19. %package -n python3-%{pypi_name}
  20. Summary: Python library to retrieve information about network interfaces
  21. BuildRequires: python3-devel
  22. BuildRequires: python3-setuptools
  23. %description -n python3-%{pypi_name}
  24. This package provides a cross platform API for getting address information
  25. from network interfaces.
  26. %endif
  27. %debug_package
  28. %prep
  29. %setup -q -n %{pypi_name}-%{version}
  30. %build
  31. %py_build
  32. %if 0%{?with_python3}
  33. %py3_build
  34. %endif
  35. %install
  36. %py_install
  37. %if 0%{?with_python3}
  38. %py3_install
  39. %endif
  40. %clean
  41. rm -rf %{buildroot}
  42. %files
  43. %doc README.rst
  44. %{python_sitearch}/%{pypi_name}-%{version}-*.egg-info/
  45. %{python_sitearch}/%{pypi_name}.so
  46. %if 0%{?with_python3}
  47. %files -n python3-%{pypi_name}
  48. %doc README.rst
  49. %{python3_sitearch}/%{pypi_name}-%{version}-*.egg-info/
  50. %{python3_sitearch}/%{pypi_name}*.so
  51. %endif
  52. %changelog
  53. * Wed Mar 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.10.9-1
  54. - new upstream release.
  55. - cleaned up macros.
  56. * Tue Jul 12 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.10.4-5
  57. - initial build for Vine Linux.
  58. * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.4-4
  59. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  60. * Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.4-3
  61. - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
  62. * Tue Jun 16 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 0.10.4-2
  63. - Add python3 subpackage
  64. * Mon Feb 23 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 0.10.4-1
  65. - Upstream 0.10.4
  66. - Packaging cleanups
  67. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-8
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  69. * Mon Jun 30 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 0.5-7
  70. - Replace python-setuptools-devel BR with python-setuptools
  71. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-6
  72. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  73. * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-5
  74. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  75. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-4
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  77. * Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-3
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  79. * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-2
  80. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  81. * Wed Jun 1 2011 Ryan Rix <ry@n.rix.si> 0.5-1
  82. - Initial packaging effort