Skip to content

Commit

Permalink
Changes for building fakeredis, Flor, pyparsing and xattr rpm (log2ti…
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz authored Mar 3, 2024
1 parent e0f843c commit 9819c2f
Show file tree
Hide file tree
Showing 17 changed files with 134 additions and 185 deletions.
15 changes: 0 additions & 15 deletions data/dpkg_templates/pytest-runner-control

This file was deleted.

2 changes: 0 additions & 2 deletions data/dpkg_templates/python3-pytest-runner.install

This file was deleted.

21 changes: 0 additions & 21 deletions data/licenses/LICENSE.pytest-runner

This file was deleted.

2 changes: 1 addition & 1 deletion data/presets.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ projects: libbde,libcaes,libcdata,libcdatetime,libcdirectory,libcerror,libcfile,

[plaso]
presets: dfimagetools,redis-py
projects: acstore,bencode,certifi,cffi,chardet,dateutil,defusedxml,fakeredis,Flor,future,libcaes,libesedb,libevt,libevtx,libexe,libfwps,libfwsi,liblnk,libmsiecf,libolecf,libscca,mock,opensearch-py,pbr,pefile,plaso,psutil,pyparsing,python-lz4,python-zstd,pytest-runner,pytz,pyzmq,requests,urllib3,XlsxWriter,yara-python
projects: acstore,bencode,certifi,cffi,chardet,dateutil,defusedxml,fakeredis,Flor,future,libcaes,libesedb,libevt,libevtx,libexe,libfwps,libfwsi,liblnk,libmsiecf,libolecf,libscca,mock,opensearch-py,pbr,pefile,plaso,psutil,pyparsing,python-lz4,python-zstd,pytz,pyzmq,requests,urllib3,XlsxWriter,yara-python

[redis-py]
projects: deprecated,importlib-metadata,redis-py
Expand Down
33 changes: 8 additions & 25 deletions data/projects.ini
Original file line number Diff line number Diff line change
Expand Up @@ -414,12 +414,13 @@ description_long: Discover and load entry points from installed packages
[fakeredis]
version: >=1.1.0
dpkg_build_dependencies: python3-poetry-core
dpkg_build_dependencies: python3-poetry-core,python3-tox-current-env
build_system: poetry
maintainer: Bruce Merry <[email protected]>
homepage_url: https://github.com/jamesls/fakeredis
rpm_template_spec: fakeredis.spec
maintainer: Daniel Moran <[email protected]>
homepage_url: https://github.com/cunla/fakeredis-py
download_url: https://pypi.org/project/fakeredis
git_url: https://github.com/jamesls/fakeredis.git
git_url: https://github.com/cunla/fakeredis-py.git
description_short: A fake version of a redis-py
description_long: Fake implementation of redis API (redis-py) for testing
purposes
Expand Down Expand Up @@ -1739,6 +1740,7 @@ dpkg_build_dependencies: flit
build_system: flit
dpkg_name: python-pyparsing
dpkg_template_install_python3: python3-pyparsing.install
rpm_build_dependencies: python3-flit-core,python3-pip
rpm_template_spec: pyparsing.spec
maintainer: Paul McGuire <[email protected]>
homepage_url: https://pyparsing-docs.readthedocs.io/en/latest
Expand All @@ -1762,25 +1764,6 @@ git_url: https://github.com/tobgu/pyrsistent.git
description_short: Persistent/Functional/Immutable data structures
description_long: Persistent/Functional/Immutable data structures
[pytest-runner]
version: >=1.0.1
dpkg_name: python-pytest-runner
dpkg_build_dependencies: python3-setuptools-scm
dpkg_dependencies: python3-pytest
dpkg_template_control: pytest-runner-control
dpkg_template_install_python3: python3-pytest-runner.install
rpm_build_dependencies: python3-setuptools_scm
rpm_template_spec: pytest-runner.spec
wheel_name: pytest_runner
maintainer: Jason R. Coombs <[email protected]>
homepage_url: https://github.com/pytest-dev/pytest-runner
download_url: https://pypi.org/project/pytest-runner
git_url: https://github.com/pytest-dev/pytest-runner.git
description_short: Invoke py.test as distutils command with dependency
resolution
description_long: Setup scripts can use pytest-runner to add setup.py test
support for pytest runner.
[python-editor]
version: >=1.0.1
maintainer: Peter Ruibal <[email protected]>
Expand Down Expand Up @@ -2171,9 +2154,9 @@ architecture_dependent: true
build_system: setuptools
disabled: windows
version: >=0.9.7
dpkg_build_dependencies: python3-cffi,python3-toml,python3-wheel
dpkg_build_dependencies: python3-cffi,python3-setuptools,python3-toml,python3-wheel
dpkg_name: python-xattr
rpm_build_dependencies: python3-cffi
rpm_build_dependencies: python3-cffi,python3-pip,python3-setuptools,python3-tox-current-env,python3-wheel
rpm_name: python-xattr
rpm_template_spec: xattr.spec
maintainer: John Machin <[email protected]>
Expand Down
9 changes: 4 additions & 5 deletions data/rpm_templates/Flor.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ BuildRequires: python3-devel, python3-setuptools
%description
A Bloom filter implementation in Python

%package -n python3-%{{name}}
%package -n python3-flor
Summary: Python 3 module of Flor - An efficient Bloom filter implementation in Python

%description -n python3-%{{name}}
%description -n python3-flor
A Bloom filter implementation in Python

%prep
Expand All @@ -39,9 +39,8 @@ rm -rf %{{buildroot}}/usr/share/doc/%{{name}}/
%clean
rm -rf %{{buildroot}}

%files -n python3-%{{name}}


%files -n python3-flor
%doc README.md
%{{python3_sitelib}}/flor
%{{python3_sitelib}}/Flor*.egg-info

Expand Down
44 changes: 44 additions & 0 deletions data/rpm_templates/fakeredis.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
%define name fakeredis
%define version {version}
%define release 1

Name: %{{name}}
Version: %{{version}}
Release: %{{release}}
Summary: A fake version of a redis-py
License: BSD-3-Clause
URL: https://github.com/cunla/fakeredis-py
Source: %{{name}}-%{{version}}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel, python3-poetry-core, python3-tox-current-env

%description
Fake implementation of redis API (redis-py) for testing purposes

%package -n python3-%{{name}}
Summary: A fake version of a redis-py

%description -n python3-%{{name}}
Fake implementation of redis API (redis-py) for testing purposes

%prep
%autosetup -p1 -n %{{name}}-%{{version}}

# %generate_buildrequires
# %pyproject_buildrequires -t

%build
%pyproject_wheel

%install
%pyproject_install

%files -n python3-%{{name}}
%license LICENSE
%doc README.md
%{{python3_sitelib}}/fakeredis
%{{python3_sitelib}}/fakeredis*.dist-info

%changelog
* {date_time} log2timeline development team <[email protected]> {version}-1
- Auto-generated
32 changes: 13 additions & 19 deletions data/rpm_templates/pyparsing.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@
%define version {version}
%define release 1

Summary: Python parsing module
Name: %{{name}}
Version: %{{version}}
Release: %{{release}}
Source0: %{{name}}-%{{version}}.tar.gz
License: MIT License
Group: Development/Libraries
BuildRoot: %{{_tmppath}}/%{{name}}-%{{version}}-%{{release}}-buildroot
Prefix: %{{_prefix}}
BuildArch: noarch
Vendor: Paul McGuire <[email protected]>
Summary: Python parsing module
Url: https://github.com/pyparsing/pyparsing/
BuildRequires: python3-devel, python3-setuptools
Vendor: Paul McGuire <[email protected]>
Source0: %{{name}}-%{{version}}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel, python3-flit-core, python3-pip, python3-setuptools

%description
The parsing module is an alternative approach to creating
Expand All @@ -34,26 +31,23 @@ of classes that client code uses to construct the grammar directly
in Python code.

%prep
%autosetup -n %{{name}}-%{{version}}
%autosetup -p1 -n %{{name}}-%{{version}}

# This will try to include project.optional-dependencies
# %generate_buildrequires
# %pyproject_buildrequires -t

%build
%py3_build
%pyproject_wheel

%install
%py3_install
rm -rf %{{buildroot}}/usr/lib/python*/site-packages/*.egg-info/requires.txt
rm -rf %{{buildroot}}/usr/share/doc/%{{name}}/

%clean
rm -rf %{{buildroot}}
%pyproject_install

%files -n python3-%{{name}}
%license LICENSE
%doc CHANGES README.rst
%{{python3_sitelib}}/pyparsing
%{{python3_sitelib}}/pyparsing*.egg-info

%exclude %{{python3_sitelib}}/__pycache__/
%{{python3_sitelib}}/pyparsing*.dist-info

%changelog
* {date_time} log2timeline development team <[email protected]> {version}-1
Expand Down
54 changes: 0 additions & 54 deletions data/rpm_templates/pytest-runner.spec

This file was deleted.

27 changes: 14 additions & 13 deletions data/rpm_templates/xattr.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@
%define version {version}
%define release 1

Summary: Python wrapper for extended filesystem attributes
Name: %{{name}}
Version: %{{version}}
Release: %{{release}}
Source0: %{{name}}-%{{version}}.tar.gz
Summary: Python wrapper for extended filesystem attributes
License: MIT License
Group: Development/Libraries
BuildRoot: %{{_tmppath}}/%{{name}}-%{{version}}-%{{release}}-buildroot
Prefix: %{{_prefix}}
Vendor: Bob Ippolito <[email protected]>
Url: http://github.com/xattr/xattr
BuildRequires: gcc, python3-devel, python3-setuptools, python3-cffi
Source0: %{{name}}-%{{version}}.tar.gz
BuildRequires: gcc, python3-cffi, python3-devel, python3-pip, python3-setuptools, python3-tox-current-env, python3-wheel

%description
Extended attributes extend the basic attributes of files
Expand All @@ -23,10 +20,10 @@ Extended attributes are currently only available on Darwin 8.0+
(Mac OS X 10.4) and Linux 2.6+. Experimental support is included for
Solaris and FreeBSD.

%package -n python3-py%{{name}}
%package -n python3-%{{name}}
Summary: Python 3 module of Python wrapper for extended filesystem attributes

%description -n python3-py%{{name}}
%description -n python3-%{{name}}
Extended attributes extend the basic attributes of files
and directories in the file system. They are stored as name:data pairs
associated with file system objects (files, directories, symlinks, etc).
Expand All @@ -35,14 +32,18 @@ Extended attributes are currently only available on Darwin 8.0+
Solaris and FreeBSD.

%prep
%autosetup -n %{{name}}-%{{version}}
%autosetup -p1 -n %{{name}}-%{{version}}

# The requirement versions are too recent for Fedora 39 but don't seem to
# the necessary minimum versions.
# %generate_buildrequires
# %pyproject_buildrequires -t

%build
%py3_build
%pyproject_wheel

%install
%py3_install
rm -rf %{{buildroot}}/usr/lib/python*/site-packages/*.egg-info/requires.txt
%pyproject_install
rm -rf %{{buildroot}}/usr/share/doc/%{{name}}/

%clean
Expand All @@ -52,7 +53,7 @@ rm -rf %{{buildroot}}
%license LICENSE.txt
%doc CHANGES.txt
%{{_libdir}}/python3*/site-packages/xattr
%{{_libdir}}/python3*/site-packages/xattr*.egg-info
%{{_libdir}}/python3*/site-packages/xattr*.dist-info

%exclude %{{_bindir}}/xattr

Expand Down
Loading

0 comments on commit 9819c2f

Please sign in to comment.