1 |
wally |
1754597 |
#global gitdate 20210413 |
2 |
daviddavid |
1918998 |
%define rel 2 |
3 |
wally |
1754597 |
|
4 |
|
|
Name: bcm2-utils |
5 |
|
|
Summary: Utilities for Broadcom-based cable modems |
6 |
|
|
Version: 0.9.5.1 |
7 |
|
|
Release: %mkrel %{rel} |
8 |
|
|
License: GPLv3+ |
9 |
|
|
Group: Networking/Other |
10 |
|
|
Url: https://github.com/jclehner/bcm2-utils |
11 |
|
|
Source0: https://github.com/jclehner/bcm2-utils/archive/v%{version}/bcm2-utils-%{?gitdate}%{!?gitdate:%version}.tar.%{?gitdate:xz}%{!?gitdate:gz} |
12 |
|
|
Patch1: 0001-Makefile-LIBS-after-LDFLAGS.patch |
13 |
|
|
Patch2: 0001-Add-DESTDIR-support.patch |
14 |
|
|
BuildRequires: openssl-devel |
15 |
|
|
|
16 |
|
|
%description |
17 |
|
|
Utilities for Broadcom-based cable modems. |
18 |
|
|
|
19 |
|
|
%prep |
20 |
|
|
%autosetup -n %{name}-%{?gitdate}%{!?gitdate:%version} -p1 |
21 |
|
|
|
22 |
|
|
%build |
23 |
|
|
%set_build_flags |
24 |
|
|
%make_build VERSION=%{version} |
25 |
|
|
|
26 |
|
|
%install |
27 |
|
|
%make_install PREFIX=%{_prefix} |
28 |
|
|
|
29 |
|
|
%files |
30 |
|
|
%license LICENSE |
31 |
|
|
%doc *.md |
32 |
|
|
%{_bindir}/bcm2cfg |
33 |
|
|
%{_bindir}/bcm2dump |
34 |
|
|
%{_bindir}/psextract |