-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwdns.spec
61 lines (44 loc) · 1.24 KB
/
wdns.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Name: wdns
Version: 0.12.0
Release: 1%{?dist}
Summary: low-level DNS library
License: Apache-2.0
URL: https://github.com/farsightsec/wdns
Source0: https://dl.farsightsecurity.com/dist/%{name}/%{name}-%{version}.tar.gz
BuildRequires: gcc
#Requires:
%description
wdns is a low-level DNS library. It contains a fast DNS message parser
and utility functions for manipulating wire-format DNS data.
This package contains the shared library for libwdns.
%package devel
Summary: low-level DNS library (development files)
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
wdns is a low-level DNS library. It contains a fast DNS message parser
and utility functions for manipulating wire-format DNS data.
This package contains the static library and header file for libwdns.
%prep
%setup -q
%build
%set_build_flags
%if %{rhel} == 7
CFLAGS="$CFLAGS -std=c99 -D_GNU_SOURCE"
%endif
[ -x configure ] || autoreconf -fvi
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%make_install
%files
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%exclude %{_libdir}/libwdns.la
%files devel
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/*
%{_includedir}/*
%doc
%changelog