source: projects/specs/trunk/l/libbpf/libbpf-vl.spec @ 12473

Revision 12473, 2.2 KB checked in by tomop, 4 years ago (diff)

updated 7 packages

colm-0.13.0.7-4

hiredis-1.0.0-1

hyperscan-5.3.0-1

kelbt-0.16-11

libbpf-0.0.9-1

ragel-7.0.0.12-5

suricata-5.0.3-2

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