]> git.pld-linux.org Git - packages/libsmi.git/blob - libsmi.spec
- updated to 0.2.10.
[packages/libsmi.git] / libsmi.spec
1 Summary:        Structure of Management Information library
2 Name:           libsmi
3 Version:        0.2.10
4 Release:        1
5 License:        distributable (see COPYING file)
6 Group:          Libraries
7 Group(de):      Libraries
8 Group(fr):      Librairies
9 Group(pl):      Biblioteki
10 Source0:        ftp://ftp.ibr.cs.tu-bs.de/pub/local/libsmi/%{name}-%{version}.tar.gz
11 URL:            http://www.ibr.cs.tu-bs.de/projects/libsmi/
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %define         _prefix         /usr
15
16 %description
17 Libsmi is a C library that allows network management applications to
18 access MIB module information through a well defined API that hides
19 the nasty details of locating and parsing SMIv1/v2 MIB modules.
20
21 Libsmi supports exact and iterative retrieval functions for all major
22 SMIv1 and SMIv2 constructs (except the AGENT-CAPABILITIES statement).
23
24 The layered concept of libsmi allows to add further methods to
25 retrieve MIB information from persistent repositories. In fact,
26 besides the SMIv1/v2 MIB file parser an additional parser for `SMIng'
27 is included. Both parsers are built on flex/bison grammar
28 specifications.
29
30 SMIng is a research project concerned with the definition of a MIB
31 module language that is semantically fully compatible with SMIv2 but
32 avoids many problems of the ASN.1 based SMI versions.
33
34 Included with the library, there are three tools that make use of
35 libsmi: Smiquery allows simple queries of single MIB module items.
36 Smilint allows to increase the verbosity of the parser(s), so that MIB
37 modules can be checked for syntax and semantic errors. Finally,
38 smidump can be used to dump MIB modules. Currently, SMIng and SMIv2
39 are supported as output formats, so that SMIv2 <-> SMIng conversions
40 are possible.
41
42 %package devel
43 Summary:        Header files and development documentation for libsmi
44 Summary(pl):    Pliki nag³ówkowe i dokumentacja do libsmi
45 Group:          Development/Libraries
46 Group(de):      Entwicklung/Libraries
47 Group(fr):      Development/Librairies
48 Group(pl):      Programowanie/Biblioteki
49 Requires:       %{name} = %{version}
50
51 %description devel
52 Header files and development documentation for libsmi.
53
54 %description -l pl devel
55 Pliki nag³ówkowe i dokumentacja do libsmi.
56
57 %package static
58 Summary:        Static libsmi libraries
59 Summary(pl):    Biblioteki statyczne libsmi
60 Group:          Development/Libraries
61 Group(de):      Entwicklung/Libraries
62 Group(fr):      Development/Librairies
63 Group(pl):      Programowanie/Biblioteki
64 Requires:       %{name}-devel = %{version}
65
66 %description static
67 Static libsmi libraries.
68
69 %description -l pl static
70 Biblioteki statyczne libsmi.
71
72 %prep
73 %setup -q
74
75 %build
76 %configure \
77         --enable-smi \
78         --enable-sming \
79         --enable-shared \
80         --enable-static \
81         --with-mibdir=%{_datadir}/mibs
82
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87
88 %{__make} install DESTDIR=$RPM_BUILD_ROOT
89
90 gzip -9nf ChangeLog README THANKS TODO \
91         doc/draft-irtf-nmrg-sming-*.txt
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post   -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
98
99 %files
100 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_bindir}/*
102 %attr(755,root,root) %{_libdir}/lib*.so.*.*
103 %{_datadir}/mibs
104 %{_mandir}/man1/*
105
106 %files devel
107 %defattr(644,root,root,755)
108 %doc *.gz doc/draft-irtf-nmrg-sming-*.txt.gz
109 %attr(755,root,root) %{_libdir}/lib*.so
110 %attr(755,root,root) %{_libdir}/lib*.la
111 %{_includedir}/*
112 %{_mandir}/man3/*
113
114 %files static
115 %defattr(644,root,root,755)
116 %{_libdir}/lib*.a
This page took 0.037922 seconds and 3 git commands to generate.