diff --git a/python-sanction.spec b/python-sanction.spec index cd9903de685137f5c4d6011360b7024598e90c35..a6e04be01d0679bea1623ba97dd069f6c9f6da26 100644 --- a/python-sanction.spec +++ b/python-sanction.spec @@ -1,74 +1,79 @@ -%global modname sanction +%global _empty_manifest_terminate_build 0 +Name: python-sanction +Version: 0.4.1 +Release: 1 +Summary: A simple, lightweight OAuth2 client +License: MIT +URL: http://pypi.python.org/pypi/sanction +Source0: https://files.pythonhosted.org/packages/63/c8/0386ac2b8446cc0d947e14d44cf6213bdb2c24475e76a7cd0ccde39ddbfa/sanction-0.4.1.tar.gz +BuildArch: noarch -Name: python-sanction -Version: 0.3.1 -Release: 1 -Summary: A simple, lightweight OAuth2 client -License: MIT -URL: http://pypi.python.org/pypi/sanction -Source0: http://pypi.python.org/packages/source/s/%{modname}/%{modname}-%{version}.tar.gz -BuildArch: noarch - -BuildRequires: python3-devel -BuildRequires: python3-setuptools - - -%global _description\ -python-sanction is a lightweight, dead simple client implementation of\ -the OAuth2 protocol.\ -\ -- Variations on OAuth2 client implementation range from a few hundred LOC\ - to thousands. In a Pythonic world, there's absolutely no need for this when\ - simply dealing with the client side of the spec. Currently, sanction sits\ - at a whopping 65 LOC, one class. This makes the library tremendously easy\ - to grok.\ -\ -- Most providers have varying levels of diversion from the official spec.\ - The goal with this library is to either handle these diversions natively,\ - or expose a method to allow client code to deal with it efficiently and\ - effectively.\ -\ -- Three of the four OAuth2 flows should be supported by this library.\ - Currently, only authorization code and client credential flows have been\ - tested due to lack of other (known) implementations.\ -\ -sanction has been tested with the following OAuth2 providers:\ -\ -* Facebook (include the test API)\ -* Google\ -* Foursquare\ -* bitly\ -* GitHub\ -* StackExchange\ -* Instagram\ -* DeviantArt - -%description %_description +%description +sanction is a ridiculously easy to use OAuth 2.0 client intended for rapid +development against OAuth 2.0 providers with minimal keyboard bashing. %package -n python3-sanction -Summary: A simple, lightweight OAuth2 client +Summary: A simple, lightweight OAuth2 client +Provides: python-sanction = %{version}-%{release} +BuildRequires: python3-devel +BuildRequires: python3-setuptools %description -n python3-sanction -%_description +sanction is a ridiculously easy to use OAuth 2.0 client intended for rapid +development against OAuth 2.0 providers with minimal keyboard bashing. -%prep -%setup -q -n %{modname}-%{version} +%package help +Summary: Development documents and examples for sanction +Provides: python3-sanction-doc -# Remove bundled egg-info in case it exists -rm -rf %{modname}.egg-info +%description help +sanction is a ridiculously easy to use OAuth 2.0 client intended for rapid +development against OAuth 2.0 providers with minimal keyboard bashing. + +%prep +%autosetup -n sanction-%{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 . -%files -n python3-sanction -%doc README.rst LICENSE.txt -%{python3_sitelib}/%{modname}/ -%{python3_sitelib}/%{modname}-%{version}* +%files -n python3-sanction -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Fri Nov 18 2022 jiangxinyu - 0.4.1-1 +- Update package to version 0.4.1 + * Tue Aug 02 2022 duyiwei - 0.3.1-1 - init package diff --git a/sanction-0.3.1.tar.gz b/sanction-0.3.1.tar.gz deleted file mode 100644 index 066ff4d6537b64f49b3c529c2542a4cd3601a0d1..0000000000000000000000000000000000000000 Binary files a/sanction-0.3.1.tar.gz and /dev/null differ diff --git a/sanction-0.4.1.tar.gz b/sanction-0.4.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..2496cd95d8ba8fe62eaab0e6edb2e41bff545f71 Binary files /dev/null and b/sanction-0.4.1.tar.gz differ