%global _empty_manifest_terminate_build 0 Name: python-bridgekeeper Version: 0.9 Release: 1 Summary: Django permissions that work with QuerySets. License: MIT URL: https://bridgekeeper.leigh.party/ Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5c/4a/ea192f0775c9c3da50c48b3461b896254c64a297ff29f743ee1da97b5431/bridgekeeper-0.9.tar.gz BuildArch: noarch %description | Who would cross the Bridge of Death | must answer me these questions three, | ere the other side he see. -- The Bridgekeeper, *Monty Python and the Holy Grail* Bridgekeeper is a permissions library for Django_ projects, where permissions are defined in your code, rather than in your database. It's heavily inspired by django-rules_, but with one important difference: **it works on QuerySets as well as individual model instances**. This means that you can efficiently show a list of all of the model instances that your user is allowed to edit, for instance, without having your permission-checking code in two different places. Bridgekeeper is tested on Django 2.2 and 3.0 on all Python versions Django supports, and is licensed under the MIT License. %package -n python3-bridgekeeper Summary: Django permissions that work with QuerySets. Provides: python-bridgekeeper BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-bridgekeeper | Who would cross the Bridge of Death | must answer me these questions three, | ere the other side he see. -- The Bridgekeeper, *Monty Python and the Holy Grail* Bridgekeeper is a permissions library for Django_ projects, where permissions are defined in your code, rather than in your database. It's heavily inspired by django-rules_, but with one important difference: **it works on QuerySets as well as individual model instances**. This means that you can efficiently show a list of all of the model instances that your user is allowed to edit, for instance, without having your permission-checking code in two different places. Bridgekeeper is tested on Django 2.2 and 3.0 on all Python versions Django supports, and is licensed under the MIT License. %package help Summary: Development documents and examples for bridgekeeper Provides: python3-bridgekeeper-doc %description help | Who would cross the Bridge of Death | must answer me these questions three, | ere the other side he see. -- The Bridgekeeper, *Monty Python and the Holy Grail* Bridgekeeper is a permissions library for Django_ projects, where permissions are defined in your code, rather than in your database. It's heavily inspired by django-rules_, but with one important difference: **it works on QuerySets as well as individual model instances**. This means that you can efficiently show a list of all of the model instances that your user is allowed to edit, for instance, without having your permission-checking code in two different places. Bridgekeeper is tested on Django 2.2 and 3.0 on all Python versions Django supports, and is licensed under the MIT License. %prep %autosetup -n bridgekeeper-0.9 %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-bridgekeeper -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri May 05 2023 Python_Bot - 0.9-1 - Package Spec generated