diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..a24fe08fd2c953925fcda9c1d3e8b95dc1f88d47 --- /dev/null +++ b/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2014, Jakub Dorňák +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, this + list of conditions and the following disclaimer in the documentation and/or + other materials provided with the distribution. + +* Neither the name of the {organization} nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/python-flock-0.1.tar.gz b/python-flock-0.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..890743941ee41a8d2aa3bbabaeb1cd5bcdf758c9 Binary files /dev/null and b/python-flock-0.1.tar.gz differ diff --git a/python-flock.spec b/python-flock.spec new file mode 100644 index 0000000000000000000000000000000000000000..bfe722e0eea2250f7275518c284f6a4109cb239c --- /dev/null +++ b/python-flock.spec @@ -0,0 +1,50 @@ +Name: python-flock +Version: 0.1 +Release: 1 +Summary: Flock object for with statement + +License: BSD +URL: https://github.com/misli/python-flock +Source: http://github.srcurl.net/misli/%{name}/%{version}/%{name}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description +Flock object uses fcntl.flock to lock (resp. unlock) +file descriptor (fd) with operation (op) +when entering (resp. leaving) runtime context related to it. + + +%package -n python3-flock +Summary: Flock object for with statement + +%description -n python3-flock +Flock object uses fcntl.flock to lock (resp. unlock) +file descriptor (fd) with operation (op) +when entering (resp. leaving) runtime context related to it. + + +%prep +%autosetup + + +%build +%{py3_build} + + +%install +%{py3_install} + + +%files -n python3-flock +%doc README.md LICENSE +%{python3_sitelib}/flock.py +%{python3_sitelib}/__pycache__/flock.* +%{python3_sitelib}/flock-%{version}-py3.*.egg-info + + +%changelog +* Fri Jun 25 2021 liufeng - 0.1-1 +- Initial package