diff --git a/2022.3.4.tar.gz b/2022.3.4.tar.gz deleted file mode 100644 index 5cb62f3a40cb765c5aabf57dda1f9a2a66b58b33..0000000000000000000000000000000000000000 Binary files a/2022.3.4.tar.gz and /dev/null differ diff --git a/cmarkgfm-2022.10.27.tar.gz b/cmarkgfm-2022.10.27.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c8ade3d6224109f423fe559d7f2a0381579f1b2f Binary files /dev/null and b/cmarkgfm-2022.10.27.tar.gz differ diff --git a/python-cmarkgfm.spec b/python-cmarkgfm.spec index c171ed6c8d92cd0e5d6ea69da49139633e090e83..13ac09cc3fc7334d02fbd077fe53bc58296ab0b2 100644 --- a/python-cmarkgfm.spec +++ b/python-cmarkgfm.spec @@ -1,52 +1,79 @@ -%global pypi_name cmarkgfm -%global real_version 0.8.0 +%global _empty_manifest_terminate_build 0 +Name: python-cmarkgfm +Version: 2022.10.27 +Release: 1 +Summary: Minimal bindings to GitHub's fork of cmark +License: MIT +URL: https://github.com/theacodes/cmarkgfm +Source0: https://files.pythonhosted.org/packages/94/29/b3c6f8bcaf9332e337f3ac178c3dd729e7148d2a478272779dd33f87b729/cmarkgfm-2022.10.27.tar.gz -Name: python-%{pypi_name} -Version: 2022.3.4 -Release: 1 -Summary: Minimal bindings to GitHub's fork of cmark - -License: MIT -URL: https://github.com/theacodes/%{pypi_name} -Source0: https://github.com/theacodes/%{pypi_name}/archive/refs/tags/%{version}.tar.gz - -BuildRequires: gcc %description Bindings to GitHub's cmark Minimalist bindings to GitHub's fork of cmark. -%package -n python3-%{pypi_name} -Summary: %{summary} +%package -n python3-cmarkgfm +Summary: Minimal bindings to GitHub's fork of cmark +Provides: python-cmarkgfm = %{version}-%{release} +BuildRequires: gcc +BuildRequires: python3-devel +BuildRequires: python3-cffi +BuildRequires: python3-setuptools +BuildRequires: python3-pytest + +%description -n python3-cmarkgfm +Bindings to GitHub's cmark Minimalist bindings to GitHub's fork of cmark. -BuildRequires: python3-devel -BuildRequires: python3-cffi -BuildRequires: python3-setuptools -BuildRequires: python3-pytest -%{?python_provide:%python_provide python3-%{pypi_name}} +%package help +Summary: Development documents and examples for cmarkgfm +Provides: python3-cmarkgfm-doc -%description -n python3-%{pypi_name} +%description help Bindings to GitHub's cmark Minimalist bindings to GitHub's fork of cmark. %prep -%autosetup -n %{pypi_name}-%{version} -rm -rf %{pypi_name}.egg-info -chmod -x README.rst LICENSE.txt +%autosetup -n cmarkgfm-%{version} %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 . -#%check -#%pytest -v tests +%files -n python3-cmarkgfm -f filelist.lst +%dir %{python3_sitearch}/* -%files -n python3-%{pypi_name} -%license LICENSE.txt -%doc README.rst -%{python3_sitearch}/%{pypi_name}/ -%{python3_sitearch}/%{pypi_name}-%{real_version}-py*.egg-info/ +%files help -f doclist.lst +%{_docdir}/* %changelog +* Fri Nov 11 2022 wangjunqi - 2022.10.27-1 +- Update package to version 2022.10.27 + * Sun Apr 24 2022 liweiganga 2022.3.4-1 - inital package +