1 # 2 # spec file for package SUNWobby 3 # 4 # Copyright (c) 2008 Sun Microsystems, Inc. 5 # This file and all modifications and additions to the pristine 6 # package are under the same license as the package itself. 7 # 8 %define owner kevmca 9 # 10 11 %include Solaris.inc 12 13 Name: SUNWobby 14 License: GPLv2.1 15 Summary: Network Text Editing Library 16 Version: 0.4.7 17 Source: http://releases.0x539.de/obby/obby-%{version}.tar.gz 18 # owner:trisk date:2007-8-17 type:bug 19 Patch1: obby-01-cast.diff 20 SUNW_Basedir: %{_basedir} 21 SUNW_Copyright: %{name}.copyright 22 URL: http://gobby.0x539.de/ 23 BuildRoot: %{_tmppath}/%{name}-%{version}-build 24 25 %include default-depend.inc 26 Requires: SUNWnet6 27 Requires: SUNWavahi-bridge-dsd 28 BuildRequires: SUNWnet6-devel 29 BuildRequires: SUNWavahi-bridge-dsd-devel 30 31 %package devel 32 Summary: %{summary} - development files 33 SUNW_BaseDir: %{_basedir} 34 %include default-depend.inc 35 Requires: %name 36 37 %if %build_l10n 38 %package l10n 39 Summary: %{summary} - l10n files 40 SUNW_BaseDir: %{_basedir} 41 %include default-depend.inc 42 Requires: %{name} 43 %endif 44 45 %description 46 obby is a library which provides synced document buffers. It supports 47 multiple documents in one session and is portable to both Windows and 48 Unix-like platforms. 49 50 %prep 51 %setup -q -n obby-%{version} 52 %patch1 -p1 53 54 %build 55 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 56 if test "x$CPUS" = "x" -o $CPUS = 0; then 57 CPUS=1 58 fi 59 60 %if %cc_is_gcc 61 %else 62 export CXX="${CXX} -norunpath" 63 %endif 64 export CXXFLAGS="%cxx_optflags" 65 66 ./configure --prefix=%{_prefix} --mandir=%{_mandir} \ 67 --libdir=%{_libdir} \ 68 --libexecdir=%{_libexecdir} \ 69 --sysconfdir=%{_sysconfdir} \ 70 --enable-ipv6 \ 71 --with-zeroconf 72 73 make -j$CPUS 74 75 %install 76 rm -rf $RPM_BUILD_ROOT 77 make install DESTDIR=$RPM_BUILD_ROOT 78 79 %if %build_l10n 80 %else 81 # REMOVE l10n FILES 82 rm -rf $RPM_BUILD_ROOT%{_datadir} 83 %endif 84 85 rm -f $RPM_BUILD_ROOT%{_libdir}/lib*a 86 87 %clean 88 rm -rf $RPM_BUILD_ROOT 89 90 %files 91 %doc AUTHORS NEWS README 92 %doc(bzip2) COPYING ChangeLog 93 %dir %attr (0755, root, sys) %{_datadir} 94 %dir %attr (0755, root, other) %{_datadir}/doc 95 %defattr (-, root, bin) 96 %dir %attr (0755, root, bin) %{_libdir} 97 %{_libdir}/lib* 98 99 %files devel 100 %defattr (-, root, bin) 101 %dir %attr (0755, root, bin) %{_libdir} 102 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 103 %{_libdir}/pkgconfig/* 104 %dir %attr (0755, root, bin) %{_includedir} 105 %{_includedir}/* 106 107 %if %build_l10n 108 %files l10n 109 %defattr (-, root, bin) 110 %dir %attr (0755, root, sys) %{_datadir} 111 %attr (-, root, other) %{_datadir}/locale 112 %endif 113 114 %changelog 115 * Tue Mar 3 2009 - kevin.mcareavey"sun.com 116 - Bump to 0.4.7 117 * Wed Sep 24 2008 - dave.lin (at] sun.com 118 - Set attribute to %{_datadir} in l10n pkg. 119 * Fri Sep 19 2008 - kevin.mcareavey (at] sun.com 120 - Changed %doc files to bzip2 121 * Thu Sep 18 2008 - kevin.mcareavey (at] sun.com 122 - Cleanup for spec-files-other integration 123 * Mon Sep 17 2007 - trisk (at] acm.jhu.edu 124 - Enable IPv6 support and Zeroconf (avahi) 125 * Fri Aug 17 2007 - trisk (at] acm.jhu.edu 126 - Bump to 0.4.4 127 - Add URL 128 * Tue Jul 11 2006 - laca (at] sun.com 129 - rename to SFEobby 130 - update file attributes 131 - bump to 0.4.0.rc2 132 * Fri May 05 2006 - damien.carbery (at] sun.com 133 - Bump to 0.4.0rc1. Add SUNWsigcpp and SUNWnet6 dependencies. 134 * Thu Nov 17 2005 - laca (at] sun.com 135 - create 136