Skip to content

Commit 7c96078

Browse files
authored
Changes for building dpkg and rpms (#1241)
1 parent f205a87 commit 7c96078

21 files changed

Lines changed: 52 additions & 18 deletions

File tree

.github/workflows/test_docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
version: ['39', '40']
10+
version: ['41']
1111
container:
1212
image: registry.fedoraproject.org/fedora:${{ matrix.version }}
1313
steps:

.github/workflows/test_tox.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
strategy:
1515
matrix:
1616
include:
17-
- python-version: '3.8'
18-
toxenv: 'py38,wheel'
1917
- python-version: '3.9'
2018
toxenv: 'py39,wheel'
2119
- python-version: '3.10'

.pylintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ disable=assignment-from-none,
470470
too-many-lines,
471471
too-many-locals,
472472
too-many-nested-blocks,
473+
too-many-positional-arguments,
473474
too-many-public-methods,
474475
too-many-return-statements,
475476
too-many-statements,

config/appveyor/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
set -e
44

5+
brew untap homebrew/homebrew-cask-versions
56
brew update -q
67
brew install -q gettext gnu-sed python@3.13 tox || true
78

config/docker/build_rpm.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
#
3+
# Script to build RPM packages with Docker.
4+
5+
# Fail on error.
6+
set -e
7+
8+
GID=$(id -g);
9+
10+
L2TBUILDS_DIRECTORY="${HOME}/Projects/l2tbuilds";
11+
12+
cd config/docker;
13+
14+
mkdir -p "${L2TBUILDS_DIRECTORY}/rpm";
15+
mkdir -p "${L2TBUILDS_DIRECTORY}/srpm";
16+
17+
# Build the l2tbuilds Fedora Docker image.
18+
docker build -f l2tbuilds_fedora.Dockerfile --force-rm --no-cache -t log2timeline/l2tbuilds_fedora . ;
19+
docker run -it -u ${UID}:${GID} -v "${L2TBUILDS_DIRECTORY}:/home/build/l2tbuilds:z" log2timeline/l2tbuilds_fedora /bin/bash
20+
21+
# docker run -u ${UID}:${GID} -v "${L2TBUILDS_DIRECTORY}:/home/build/l2tbuilds:z" log2timeline/l2tbuilds_fedora /bin/bash -c "(cd l2tdevtools && ./utils/build_dpkg.sh --preset plaso)"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM fedora:42
2+
MAINTAINER Log2Timeline <log2timeline-dev@googlegroups.com>
3+
4+
# Create container with:
5+
# docker build -f l2tbuilds_fedora.Dockerfile --force-rm --no-cache -t log2timeline/l2tbuilds_fedora .
6+
7+
RUN dnf install -y @development-tools autoconf automake byacc dnf-plugins-core flex gcc-c++ gettext-devel git langpacks-en libtool pkg-config python3 python3-build python3-devel python3-setuptools python3-wheel
8+
9+
# Set up the l2tdevtools source and build directories
10+
WORKDIR /home/build/
11+
RUN git clone https://github.com/log2timeline/l2tdevtools.git

config/docker/plaso-dev.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ RUN apt-get -y install --no-install-recommends \
2525
libyaml-dev \
2626
locales \
2727
mercurial \
28+
python3-build \
2829
python3-dev \
2930
python3-distutils \
3031
python3-setuptools \

data/projects.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,6 +2162,7 @@ dpkg_name: python-xlsxwriter
21622162
dpkg_template_install_python3: python3-xlsxwriter.install
21632163
dpkg_source_name: xlsxwriter
21642164
rpm_template_spec: XlsxWriter.spec
2165+
setup_name: xlsxwriter
21652166
maintainer: John McNamara <jmcnamara@cpan.org>
21662167
homepage_url: https://xlsxwriter.readthedocs.org/
21672168
download_url: https://pypi.org/project/XlsxWriter

data/rpm_templates/XlsxWriter.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ rm -rf %{{buildroot}}
5050
%files -n python3-%{{name}}
5151
%license LICENSE.txt
5252
%{{python3_sitelib}}/xlsxwriter/
53-
%{{python3_sitelib}}/XlsxWriter*.egg-info
53+
%{{python3_sitelib}}/xlsxwriter*.egg-info
5454

5555
%exclude %{{_bindir}}/*
5656

data/rpm_templates/pyzmq.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Summary: Python bindings for 0MQ
1111
Url: https://pyzmq.readthedocs.org
1212
Vendor: Brian E. Granger, Min Ragan-Kelley <zeromq-dev@lists.zeromq.org>
1313
Source0: %{{name}}-%{{version}}.tar.gz
14-
BuildRequires: gcc, gcc-c++, python3-devel, python3-packaging, python3-scikit-build-core, python3-setuptools
14+
BuildRequires: gcc, gcc-c++, libsodium-devel, python3-devel, python3-packaging, python3-pip, python3-scikit-build-core, python3-setuptools
1515

1616
%{{?python_disable_dependency_generator}}
1717

0 commit comments

Comments
 (0)