Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
Fedora Release Engineering
96e2834a8c Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 20:37:52 +00:00
Zbigniew Jędrzejewski-Szmek
23a5f53cc0 Fix FTBFS
... (rhbz#2244833, rhbz#2340163)

With apologies to python-sig members ;(
2025-03-14 16:10:49 +01:00
Zbigniew Jędrzejewski-Szmek
0fae65d297 Drop Provides for user/group with uid/gid
This duplicates the autogenerated Provides.
2025-03-14 15:59:43 +01:00
Zbigniew Jędrzejewski-Szmek
95595bde31 Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
2025-02-11 15:35:16 +01:00
Fedora Release Engineering
311a467f28 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 18:29:50 +00:00

View file

@ -12,7 +12,7 @@
Version: 0.68.5.1
Name: flow-tools
Summary: Tool set for working with NetFlow data
Release: 42%{?dist}
Release: 45%{?dist}
# Automatically converted from old format: BSD - review is highly recommended.
License: LicenseRef-Callaway-BSD
URL: http://code.google.com/p/%{name}/
@ -35,13 +35,10 @@ BuildRequires: bison
BuildRequires: flex
BuildRequires: doxygen
%if 0%{?fedora} >= 31
BuildRequires: /usr/bin/2to3
BuildRequires: python3.12
%endif
Requires(pre): shadow-utils
BuildRequires: systemd-rpm-macros
BuildRequires: make
Provides: group(%username)
Provides: user(%username)
%description
@ -111,7 +108,7 @@ This package contains additional documentation, such as man pages in html format
# Remove /bin/env deps
%if 0%{?fedora} >= 31
sed -i '1s|^#!.*python|#!/usr/bin/python3|' bin/flow*
2to3 --write --nobackups bin/flow*
python3.12 -m lib2to3 --write --nobackups bin/flow*
%else
sed -i '1s|^#!.*python|#!/usr/bin/python2|' bin/flow*
%endif
@ -119,7 +116,13 @@ sed -i '1s|^#!.*perl|#!/usr/bin/perl|' utils/*
# Fix mariadb-connector-c detection
sed -i s/my_init/mysql_init/g configure
# Create a sysusers.d config file
cat >flow-tools.sysusers.conf <<EOF
u flow-tools - '%{gecos}' %{homedir} -
EOF
%build
export CFLAGS="$CFLAGS -std=gnu17"
%configure \
--localstatedir=%{_localstatedir}/%{name} \
--sysconfdir=%{_sysconfdir}/%{name} \
@ -144,12 +147,8 @@ install -m 0644 %SOURCE1 $RPM_BUILD_ROOT%{_unitdir}/flow-capture.service
install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
install -m 0644 %SOURCE2 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/flow-capture
%pre
getent group %{username} >/dev/null || groupadd -r %{username}
getent passwd %{username} >/dev/null || \
useradd -r -g %{username} -d %{homedir} -s /sbin/nologin \
-c '%{gecos}' %{username}
exit 0
install -m0644 -D flow-tools.sysusers.conf %{buildroot}%{_sysusersdir}/flow-tools.conf
%post
@ -221,6 +220,7 @@ exit 0
%attr(-,flow-tools,flow-tools) %{_localstatedir}/%{name}/
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*
%{_sysusersdir}/flow-tools.conf
%files devel
%{_libdir}/*.so
@ -236,6 +236,15 @@ exit 0
%doc docs/*.html ChangeLog.old TODO INSTALL SECURITY
%changelog
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.68.5.1-45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.68.5.1-44
- Add sysusers.d config file to allow rpm to create users/groups automatically
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.68.5.1-43
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Wed Aug 28 2024 Miroslav Suchý <msuchy@redhat.com> - 0.68.5.1-42
- convert license to SPDX