Skip to content

Commit 4265797

Browse files
authored
Changes for building rpms (#1253)
1 parent bc201fc commit 4265797

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

data/projects.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ description_long: Fast multi-keyword search engine for text strings
99

1010
[acstore]
1111
version: >=20221230
12+
build_system: setuptools
1213
download_url: https://github.com/log2timeline/acstore/releases
1314
git_url: https://github.com/log2timeline/acstore.git
1415

@@ -52,6 +53,7 @@ description_long: A library for parsing ISO 8601 strings.
5253

5354
[artifacts]
5455
version: >=20150409
56+
build_system: setuptools
5557
homepage_url: https://artifacts.readthedocs.io/en/latest/
5658
download_url: https://github.com/ForensicArtifacts/artifacts/releases
5759
git_url: https://github.com/ForensicArtifacts/artifacts.git
@@ -325,21 +327,25 @@ description_long: XML bomb protection for Python stdlib modules
325327
326328
[dfdatetime]
327329
version: >=20181025
330+
build_system: setuptools
328331
download_url: https://github.com/log2timeline/dfdatetime/releases
329332
git_url: https://github.com/log2timeline/dfdatetime.git
330333
331334
[dfimagetools]
332335
version: >=20181025
336+
build_system: setuptools
333337
download_url: https://github.com/log2timeline/dfimagetools/releases
334338
git_url: https://github.com/log2timeline/dfimagetools.git
335339
336340
[dfvfs]
337341
version: >=20150129
342+
build_system: setuptools
338343
download_url: https://github.com/log2timeline/dfvfs/releases
339344
git_url: https://github.com/log2timeline/dfvfs.git
340345
341346
[dfwinreg]
342347
version: >=20151105
348+
build_system: setuptools
343349
download_url: https://github.com/log2timeline/dfwinreg/releases
344350
git_url: https://github.com/log2timeline/dfwinreg.git
345351
@@ -367,6 +373,7 @@ description_long: Docutils is a modular system for processing documentation
367373
368374
[dtfabric]
369375
version: >=20170413
376+
build_system: setuptools
370377
dpkg_build_dependencies: python3-build,python3-wheel
371378
rpm_build_dependencies: python3-build,python3-wheel
372379
download_url: https://github.com/libyal/dtfabric/releases
@@ -1460,6 +1467,7 @@ description_short: Interface Python with pkg-config
14601467
description_long: Interface Python with pkg-config
14611468

14621469
[plaso]
1470+
build_system: setuptools
14631471
homepage_url: https://plaso.readthedocs.io/en/latest
14641472
download_url: https://github.com/log2timeline/plaso/releases
14651473
git_url: https://github.com/log2timeline/plaso.git

data/rpm_templates/artifacts.spec

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,10 @@ A free, community-sourced, machine-readable knowledge base of forensic artifacts
4646
%autosetup -n %{{name}}-%{{version}}
4747

4848
%build
49-
%py3_build
49+
%pyproject_wheel
5050

5151
%install
52-
%py3_install
53-
rm -rf %{{buildroot}}/usr/lib/python*/site-packages/*.egg-info/requires.txt
52+
%pyproject_install
5453
rm -rf %{{buildroot}}/usr/share/doc/%{{name}}/
5554
mkdir -p %{{buildroot}}/usr/share/artifacts/
5655
mv %{{buildroot}}/usr/lib/python*/site-packages/artifacts/data/* %{{buildroot}}/usr/share/artifacts/
@@ -69,7 +68,7 @@ rm -rf %{{buildroot}}
6968
%license LICENSE
7069
%doc README.md
7170
%{{python3_sitelib}}/artifacts
72-
%{{python3_sitelib}}/artifacts*.egg-info
71+
%{{python3_sitelib}}/artifacts*.dist-info
7372

7473
%files -n %{{name}}-tools
7574
%{{_bindir}}/*

data/rpm_templates/plaso.spec

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,10 @@ Plaso (log2timeline) is a framework to create super timelines. Its purpose is to
4646
%autosetup -n %{{name}}-%{{version}}
4747

4848
%build
49-
%py3_build
49+
%pyproject_wheel
5050

5151
%install
52-
%py3_install
53-
rm -rf %{{buildroot}}/usr/lib/python*/site-packages/*.egg-info/requires.txt
52+
%pyproject_install
5453
rm -rf %{{buildroot}}/usr/share/doc/%{{name}}/
5554
mkdir -p %{{buildroot}}/usr/share/plaso/
5655
mv %{{buildroot}}/usr/lib/python*/site-packages/plaso/data/* %{{buildroot}}/usr/share/plaso/
@@ -69,7 +68,7 @@ rm -rf %{{buildroot}}
6968
%license LICENSE
7069
%doc README.md
7170
%{{python3_sitelib}}/plaso
72-
%{{python3_sitelib}}/plaso*.egg-info
71+
%{{python3_sitelib}}/plaso*.dist-info
7372

7473
%files -n %{{name}}-tools
7574
%{{_bindir}}/*

0 commit comments

Comments
 (0)