diff --git a/babelfish-0.5.5.tar.gz b/babelfish-0.5.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7157b19e454261482829fec2882b53768e472872 Binary files /dev/null and b/babelfish-0.5.5.tar.gz differ diff --git a/python-babelfish.spec b/python-babelfish.spec new file mode 100644 index 0000000000000000000000000000000000000000..47dc6e9c977d9f4ff48d8b1258d60338963c80b5 --- /dev/null +++ b/python-babelfish.spec @@ -0,0 +1,70 @@ +%global _empty_manifest_terminate_build 0 +Name: python-babelfish +Version: 0.5.5 +Release: 1 +Summary: A module to work with countries and languages +License: BSD +URL: https://github.com/Diaoul/babelfish +Source0: https://files.pythonhosted.org/packages/34/b7/b36c651a9136990060ab4d6c9a32de81752123105b940b2f3b958e5c6cd0/babelfish-0.5.5.tar.gz +BuildArch: noarch + + +%global _description\ +A module to work with countries and languages +%description %_description + +%package -n python3-babelfish +Summary: A module to work with countries and languages +Provides: python-babelfish +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-babelfish %_description + +%package help +Summary: Development documents and examples for babelfish +Provides: python3-babelfish-doc +%description help %_description + +%prep +%autosetup -n babelfish-0.5.5 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-babelfish -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 23 2020 Python_Bot +- Package Spec generated