ssh-import-id-vl.spec 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. %{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(0))")}
  2. %define ver 4.1
  3. %define rel 2
  4. Summary: Import SSH public keys from Launchpad or other URLs
  5. Name: ssh-import-id
  6. Version: %{ver}
  7. Release: %{rel}%{?_dist_release}
  8. License: GPLv3
  9. Group: Applications/Accessories
  10. URL: https://launchpad.net/ssh-import-id
  11. Source0: https://launchpad.net/ssh-import-id/trunk/%{version}/+download/%{name}_%{version}.orig.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  13. Requires: python3-setuptools
  14. Requires: python3-requests
  15. BuildRequires: python3-devel
  16. BuildRequires: python3-setuptools
  17. BuildArch: noarch
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. Packager: iwaim
  21. %description
  22. ssh-import-id - retrieve one or more public keys from a public
  23. keyserver (Launchpad.net by default) and append them to the current
  24. user's authorized_keys file (or some other specified file)
  25. %prep
  26. %setup -q
  27. %build
  28. python3 setup.py build
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. python3 setup.py install --skip-build --root $RPM_BUILD_ROOT
  32. %{__install} -d $RPM_BUILD_ROOT%{_mandir}/man1
  33. %{__install} -m 0644 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
  34. %clean
  35. rm -rf $RPM_BUILD_ROOT
  36. %files
  37. %defattr(-,root,root,-)
  38. %doc README.md LICENSE ChangeLog
  39. %{_bindir}/%{name}
  40. %{_bindir}/%{name}-lp
  41. %{_bindir}/%{name}-gh
  42. %{python3_sitelib}/ssh_import_id-%{ver}-py*.egg-info
  43. %{_mandir}/man1/%{name}.1*
  44. %changelog
  45. * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.1-2
  46. - rebuild with python3-3.5.2
  47. * Sun Mar 22 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 4.1-1
  48. - Initial build.