diff --git a/python-slugify-5.0.2.tar.gz b/python-slugify-5.0.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8d03caa3098933a57d63c76ebe616560a4514d06 Binary files /dev/null and b/python-slugify-5.0.2.tar.gz differ diff --git a/python-slugify.spec b/python-slugify.spec new file mode 100644 index 0000000000000000000000000000000000000000..a61182ccc9eb4c22b677418ede018b02baeec918 --- /dev/null +++ b/python-slugify.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-slugify +Version: 5.0.2 +Release: 1 +Summary: A Python Slugify application that handles Unicode +License: MIT +URL: https://github.com/un33k/python-slugify +Source0: https://files.pythonhosted.org/packages/bc/a4/57893fbaf7cbf303a4f2307564cf83855a5f2cc34544656e7263125a0d1e/python-slugify-5.0.2.tar.gz +BuildArch: noarch + +Requires: python3-text-unidecode +Requires: python3-Unidecode + +%description +A Python Slugify application that handles Unicode + + +%package -n python3-slugify +Summary: A Python Slugify application that handles Unicode +Provides: python-slugify +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-slugify +A Python Slugify application that handles Unicode + + +%package help +Summary: Development documents and examples for python-slugify +Provides: python3-slugify-doc +%description help +A Python Slugify application that handles Unicode + + +%prep +%autosetup -n python-slugify-5.0.2 + +%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-slugify -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Sep 03 2021 Python_Bot - 5.0.2-1 +- Package Init