/[packages]/cauldron/unbound/current/SPECS/unbound.spec
ViewVC logotype

Annotation of /cauldron/unbound/current/SPECS/unbound.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 984690 - (hide annotations) (download)
Thu Mar 3 10:50:07 2016 UTC (8 years, 1 month ago) by umeabot
File size: 3098 byte(s)
Rebuild for openssl
1 eatdirt 894286 %define majornum 2
2     %define libname %mklibname %{name} %{majornum}
3     %define develname %mklibname -d %{name}
4    
5     Name: unbound
6 eatdirt 912131 Version: 1.5.7
7 umeabot 984690 Release: %mkrel 2
8 eatdirt 894286 Summary: A validating, recursive, and caching DNS resolver
9    
10     License: BSD
11     Group: Networking/Other
12 eatdirt 912131 Url: https://unbound.net
13 eatdirt 894286
14     Source0: %{name}-%{version}.tar.gz
15     Source1: %{name}-tmpfiles.conf
16     Source2: %{name}.service
17 eatdirt 895050 Source3: %{name}_mga.conf
18 eatdirt 894286
19    
20     BuildRequires: bison
21     BuildRequires: doxygen
22     BuildRequires: flex
23     BuildRequires: nss-devel
24     BuildRequires: openssl-devel
25     BuildRequires: expat-devel
26     BuildRequires: event-devel
27    
28     Requires(pre): rpm-helper >= %{rpmhelper_required_version}
29     Requires(post): rpm-helper >= %{rpmhelper_required_version}
30     Requires(preun): rpm-helper >= %{rpmhelper_required_version}
31     Requires(postun): rpm-helper >= %{rpmhelper_required_version}
32    
33     %description
34     Unbound is a validating, recursive, and caching DNS resolver. The C
35     implementation of Unbound is developed and maintained by NLnet
36     Labs. It is based on ideas and algorithms taken from a java prototype
37     developed by Verisign labs, Nominet, Kirei and ep.net. Unbound is
38     designed as a set of modular components, so that also DNSSEC (secure
39     DNS) validation and stub-resolvers (that do not run as a server, but
40     are linked into an application) are easily possible.
41    
42    
43     %package -n %{libname}
44     Summary: Shared libraries for Unbound
45     Group: System/Libraries
46    
47     %description -n %{libname}
48     %{summary}.
49    
50    
51     %package -n %{develname}
52     Summary: Development headers and libraries for Unbound
53     Group: Development/C
54     Requires: %{libname} = %{version}-%{release}
55     Provides: %{name}-devel = %{version}-%{release}
56     Provides: lib%{name}-devel = %{version}-%{release}
57    
58     %description -n %{develname}
59     %{summary}.
60    
61    
62    
63     %prep
64     %setup -q
65     %autopatch -p1
66    
67     %build
68     %configure2_5x --disable-rpath \
69     --with-libevent \
70     --disable-static
71     %make
72    
73     %install
74     %make_install
75 eatdirt 895050 %{__install} -D -p -m 0644 %{buildroot}%{_sysconfdir}/%{name}/unbound.conf %{buildroot}%{_docdir}/%{name}/unbound.conf
76 eatdirt 894286 %{__install} -D -p -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
77     %{__install} -D -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
78 eatdirt 895050 %{__install} -D -p -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
79 eatdirt 894286
80     find %{buildroot}%{_libdir} -name *.la -delete
81    
82     %pre
83     %_pre_useradd %{name} /dev/null /bin/false
84    
85     %post
86     %_tmpfilescreate %{name}
87     %_post_service %{name}
88    
89     %preun
90     %_preun_service %{name}
91    
92     %postun
93     %_postun_userdel %{name}
94    
95    
96    
97     %files
98     %doc README
99     %{_unitdir}/%{name}.service
100     %{_tmpfilesdir}/%{name}.conf
101     %config(noreplace) %{_sysconfdir}/%{name}/*.conf
102     %{_sbindir}/%{name}*
103 eatdirt 895050 %{_docdir}/%{name}/unbound.conf
104 eatdirt 894286 %{_mandir}/man1/%{name}*.1*
105     %{_mandir}/man5/%{name}*.5*
106     %{_mandir}/man8/%{name}*.8*
107    
108    
109     %files -n %{libname}
110     %{_libdir}/lib%{name}.so.%{majornum}
111     %{_libdir}/lib%{name}.so.%{majornum}.*
112    
113    
114     %files -n %{develname}
115     %{_includedir}/*.h
116     %{_libdir}/lib%{name}*.so
117     %{_mandir}/man3/*.3.*
118    
119    

  ViewVC Help
Powered by ViewVC 1.1.30