Compare commits
2 Commits
75cac800e6
...
dfbc477997
Author | SHA1 | Date | |
---|---|---|---|
dfbc477997 | |||
d63459d7e4 |
56
libbpf1/libbpf.spec
Normal file
56
libbpf1/libbpf.spec
Normal 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
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user