libbpf-vl.spec 2.2 KB

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