* Sun Jan 26 2025 Jean-Philippe Pialasse <jpp@koozali.org> 0.0.14-3.sme

- initial import to SME 11
This commit is contained in:
Jean-Philippe Pialasse 2025-01-26 17:12:03 -05:00
parent d44f57e5ee
commit f3dba31a06
4 changed files with 115 additions and 43 deletions

30
LICENSE Normal file
View File

@ -0,0 +1,30 @@
Copyright (c) 2010-2011, Per Øyvind Karlsen.
Copyright (c) 2011-2012, Nadeem Vawda.
Copyright (c) 2012-2013, Peter J. A. Cock.
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 copyright holders 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.

BIN
backports.lzma-0.0.14.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,57 +1,96 @@
%define name python2-backports-lzma
%define version 1.0
%define release 1
Summary: This is what python2-backports-lzma does.
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
Source: %{name}-%{version}.tar.gz
License: GNU GPL version 2
Group: SMEserver/addon
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
BuildArchitectures: noarch
BuildRequires: smeserver-devtools
Requires: smeserver-release >= 11.0
AutoReqProv: no
%define __python /usr/bin/python2
%global module_name backports.lzma
%{?filter_setup:
%filter_provides_in %{python_sitearch}.*\.so$
%filter_setup
}
Name: python2-backports-lzma
Version: 0.0.14
Release: 3%{?dist}
Summary: Backport of Python 3.3's lzma module
License: BSD
URL: https://github.com/peterjc/backports.lzma
Source0: https://pypi.python.org/packages/source/b/%{module_name}/%{module_name}-%{version}.tar.gz
Source1: https://raw.github.com/peterjc/backports.lzma/backports.lzma.v0.0.2/LICENSE
Requires: python2-backports
BuildRequires: python2-devel
BuildRequires: xz-devel
BuildRequires: python2-nose
BuildRequires: python2-test
Provides: python-backports-lzma
Obsoletes: python-backports-lzma < %{version}-%{release}
%description
This is a backport of the "lzma" module included in Python 3.3 or later by
Nadeem Vawda and Per Oyvind Karlsen, which provides a Python wrapper for XZ
Utils (aka LZMA Utils v2) by Igor Pavlov.
This is a backport of the "lzma" module included in Python 3.3 or later by
Nadeem Vawda and Per Oyvind Karlsen, which provides a Python wrapper for XZ
Utils (aka LZMA Utils v2) by Igor Pavlov.
%prep
%setup -qn %{module_name}-%{version}
cp %{SOURCE1} ./
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
chmod 755 %{buildroot}%{python_sitearch}/backports/lzma/_lzma.so
# This file is provided by python-backports
rm %{buildroot}%{python_sitearch}/backports/__init__.py*
%check
cp build/lib*/backports/lzma/_lzma.so backports/lzma/
nosetests-2
%files
%doc LICENSE
%{python_sitearch}/*
%changelog
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
- Initial code - create RPM [SME:99999]
* Sun Jan 26 2025 Jean-Philippe Pialasse <jpp@koozali.org> 0.0.14-3.sme
- initial import to SME 11
%prep
* Sun Apr 03 2022 Peter Ajamian <pj@ghettoforge.org> - 0.0.14-2
- python2- for consistency with other python2 packages in el8
%setup -q
* Sun Apr 03 2022 Peter Ajamian <pj@ghettoforge.org> - 0.0.14-1
- 0.0.14
- Rebuild for el8
%build
* Tue Apr 18 2017 Josh Boyer <jwboyer@redhat.com> - 0.0.2-9
- Bump and build for all architectures
%install
rm -rf $RPM_BUILD_ROOT
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
> %{name}-%{version}-filelist
#echo "%doc COPYING" >> %{name}-%{version}-filelist
#--dir <dir> 'attr(755,user,grp)' \
#--file <file> 'attr(755,root,root)' \
* Tue Dec 16 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.0.2-8
- Resolves: rhbz#1158538 - delete __init__.py*, now provided by python-backports
%clean
cd ..
rm -rf %{name}-%{version}
* Wed May 07 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.0.2-7
- do not delete __init__.py* because no python-backports package for RHEL-7
%pre
* Thu Apr 24 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.0.2-6
- Rebuilt for RHEL-7
%preun
* Tue Sep 17 2013 Ian Weller <iweller@redhat.com> - 0.0.2-5
- Fix perms on _lzma.so, again
%post
* Tue Aug 20 2013 Ian Weller <iweller@redhat.com> - 0.0.2-4
- Fix perms on _lzma.so
- Add LICENSE from upstream
%postun
#uninstall
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
* Tue Aug 20 2013 Ian Weller <iweller@redhat.com> - 0.0.2-3
- Actually fix check section
* Tue Aug 20 2013 Ian Weller <iweller@redhat.com> - 0.0.2-2
- BR: python-backports
* Mon Aug 19 2013 Ian Weller <iweller@redhat.com> - 0.0.2-1
- Initial package build