]> git.pld-linux.org Git - packages/libsmi.git/blob - libsmi.spec
8a197748e9e1ddd2f37e71c5c0db17117754cc32
[packages/libsmi.git] / libsmi.spec
1 Summary:        Structure of Management Information library
2 Summary(pl):    Biblioteka SMI (Struktur zarz±dzania informacjami)
3 Summary(ru):    âÉÂÌÉÏÔÅËÁ ÄÌÑ ÄÏÓÔÕÐÁ Ë ÉÎÆÏÒÍÁÃÉÉ SMI MIB
4 Summary(uk):    â¦Â̦ÏÔÅËÁ ÄÌÑ ÄÏÓÔÕÐÕ ÄÏ ¦ÎÆÏÒÍÁ槠SMI MIB
5 Name:           libsmi
6 Version:        0.4.4
7 Release:        1
8 License:        BSD
9 Group:          Libraries
10 Source0:        ftp://ftp.ibr.cs.tu-bs.de/pub/local/libsmi/%{name}-%{version}.tar.gz
11 # Source0-md5:  8c87fe16800391ef74c43756634898e2
12 Source1:        %{name}-smi.conf
13 URL:            http://www.ibr.cs.tu-bs.de/projects/libsmi/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  libtool
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Libsmi is a C library that allows network management applications to
21 access MIB module information through a well defined API that hides
22 the nasty details of locating and parsing SMIv1/v2 MIB modules.
23
24 Libsmi supports exact and iterative retrieval functions for all major
25 SMIv1 and SMIv2 constructs (except the AGENT-CAPABILITIES statement).
26
27 The layered concept of libsmi allows to add further methods to
28 retrieve MIB information from persistent repositories. In fact,
29 besides the SMIv1/v2 MIB file parser an additional parser for `SMIng'
30 is included. Both parsers are built on flex/bison grammar
31 specifications.
32
33 SMIng is a research project concerned with the definition of a MIB
34 module language that is semantically fully compatible with SMIv2 but
35 avoids many problems of the ASN.1 based SMI versions.
36
37 Included with the library, there are three tools that make use of
38 libsmi: Smiquery allows simple queries of single MIB module items.
39 Smilint allows to increase the verbosity of the parser(s), so that MIB
40 modules can be checked for syntax and semantic errors. Finally,
41 smidump can be used to dump MIB modules. Currently, SMIng and SMIv2
42 are supported as output formats, so that SMIv2 <-> SMIng conversions
43 are possible.
44
45 %description -l pl
46 libsmi jest bibliotek± pozwalaj±c± aplikacjom zarz±dzania sieci± na
47 dostêp do informacji o modu³ach MIB poprzez dobrze zdefiniowane API,
48 ukrywaj±ce brzydkie szczegó³y szukania i parsowania modu³ów MIB
49 SMIv1/v2.
50
51 %description -l ru
52 Libsmi - ÜÔÏ C ÂÉÂÌÉÏÔÅËÁ, ÄÁÀÝÁÑ ÐÒÏÇÒÁÍÍÁÍ ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔØÀ ÄÏÓÔÕРË
53 ÉÎÆÏÒÍÁÃÉÏÎÎÙÍ ÍÏÄÕÌÑÍ MIB ÐÏÓÒÅÄÓÔ×ÏÍ ÈÏÒÏÛÏ ÏÐÒÅÄÅÌÅÎÎÏÇÏ API,
54 ËÏÔÏÒÙÊ ÐÒÑÞÅÔ ÎÅÐÒÉÑÔÎÙÅ ÄÅÔÁÌÉ ÐÏÉÓËÁ É ÒÁÚÂÏÒÁ ÍÏÄÕÌÅÊ SMIv1/v2
55 MIB.
56
57 %description -l uk
58 Libsmi - ÃÅ C Â¦Â̦ÏÔÅËÁ, ÝÏ ÎÁÄÁ¤ ÐÒÏÇÒÁÍÁÍ ÕÐÒÁ×̦ÎÎÑ ÍÅÒÅÖÅÀ ÄÏÓÔÕÐ
59 ÄÏ ¦ÎÆÏÒÍÁæÊÎÉÈ ÍÏÄÕ̦נMIB ÞÅÒÅÚ ÄÏÂÒÅ ×ÉÚÎÁÞÅÎÉÊ API, ÝÏ ÐÒÉÈÏ×Õ¤
60 ÎÅÐÒɤÍΦ ÄÅÔÁ̦ ÐÏÛÕËÕ ÔÁ ÒÏÚÂÏÒÕ ÍÏÄÕ̦נSMIv1/v2 MIB.
61
62 %package progs
63 Summary:        SMI tools
64 Summary(pl):    Narzêdzia SMI
65 Group:          Development/Libraries
66 Requires:       %{name} = %{version}-%{release}
67
68 %description progs
69 SMI tools.
70
71 %description progs -l pl
72 Narzêdzia SMI.
73
74 %package devel
75 Summary:        Header files and development documentation for libsmi
76 Summary(pl):    Pliki nag³ówkowe i dokumentacja do libsmi
77 Summary(ru):    èÅÄÅÒÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ libsmi
78 Summary(uk):    èÅÄÅÒÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ libsmi
79 Group:          Development/Libraries
80 Requires:       %{name} = %{version}-%{release}
81
82 %description devel
83 Header files and development documentation for libsmi.
84
85 %description devel -l pl
86 Pliki nag³ówkowe i dokumentacja do libsmi.
87
88 %description devel -l ru
89 èÅÄÅÒÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ libsmi.
90
91 %description devel -l uk
92 èÅÄÅÒÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ libsmi.
93
94 %package static
95 Summary:        Static libsmi libraries
96 Summary(pl):    Biblioteki statyczne libsmi
97 Group:          Development/Libraries
98 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ libsmi
99 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ libsmi
100 Requires:       %{name}-devel = %{version}-%{release}
101
102 %description static
103 Static libsmi libraries.
104
105 %description static -l pl
106 Biblioteki statyczne libsmi.
107
108 %description static -l ru
109 óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ
110 libsmi.
111
112 %description static -l uk
113 óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ libsmi.
114
115 %prep
116 %setup -q
117
118 # to be sure to remove workaround when missing file exists
119 [ -f tools/dump-svg-script.js ] && exit 1
120 # missing dist file, (re)generate from processed version
121 sed -e '1d;/^;$/d;s/\\"/"/g;s/\\\\/\\/g;s/\\n"$//;s/^"//;' tools/dump-svg-script.h > tools/dump-svg-script.js
122 touch tools/dump-svg-script.h
123
124 %build
125 %{__libtoolize}
126 %{__aclocal}
127 %{__autoconf}
128 %{__autoheader}
129 %{__automake}
130 %configure \
131         --enable-smi \
132         --enable-sming \
133         --enable-shared \
134         --enable-static \
135         --with-mibdir=%{_datadir}/mibs
136
137 %{__make}
138
139 %install
140 rm -rf $RPM_BUILD_ROOT
141 install -d $RPM_BUILD_ROOT%{_sysconfdir}
142
143 %{__make} install \
144         DESTDIR=$RPM_BUILD_ROOT
145
146 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/smi.conf
147
148 %clean
149 rm -rf $RPM_BUILD_ROOT
150
151 %post   -p /sbin/ldconfig
152 %postun -p /sbin/ldconfig
153
154 %files
155 %defattr(644,root,root,755)
156 %doc ANNOUNCE COPYING ChangeLog README THANKS TODO
157 %{_sysconfdir}/smi.conf
158 %attr(755,root,root) %{_libdir}/lib*.so.*.*
159 %{_datadir}/mibs
160 %{_datadir}/pibs
161
162 %files progs
163 %defattr(644,root,root,755)
164 %attr(755,root,root) %{_bindir}/*
165 %{_mandir}/man1/*
166
167 %files devel
168 %defattr(644,root,root,755)
169 %doc doc/draft-irtf-nmrg-smi*.txt
170 %attr(755,root,root) %{_libdir}/lib*.so
171 %{_libdir}/lib*.la
172 %{_includedir}/*
173 %{_aclocaldir}/*.m4
174 %{_pkgconfigdir}/*.pc
175 %{_mandir}/man3/*
176
177 %files static
178 %defattr(644,root,root,755)
179 %{_libdir}/lib*.a
This page took 0.096045 seconds and 2 git commands to generate.