18861N/A#
18861N/A# spec file for package SUNWnet6
18861N/A#
18861N/A# Copyright (c) 2010 Sun Microsystems, Inc.
18861N/A# This file and all modifications and additions to the pristine
18861N/A# package are under the same license as the package itself.
18861N/A#
18861N/A%define owner kevmca
18861N/A#
18861N/A
18861N/A%include Solaris.inc
18861N/A
18861N/A%define OSR 9813:1.3
18861N/A
18861N/AName: SUNWnet6
18861N/AIPS_package_name: library/c++/net6
18861N/AMeta(info.classification): %{classification_prefix}:Development/System
18861N/ALicense: LGPLv2.1
18861N/AVersion: 1.3.12
18861N/ASummary: A library which eases the development of network-based applications
18861N/ASource: http://releases.0x539.de/net6/net6-%{version}.tar.gz
18861N/ASource1: l10n-configure.sh
18861N/APatch1: net6-01-close-prototype.diff
18861N/ASUNW_Basedir: %{_basedir}
18861N/ASUNW_Copyright: %{name}.copyright
18861N/AURL: http://gobby.0x539.de/
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/A
18861N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
20857N/ABuildRequires: SUNWsigcpp
20857N/ABuildRequires: SUNWgnutls
18861N/ARequires: SUNWlibgpg-error
18861N/ABuildRequires: SUNWsigcpp-devel
18861N/ABuildRequires: SUNWgnutls-devel
18862N/ABuildRequires: SUNWbtool
18861N/A
18861N/A%package devel
18861N/ASummary: %{summary} - development files
18861N/ASUNW_BaseDir: %{_basedir}
18861N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
18861N/ARequires: %name
18861N/A
18861N/A%package l10n
18861N/ASummary: %{summary} - l10n files
18861N/ARequires: %{name}
18861N/A
18861N/A%description
18861N/Anet6 is a library which eases the development of network-based applications
18861N/Aas it provides a TCP protocol abstraction for C++. It is portable to both
18861N/Athe Windows and Unix-like platforms.
18861N/A
18861N/A%prep
18861N/A%setup -q -n net6-%{version}
18861N/A%patch1 -p1
18861N/A
18861N/A%build
18861N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
18861N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
18861N/A CPUS=1
18861N/Afi
18861N/A
18861N/A%if %cc_is_gcc
18861N/A%else
18861N/Aexport CXX="${CXX} -norunpath"
18861N/A%endif
18861N/Aexport CXXFLAGS="%cxx_optflags"
18861N/A
18861N/Ash %SOURCE1 --enable-copyright
18861N/Aexport ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
18861N/Alibtoolize --force
18861N/Aaclocal $ACLOCAL_FLAGS
18861N/Aautoconf
18861N/Aautomake -a -c -f
18861N/A./configure --prefix=%{_prefix} --mandir=%{_mandir} \
18861N/A --libdir=%{_libdir} \
18861N/A --libexecdir=%{_libexecdir} \
18861N/A --sysconfdir=%{_sysconfdir} --disable-python
18861N/A
18861N/Amake -j$CPUS
18861N/A
18861N/A%install
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/Amake install DESTDIR=$RPM_BUILD_ROOT
18861N/A
18861N/Arm -f $RPM_BUILD_ROOT%{_libdir}/lib*a
18861N/A
18861N/A%clean
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A
18861N/A%files
18861N/A%doc COPYING AUTHORS NEWS ChangeLog README
18861N/A%dir %attr (0755, root, sys) %{_datadir}
18861N/A%dir %attr (0755, root, other) %{_datadir}/doc
18861N/A%defattr (-, root, bin)
18861N/A%dir %attr (0755, root, bin) %{_libdir}
18861N/A%{_libdir}/lib*
18861N/A
18861N/A%files devel
18861N/A%defattr (-, root, bin)
18861N/A%dir %attr (0755, root, bin) %{_libdir}
18861N/A%dir %attr (0755, root, other) %{_libdir}/pkgconfig
18861N/A%{_libdir}/pkgconfig/*
18861N/A%dir %attr (0755, root, bin) %{_includedir}
18861N/A%{_includedir}/*
18861N/A
18861N/A%files l10n
18861N/A%defattr (-, root, bin)
18861N/A%dir %attr (0755, root, sys) %{_datadir}
18861N/A%attr (-, root, other) %{_datadir}/locale
18861N/A
18861N/A%changelog
18861N/A* Thu Jan 28 2010 - brian.cameron@sun.com
18861N/A- Bump to 1.3.12. Remove upstream patch net6-02-gnutls.diff.
18861N/A* Thu Jul 23 2009 - christian.kelly@sun.com
18861N/A- Add patch to allow build with gnutls.
18861N/A* Tue Apr 20 2009 - kevin.mcareavey@sun.com
18861N/A- Bump to 1.3.9.
18861N/A* Thu Sep 11 2008 - kevin.mcareavey@sun.com
18861N/A- Add %doc to %files for copyright
18861N/A* Tue Aug 26 2008 - kevin.mcareavey@sun.com
18861N/A- Cleanup for spec-files-other integration
18861N/A- Bump to 1.3.6.
18861N/A* Fri Aug 17 2007 - trisk@acm.jhu.edu
18861N/A- Bump to 1.3.5.
18861N/A- Add URL.
18861N/A* Fri Jul 7 2006 - laca@sun.com
18861N/A- rename to SFEnet6.
18861N/A- bump to 1.3.0rc2.
18861N/A- fix version number.
18861N/A- update file attributes.
18861N/A- remove upstream patch enum_opts.diff.
18861N/A* Mon May 08 2006 - damien.carbery@sun.com
18861N/A- Add patch, 02-enum_opts, to fix build.
18861N/A* Fri May 05 2006 - damien.carbery@sun.com
18861N/A- Bump to 1.3.0rc1.
18861N/A* Wed Nov 16 2005 - laca@sun.com
18861N/A- create.
19378N/A
19695N/A