Compare commits

...

2 Commits

Author SHA1 Message Date
dfbc477997 python3.11-dotenv: rename conflicting binary 2024-04-16 12:31:00 +06:00
d63459d7e4 libbpf1: initial build 2024-04-11 13:08:32 +06:00
2 changed files with 63 additions and 2 deletions

56
libbpf1/libbpf.spec Normal file
View File

@ -0,0 +1,56 @@
Name: libbpf1
Version: 1.4.0
Release: 1%{?dist}
Summary: Libbpf library
License: LGPLv2 or BSD
Source0: https://github.com/libbpf/libbpf/archive/v%{version}/libbpf-%{version}.tar.gz
BuildRequires: gcc elfutils-libelf-devel elfutils-devel python3 kernel-headers
BuildRequires: make
%description
Library for loading eBPF programs and reading and manipulating eBPF
objects from user-space
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: kernel-headers
Requires: zlib
Conflicts: libbpf-devel
%description devel
The %{name}-devel package contains libraries header files for
developing applications that use %{name}
%package static
Summary: Static library for libbpf development
Requires: %{name}-devel = %{version}-%{release}
Conflicts: libbpf-static
%description static
The %{name}-static package contains static library for
developing applications that use %{name}
%prep
%autosetup -n libbpf-%{version}
%build
%make_build -C src
%install
%make_install -C src
%files
%{_libdir}/libbpf.so.%{version}
%{_libdir}/libbpf.so.1
%files devel
%{_libdir}/libbpf.so
%{_includedir}/bpf/
%{_libdir}/pkgconfig/libbpf.pc
%files static
%{_libdir}/libbpf.a

View File

@ -1,6 +1,6 @@
Name: python-dotenv
Version: 1.0.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Read key-value pairs from a .env file and set them as environment variables
License: BSD
@ -42,6 +42,8 @@ sed -i 's/import mock/from unittest import mock/' tests/test_*.py
%install
%py3_install
mv %{buildroot}%{_bindir}/dotenv %{buildroot}%{_bindir}/dotenv-%{python3_pkgversion}
%check
%pytest -v
@ -54,10 +56,13 @@ sed -i 's/import mock/from unittest import mock/' tests/test_*.py
%{python3_sitelib}/python_dotenv-%{version}-py%{python3_version}.egg-info/
%{?python_extras_subpkg:%{python_extras_subpkg -n python%{python3_pkgversion}-dotenv -i %{python3_sitelib}/*.egg-info cli}}
%{_bindir}/dotenv
%{_bindir}/dotenv-%{python3_pkgversion}
%changelog
* Tue Apr 16 2024 Raven <raven@sysadmins.ws> - 1.0.1-2
- fix conflict with python3-dotenv
* Tue Feb 6 2024 Raven <raven@sysadmins.ws> - 1.0.1-1
- Update to 1.0.1