libsmi/libsmi.spec

170 lines
4.1 KiB
RPMSpec

#
# spec file for package libsmi (Version 0.4.5)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libsmi
BuildRequires: wget
Version: 0.4.5
Release: 1
Autoreqprov: on
Group: System/Libraries
License: Other License(s), see package
URL: http://www.ibr.cs.tu-bs.de/projects/libsmi
Summary: A Library to Access SMI MIB Information
Source: %{name}-%{version}.tar.bz2
Patch0: %{name}-%{version}-no_redef.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The purpose of libsmi is to
* Give network management applications a concise programmer-friendly
interface to access MIB module information
* Separate the knowledge on SMI from the main parts of management
applications
* Allow addition of new kinds of MIB repositories without the need to
adapt applications that make use of libsmi
Authors:
--------
Frank Strauss <strauss@ibr.cs.tu-bs.de>
%package devel
Summary: libsmi header files and static libraries
Group: Development/Libraries/C and C++
Requires: libsmi glibc-devel
%description devel
This package contains the header files and static libraries of package
libsmi.
Authors:
--------
Frank Strauss <strauss@ibr.cs.tu-bs.de>
%prep
%setup -q
%patch0
%build
libtoolize --force
autoreconf --force --install
CFLAGS="$RPM_OPT_FLAGS -Wall" \
CXXFLAGS="$RPM_OPT_FLAGS -Wall -fmessage-length=0" \
./configure \
--mandir=%{_mandir} \
--prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--libdir=%{_libdir} \
--infodir=%{_infodir} \
--enable-smi \
--enable-sming \
--with-mibdir=%{_datadir}/mibs
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%post
%{run_ldconfig}
%postun
%{run_ldconfig}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc ANNOUNCE COPYING ChangeLog README THANKS TODO doc/*.txt
%doc %{_mandir}/man?/*
%{_libdir}/libsmi.so.*
%{_bindir}/*
%{_datadir}/mibs
%{_datadir}/pibs
%files devel
%defattr(-, root, root)
%{_includedir}/*
%{_libdir}/libsmi.a
%{_libdir}/libsmi.la
%{_libdir}/libsmi.so
%{_libdir}/pkgconfig/libsmi.pc
%{_datadir}/aclocal/libsmi.m4
%changelog -n libsmi
* Wed Oct 18 2006 - mjancar@suse.cz
- update to 0.4.5
* bugfixes
* new MIBs
- drop libsmi-0.4.5-sysconf.diff, included upstream
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jun 13 2005 - ro@suse.de
- do not redefine vsnprintf
* Thu Feb 24 2005 - mjancar@suse.cz
- update to 0.4.3
* Fri Feb 27 2004 - mjancar@suse.cz
- update to 0.4.2
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Thu Jul 31 2003 - mjancar@suse.cz
- use %%run_ldconfig
* Thu May 29 2003 - mjancar@suse.cz
- update to 0.4.1
* Wed May 28 2003 - coolo@suse.de
- add the aclocal macro file to the devel package
* Fri May 09 2003 - ro@suse.de
- do a full autoreconf
* Tue Jan 29 2002 - cihlar@suse.cz
- use %%{_libdir}
* Mon Nov 26 2001 - cihlar@suse.cz
- update to version 0.3.0:
* many fixes
* added several files to mibs/... by new RFCs
- devel subpackage created
* Mon Nov 12 2001 - cihlar@suse.cz
- fixed installation with new automake
* Wed Jun 06 2001 - cihlar@suse.cz
- fixed to compile with new libtool
* Tue Apr 17 2001 - cihlar@suse.cz
- update to version 0.2.16
* Wed Mar 07 2001 - cihlar@suse.cz
- update to version 0.2.14
* Tue Feb 27 2001 - cihlar@suse.cz
- update to version 0.2.13
- compile with --enable-smi and --enable-sming
* Sun Dec 03 2000 - smid@suse.cz
- new version 0.2.11
* Wed Oct 11 2000 - smid@suse.cz
- new version 0.2.6
* Thu Jun 08 2000 - cihlar@suse.cz
- fixed License tag
- added %%clean
* Fri Apr 21 2000 - smid@suse.cz
- upgrade to 0.2.0
- buildroot added
* Sat Apr 08 2000 - bk@suse.de
- added suse update config macro
* Thu Mar 02 2000 - uli@suse.de
- moved man pages to %%{_mandir}
* Mon Oct 25 1999 - uli@suse.de
- update -> 0.1.7
* Mon Sep 27 1999 - uli@suse.de
- new package, version 0.1.6