forked from farsightsec/wdns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwdns.spec
57 lines (45 loc) · 1.55 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
%define name wdns
%define version 0.5
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: low-level DNS library
License: Apache-2.0
URL: https://github.com/farsightsec/wdns
Name: %{name}
Version: %{version}
Release: 1
Source: https://dl.farsightsecurity.com/dist/wdns/%{name}-%{version}.tar.gz
Packager: John Heidemann <[email protected]>, Robert Edmonds <[email protected]>
Prefix: /usr
Group: System/Libraries
BuildRequires: gcc-c++
%description
wdns is a lowel-level DNS library. It contains a fast DNS message parser
and various 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)
%description devel
wdns is a lowel-level DNS library. It contains a fast DNS message parser
and various utility functions for manipulating wire-format DNS data.
This package contains the static library and header file for libwdns.
%prep
%setup -q
%build
# ./autogen.sh
./configure --prefix %{_prefix} --libdir=%{_libdir}
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%exclude %{_libdir}/libwdns.la
# we ignore the test code that ends up in /usr/bin
%exclude /usr/bin/*
%files devel
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/*
%{_includedir}/*