Log In
New Account
  
 
Home My Page Project Tree Code Snippets Project Openings NUTSS
 
 
Summary Tracker Lists CVS Files
 

CVS | Administration


File:  [GForge:cvsroot/nutss] / libnutss / nutss.spec.in
Revision 1.5: download - view: text, annotated - select for diffs
Sun May 13 15:39:57 2007 UTC (10 years, 4 months ago) by saikat
Branches: MAIN
CVS tags: HEAD
fix rpm build

Name:           nutss
Version:        @VERSION@
Release:        1%{?dist}
Summary:        NUTSS Library for named Internet communication

Group:          Applications/Internet
License:        GPL
URL:            http://nutss.net/
Source0:        %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  libeXosip2-devel, libosip2-devel, zlib-devel, openssl-devel
BuildRequires:  libxml2-devel >= 2.6.27, libevent-devel, libX11-devel
Requires:       libxml2 >= 2.6.27
Requires:       %{name}-libs = %{version}-%{release}

%description
Implements the NUTSS architecture that facilitates named communication over
the Internet. The communication layer exposes named endpoints and treats the
underlying IP addresses and ports as ephemeral, negotiating network addresses
on the fly and traversing NATs as needed transparent to the application.

%package        libs
Summary:        Runtime libraries for %{name}
Group:          System Environment/Libraries
Requires:       %{name} = %{version}-%{release}

%description    libs
The %{name}-libs package contains dynamic libraries for running applications
that use %{name}.

%package        devel
Summary:        Development files for %{name}
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.


%prep
%setup -q


%build
./autogen.sh

%configure --disable-static --enable-debug

# Fix RPATH issue
find -name libtool | xargs sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g'
find -name libtool | xargs sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

make
#%{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'

mkdir -p $RPM_BUILD_ROOT%{_initrddir}
cp examples/nutssd.init $RPM_BUILD_ROOT%{_initrddir}/nutssd

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
cp examples/nutssd.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/nutssd

%clean
rm -rf $RPM_BUILD_ROOT


%post
if [ $1 -eq 1 ]; then
    /sbin/chkconfig --add nutssd
fi

%preun
if [ $1 -eq 0 ]; then
    /sbin/chkconfig --del nutssd
fi

%post libs -p /sbin/ldconfig

%postun libs -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc AUTHORS BUGS COPYING README TODO NEWS
%{_bindir}/nutssify
%{_bindir}/nutssping
%{_bindir}/nutssttcp
%{_initrddir}/nutssd
%{_mandir}/man1/nutssd.1*
%{_mandir}/man1/nutssify.1*
%{_sbindir}/nutssd
%config(noreplace) %{_sysconfdir}/sysconfig/nutssd

%files libs
%defattr(-,root,root,-)
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_mandir}/man3/nutss.h.3*
%{_mandir}/man3/nutss.3*
%{_libdir}/pkgconfig/libnutss.pc


%changelog
* Thu May 03 2007 Saikat Guha <saikat@cs.cornell.edu> 0.1.1-1
- Update to 0.1.1
- Split out nutssd package

* Tue Apr 24 2007 Saikat Guha <saikat@cs.cornell.edu> 0.1.0-1
- Initial packaging

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>
 

GForge.cis.cornell.edu is brought to you by

Cornell Computing and Information Science


Powered By GForge Collaborative Development Environment