From 15e77673bfa999e2413c4f22b636ff6a52c9cba7 Mon Sep 17 00:00:00 2001 From: twittner Date: Fri, 21 Sep 2007 23:35:02 +0000 Subject: [PATCH 1/1] - added Changed files: docsis-gnu-m4-detect.patch -> 1.1 docsis.spec -> 1.1 --- docsis-gnu-m4-detect.patch | 11 ++++++++ docsis.spec | 51 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 docsis-gnu-m4-detect.patch create mode 100644 docsis.spec diff --git a/docsis-gnu-m4-detect.patch b/docsis-gnu-m4-detect.patch new file mode 100644 index 0000000..a66b20b --- /dev/null +++ b/docsis-gnu-m4-detect.patch @@ -0,0 +1,11 @@ +--- docsis-0.9.5/configure.in~ 2007-09-22 00:55:03.862858273 +0200 ++++ docsis-0.9.5/configure.in 2007-09-22 00:58:30.177668639 +0200 +@@ -16,7 +16,7 @@ + AC_MSG_ERROR([M4 is required]) + else + ac_m4_vers=`$M4 --version 2>/dev/null | head -1` ; +- ac_is_gnu_m4=`echo $ac_m4_vers | cut -d' ' -f1`; ++ ac_is_gnu_m4=`echo $ac_m4_vers | grep -q GNU && echo GNU` ; + if test "x$ac_is_gnu_m4" = "xGNU"; then + AC_MSG_RESULT([ found $ac_m4_vers at $M4 ]) + else diff --git a/docsis.spec b/docsis.spec new file mode 100644 index 0000000..c4e82d7 --- /dev/null +++ b/docsis.spec @@ -0,0 +1,51 @@ +Summary: Enconding Configuration File Settings into binary configuration files as specified by the DOCSIS RFI 1.1 +#Summary(pl.UTF-8): - +Name: docsis +Version: 0.9.5 +Release: 0.1 +License: GPL v2 +Group: Applications +Source0: http://dl.sourceforge.net/docsis/%{name}-%{version}.tar.gz +# Source0-md5: 2b89cf254a5eb07b0ee8b6331238ea96 +URL: http://docsis.sourceforge.net/ +Patch0: %{name}-gnu-m4-detect.patch +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: flex +BuildRequires: net-snmp-devel +Requires: net-snmp-mibs +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Enconding Configuration File Settings into binary configuration files +as specified by the DOCSIS RFI 1.1. + +#%description -l pl.UTF-8 + +%prep +%setup -q +%patch0 -p1 + +%build +%{__aclocal} +%{__autoconf} +%{__automake} +%{__autoheader} +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc AUTHORS ChangeLog NEWS README TODO +%attr(755,root,root) %{_bindir}/* +%{_datadir}/%{name} +%{_datadir}/snmp/mibs/* -- 2.43.0