libbpf-vl.spec 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. %global githubname libbpf
  2. %global githubver 1.4.3
  3. %global githubfull %{githubname}-%{githubver}
  4. %global make_flags DESTDIR=%{buildroot} OBJDIR=%{_builddir} CFLAGS="%{optflags}" LDFLAGS="%{?build_ldflags} -Wl,--no-as-needed" LIBDIR=/%{_libdir} NO_PKG_CONFIG=1
  5. Name: %{githubname}
  6. Version: %{githubver}
  7. Release: 1%{?_dist_release}
  8. Summary: Libbpf library
  9. Group: system
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. License: LGPLv2 or BSD
  13. URL: https://github.com/%{githubname}/%{githubname}
  14. Source: https://github.com/%{githubname}/%{githubname}/archive/v%{githubver}.tar.gz
  15. BuildRequires: gcc elfutils-libelf-devel elfutils-devel
  16. %description
  17. A mirror of bpf-next linux tree bpf-next/tools/lib/bpf directory plus its
  18. supporting header files. The version of the package reflects the version of
  19. ABI.
  20. %package devel
  21. Summary: Development files for %{name}
  22. Requires: %{name} = %{version}-%{release}
  23. Group: programming
  24. %description devel
  25. The %{name}-devel package contains libraries header files for
  26. developing applications that use %{name}
  27. %package static
  28. Summary: Static library for libbpf development
  29. Group: programming
  30. Requires: %{name}-devel = %{version}-%{release}
  31. %description static
  32. The %{name}-static package contains static library for
  33. developing applications that use %{name}
  34. %debug_package
  35. %prep
  36. %autosetup -n %{githubfull}
  37. %build
  38. %make_build -C ./src %{make_flags}
  39. %install
  40. %make_install -C ./src %{make_flags}
  41. %files
  42. %{_libdir}/libbpf.so.*
  43. %files devel
  44. %{_libdir}/libbpf.so
  45. %{_includedir}/bpf/
  46. %{_libdir}/pkgconfig/libbpf.pc
  47. %files static
  48. %{_libdir}/libbpf.a
  49. %changelog
  50. * Fri Jun 28 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.3-1
  51. - new upstream release.
  52. * Fri Oct 20 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.2.2-1
  53. - new upstream release.
  54. - dropped ldconfig scriptlets.
  55. * Wed Feb 17 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.3-1
  56. - new upstream release.
  57. * Mon Aug 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.0.9-1
  58. - new upstream release.
  59. * Wed Oct 30 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.0.5-2
  60. - initial build for Vine Linux.
  61. * Thu Oct 03 2019 Jiri Olsa <jolsa@redhat.com> - 0.0.5-1
  62. - release 0.0.5
  63. * Wed Sep 25 2019 Jiri Olsa <jolsa@redhat.com> - 0.0.3-2
  64. - Fix libelf linking (BZ#1755317)
  65. * Fri Sep 13 2019 Jiri Olsa <jolsa@redhat.com> - 0.0.3-1
  66. - Initial release