OBS User unknown 2009-01-12 01:04:18 +00:00 committed by Git OBS Bridge
parent 3b2d32819e
commit f86ff64a4b
3 changed files with 74 additions and 52 deletions

View File

@ -0,0 +1,13 @@
Index: lib/smi.c
===================================================================
--- lib/smi.c.orig 2005-11-25 10:14:05.000000000 +0100
+++ lib/smi.c 2009-01-09 02:55:36.000000000 +0100
@@ -10,7 +10,7 @@
*
* @(#) $Id: smi.c 2128 2005-04-25 22:36:46Z schoenw $
*/
-
+#define _GNU_SOURCE
#include <config.h>
#include <stdlib.h>

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Jan 9 03:02:57 CET 2009 - crrodriguez@suse.de
- remove static libraries and "la" files
- remove deprecated run_ldconfig usage
- define _GNU_SOURCE where needed
-------------------------------------------------------------------
Wed Oct 18 13:44:05 CEST 2006 - mjancar@suse.cz

View File

@ -1,26 +1,35 @@
#
# 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.
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libsmi
BuildRequires: wget
Version: 0.4.5
Release: 1
Autoreqprov: on
Release: 125
AutoReqProv: on
Group: System/Libraries
License: Other License(s), see package
URL: http://www.ibr.cs.tu-bs.de/projects/libsmi
License: X11/MIT
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
Patch1: libsmi-0.4.5-gnu-source.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -42,9 +51,10 @@ Authors:
Frank Strauss <strauss@ibr.cs.tu-bs.de>
%package devel
License: X11/MIT
Summary: libsmi header files and static libraries
Group: Development/Libraries/C and C++
Requires: libsmi glibc-devel
Requires: %{name} = %{version} glibc-devel
%description devel
This package contains the header files and static libraries of package
@ -59,32 +69,22 @@ Authors:
%prep
%setup -q
%patch0
%patch1
%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 \
%configure --disable-static --with-pic --enable-smi \
--enable-sming \
--with-mibdir=%{_datadir}/mibs
make
%{__make} %{?jobs:-j%jobs}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f %{buildroot}%{_libdir}/*.la
%post
%{run_ldconfig}
%post -p /sbin/ldconfig
%postun
%{run_ldconfig}
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
@ -101,69 +101,71 @@ rm -rf $RPM_BUILD_ROOT
%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
%changelog
* Fri Jan 09 2009 crrodriguez@suse.de
- remove static libraries and "la" files
- remove deprecated run_ldconfig usage
- define _GNU_SOURCE where needed
* 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
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jun 13 2005 - ro@suse.de
* Mon Jun 13 2005 ro@suse.de
- do not redefine vsnprintf
* Thu Feb 24 2005 - mjancar@suse.cz
* Thu Feb 24 2005 mjancar@suse.cz
- update to 0.4.3
* Fri Feb 27 2004 - mjancar@suse.cz
* Fri Feb 27 2004 mjancar@suse.cz
- update to 0.4.2
* Sat Jan 10 2004 - adrian@suse.de
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Thu Jul 31 2003 - mjancar@suse.cz
* Thu Jul 31 2003 mjancar@suse.cz
- use %%run_ldconfig
* Thu May 29 2003 - mjancar@suse.cz
* Thu May 29 2003 mjancar@suse.cz
- update to 0.4.1
* Wed May 28 2003 - coolo@suse.de
* Wed May 28 2003 coolo@suse.de
- add the aclocal macro file to the devel package
* Fri May 09 2003 - ro@suse.de
* Fri May 09 2003 ro@suse.de
- do a full autoreconf
* Tue Jan 29 2002 - cihlar@suse.cz
* Tue Jan 29 2002 cihlar@suse.cz
- use %%{_libdir}
* Mon Nov 26 2001 - cihlar@suse.cz
* 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
* Mon Nov 12 2001 cihlar@suse.cz
- fixed installation with new automake
* Wed Jun 06 2001 - cihlar@suse.cz
* Wed Jun 06 2001 cihlar@suse.cz
- fixed to compile with new libtool
* Tue Apr 17 2001 - cihlar@suse.cz
* Tue Apr 17 2001 cihlar@suse.cz
- update to version 0.2.16
* Wed Mar 07 2001 - cihlar@suse.cz
* Wed Mar 07 2001 cihlar@suse.cz
- update to version 0.2.14
* Tue Feb 27 2001 - cihlar@suse.cz
* 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
* Sun Dec 03 2000 smid@suse.cz
- new version 0.2.11
* Wed Oct 11 2000 - smid@suse.cz
* Wed Oct 11 2000 smid@suse.cz
- new version 0.2.6
* Thu Jun 08 2000 - cihlar@suse.cz
* Thu Jun 08 2000 cihlar@suse.cz
- fixed License tag
- added %%clean
* Fri Apr 21 2000 - smid@suse.cz
* Fri Apr 21 2000 smid@suse.cz
- upgrade to 0.2.0
- buildroot added
* Sat Apr 08 2000 - bk@suse.de
* Sat Apr 08 2000 bk@suse.de
- added suse update config macro
* Thu Mar 02 2000 - uli@suse.de
* Thu Mar 02 2000 uli@suse.de
- moved man pages to %%{_mandir}
* Mon Oct 25 1999 - uli@suse.de
* Mon Oct 25 1999 uli@suse.de
- update -> 0.1.7
* Mon Sep 27 1999 - uli@suse.de
* Mon Sep 27 1999 uli@suse.de
- new package, version 0.1.6