"Initial commit to Gerrit"
[profile/ivi/libasyncns.git] / packaging / libasyncns.spec
1
2 # Do not Edit! Generated by:
3 # spectacle version 0.13~pre
4
5 # >> macros
6 # << macros
7
8 Name:       libasyncns
9 Summary:    Asynchronous Name Service Library
10 Version:    0.7
11 Release:    1
12 Group:      System/Libraries
13 License:    LGPLv2+
14 URL:        http://0pointer.de/lennart/projects/libasyncns
15 Source0:    http://0pointer.de/lennart/projects/libasyncns/libasyncns-%{version}.tar.gz
16 Source100:  libasyncns.yaml
17 Requires(post):  /sbin/ldconfig
18 Requires(postun):  /sbin/ldconfig
19
20 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
21
22 %description
23 Description: %{summary}
24
25
26 %package devel
27 Summary:    Development components for the libasyncns library
28 Group:      Development/Libraries
29 Requires:   %{name} = %{version}-%{release}
30
31 %description devel
32 Description: %{summary}
33
34
35 %prep
36 %setup -q -n %{name}-%{version}
37 # >> setup
38 # << setup
39
40 %build
41 # >> build pre
42 # << build pre
43
44 %configure --disable-static \
45     --disable-rpath
46
47 # Call make instruction with smp support
48 make %{?jobs:-j%jobs}
49
50 # >> build post
51 # << build post
52 %install
53 rm -rf %{buildroot}
54 # >> install pre
55 # << install pre
56 %make_install
57
58 # >> install post
59 # << install post
60
61 %clean
62 rm -rf %{buildroot}
63
64
65
66 %post -p /sbin/ldconfig
67
68 %postun -p /sbin/ldconfig
69
70
71
72 %files
73 %defattr(-,root,root,-)
74 # >> files
75 %doc README LICENSE
76 %{_libdir}/libasyncns.so.*
77 %doc /usr/share/doc/libasyncns
78 # << files
79
80
81 %files devel
82 %defattr(-,root,root,-)
83 # >> files devel
84 %{_includedir}/asyncns.h
85 %{_libdir}/libasyncns.so
86 %{_libdir}/pkgconfig/libasyncns.pc
87 # << files devel
88