[Click] Replacement .spec file for building RPMs

Jonathan Day imipak at yahoo.com
Tue Jan 11 01:20:42 EST 2005


Hi,

I tried building the RPMs from the included .spec file
and discovered that it didn't work. (Partly because
the version hadn't been updated, but also because some
of the .spec file syntax seems to have changed, such
as the defattr() macro.)

I've built an SRPM and an RPM for the 386 and Pentium
4 architectures, if anybody would be interested in
those, using the .spec file.

Hope this proves of use to someone...

Jonathan

------ Cut here, or just grab the attached file


%define name click
%define version 1.4.3
%define release 1

Summary: The Click modular router
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
License: Click
Group: System/Networking
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
Url: http://www.pdos.lcs.mit.edu/click
Vendor: Click Software Team

%description
Click is a modular software router developed by MIT
LCS's Parallel and
Distributed Operating Systems group, Mazu Networks,
the ICSI Center
for Internet Research, and now UCLA. Click routers are
flexible,
configurable, and easy to understand. They're also
pretty fast, for
software routers running on commodity hardware; on a
700 MHz Pentium
III, a Click IP router can handle up to 435,000
64-byte packets a
second.

A Click router is an interconnected collection of
modules called
elements; elements control every aspect of the
router's behavior, from
communicating with devices to packet modification to
queueing,
dropping policies and packet scheduling. Individual
elements can have
surprisingly powerful behavior, and it's easy to write
new ones in
C++. You write a router configuration by gluing
elements together with
a simple language.

We've designed several working configurations,
including an Ethernet
switch and a standards-conformant IP router. You can
run a
configuration at user level, using a driver program,
or in a Linux 2.2
or 2.4 kernel with a kernel module. You can also
manipulate
configurations with a variety of tools.

%prep
rm -fr $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
%setup -q

%build
%configure --prefix=/usr --disable-linuxmodule
--enable-analysis --enable-etherswitch --enable-grid
--enable-ip6 --enable-ipsec --enable-local
--enable-radio --enable-wifi --enable-multithread
--enable-intel-cpu --enable-adaptive
make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,0755)
%doc AUTHORS ChangeLog FAQ INSTALL LICENSE README
%{_bindir}
%{_datadir}/click
%{_mandir}
%{_includedir}/click
%{_includedir}/clicknet
%{_includedir}/clicktool
%{_infodir}
%{_libdir}

%post
if [ -x /sbin/install-info ] ; then
   /sbin/install-info %{_infodir}/click.info
%{_infodir}/dir
fi

%preun
if [ -x /sbin/install-info ] ; then
   /sbin/install-info --delete %{_infodir}/click.info
%{_infodir}/dir
fi

%changelog
* Fri May 28 2004 Mark Huang
<mlhuang at cs.princeton.edu>
- add scriplets to install info files correctly

* Fri Apr 16 2004 Mark Huang
<mlhuang at cs.princeton.edu>
- initial version

# end of file


		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 
-------------- next part --------------
%define name click
%define version 1.4.3
%define release 1

Summary: The Click modular router
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
License: Click
Group: System/Networking
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
Url: http://www.pdos.lcs.mit.edu/click
Vendor: Click Software Team

%description
Click is a modular software router developed by MIT LCS's Parallel and
Distributed Operating Systems group, Mazu Networks, the ICSI Center
for Internet Research, and now UCLA. Click routers are flexible,
configurable, and easy to understand. They're also pretty fast, for
software routers running on commodity hardware; on a 700 MHz Pentium
III, a Click IP router can handle up to 435,000 64-byte packets a
second.

A Click router is an interconnected collection of modules called
elements; elements control every aspect of the router's behavior, from
communicating with devices to packet modification to queueing,
dropping policies and packet scheduling. Individual elements can have
surprisingly powerful behavior, and it's easy to write new ones in
C++. You write a router configuration by gluing elements together with
a simple language.

We've designed several working configurations, including an Ethernet
switch and a standards-conformant IP router. You can run a
configuration at user level, using a driver program, or in a Linux 2.2
or 2.4 kernel with a kernel module. You can also manipulate
configurations with a variety of tools.

%prep
rm -fr $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
%setup -q

%build
%configure --prefix=/usr --disable-linuxmodule --enable-analysis --enable-etherswitch --enable-grid --enable-ip6 --enable-ipsec --enable-local --enable-radio --enable-wifi --enable-multithread --enable-intel-cpu --enable-adaptive
make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,0755)
%doc AUTHORS ChangeLog FAQ INSTALL LICENSE README
%{_bindir}
%{_datadir}/click
%{_mandir}
%{_includedir}/click
%{_includedir}/clicknet
%{_includedir}/clicktool
%{_infodir}
%{_libdir}

%post
if [ -x /sbin/install-info ] ; then
   /sbin/install-info %{_infodir}/click.info %{_infodir}/dir
fi

%preun
if [ -x /sbin/install-info ] ; then
   /sbin/install-info --delete %{_infodir}/click.info %{_infodir}/dir
fi

%changelog
* Fri May 28 2004 Mark Huang <mlhuang at cs.princeton.edu>
- add scriplets to install info files correctly

* Fri Apr 16 2004 Mark Huang <mlhuang at cs.princeton.edu>
- initial version

# end of file


More information about the click mailing list