Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
>
mbrowse
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 3
[-]
[+]
Added
mbrowse.spec
@@ -0,0 +1,65 @@ +Name: mbrowse +Version: 0.3.1 +Release: 2 +License: GPL +Group: Applications/Netzwerk +Summary: SNMP MIB Browser +URL: http://www.kill-9.org/mbrowse/index.html +Source0: %{name}-%{version}.tar.gz +Patch: %{name}-%{version}.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Packager: Carsten Schoene <cs@linux-administrator.com> +Vendor: linux-administrator.com +Prefix: /usr + +BuildRequires: net-snmp net-snmp-devel openssl-devel glib2-devel gtk-devel glibc-devel libgcc gcc gcc-c++ tcpd-devel + +%description +Mbrowse is an SNMP MIB browser based on GTK and net-snmp. + +%prep +%setup -q +%patch + +LDFLAGS=-L%{_libdir} CPPFLAGS=-I%{_prefix}/include/net-snmp ./configure \ + --with-snmp-prefix=/usr \ + --with-snmp-include=%{_prefix}/include/net-snmp \ + --with-snmp-lib=%{_libdir} + +%__make + +%install +[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf %{buildroot} +mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/%{name} +make install DESTDIR="$RPM_BUILD_ROOT" +install -m 644 AUTHORS COPYING ChangeLog README TODO $RPM_BUILD_ROOT/usr/share/doc/packages/%{name} + +cd $RPM_BUILD_ROOT +find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.mbrowse +find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.mbrowse +find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.mbrowse + +%clean +rm -rf $RPM_BUILD_ROOT/* +rm -rf $RPM_BUILD_DIR/mbrowse* +rm -rf ../file.list.mbrowse + + +%files -f ../file.list.mbrowse + +%changelog +* Mon May 22 2006 Carsten Schoene <cs@linux-administrator.com> +- rebuild for SuSE 10.1 + +* Sun Oct 09 2005 Carsten Schoene <cs@linux-administrator.com> +- rebuild for SuSE 10.0 + +* Sat Apr 09 2005 Carsten Schoene <cs@linux-administrator.com> +- rebuild for SuSE 9.3 + +* Fri Oct 29 2004 Carsten Schoene <cs@linux-administrator.com> +- rebuild for SuSE 9.2 +- added configure fix, (net-snmp detection) + +* Tue Nov 11 2003 Carsten Schoene <cs@linux-administrator.com> +- Initial Package, Version 0.3.1