gtk-vnc.spec revision 15341
13873N/A#
13873N/A# spec file for package gtk-vnc
13873N/A#
17253N/A# Copyright 2008 Sun Microsystems, Inc.
13873N/A# This file and all modifications and additions to the pristine
13873N/A# package are under the same license as the package itself.
13873N/A#
17185N/A# Owner:halton
13873N/A#
13873N/A
17182N/A
17182N/AName: gtk-vnc
17182N/ALicense: LGPL v2.1, MIT, MPL 1.1
13873N/AGroup: Development/Libraries
16819N/AVersion: 0.3.7
13873N/ARelease: 1
13873N/ADistribution: Java Desktop System
13873N/AVendor: Sun Microsystems, Inc.
13873N/AURL: http://gtk-vnc.sf.net/
18616N/ASummary: A GTK widget for VNC clients
13873N/ASource: http://easynews.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
13897N/ABuildRoot: %{_tmppath}/%{name}-%{version}-root
16636N/A
14297N/ABuildRequires: gtk2-devel pygtk2-devel python-devel
16636N/A
16615N/A%description
13873N/Agtk-vnc is a VNC viewer widget for GTK. It is built using coroutines
13873N/Aallowing it to be completely asynchronous while remaining single threaded.
13873N/A
13873N/A%package devel
13873N/ASummary: Libraries, includes, etc. to compile with the gtk-vnc library
13873N/AGroup: Development/Libraries
13873N/ARequires: %{name} = %{version}
13873N/ARequires: pkgconfig
13873N/ARequires: pygtk2-devel gtk2-devel
13873N/A
13873N/A%description devel
13873N/Agtk-vnc is a VNC viewer widget for GTK. It is built using coroutines
13873N/Aallowing it to be completely asynchronous while remaining single threaded.
13873N/A
13873N/ALibraries, includes, etc. to compile with the gtk-vnc library
13873N/A
13873N/A%package python
13873N/ASummary: Python bindings for the gtk-vnc library
13873N/AGroup: Development/Libraries
13873N/ARequires: %{name} = %{version}
13873N/A
14297N/A%description python
16615N/Agtk-vnc is a VNC viewer widget for GTK. It is built using coroutines
17253N/Aallowing it to be completely asynchronous while remaining single threaded.
13873N/A
13873N/AA module allowing use of the GTK-VNC widget from python
13873N/A
13873N/A%prep
13873N/A%setup -q
13873N/A
13873N/A%build
13873N/A%ifos linux
13873N/Aif [ -x /usr/bin/getconf ]; then
13873N/A CPUS=`getconf _NPROCESSORS_ONLN`
13873N/Afi
13873N/A%else
13873N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
16585N/A%endif
16585N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
13897N/A CPUS=1
13897N/Afi
13897N/A
13873N/Alibtoolize --force
16585N/Aaclocal $ACLOCAL_FLAGS -I .
13897N/Aautoheader
16585N/Aautomake -a -c -f
16950N/Aautoconf
16585N/A
13897N/A./configure --prefix=%{_prefix} \
13897N/A --bindir=%{_bindir} \
16615N/A --mandir=%{_mandir} \
14297N/A --libdir=%{_libdir} \
13897N/A --datadir=%{_datadir} \
13897N/A --includedir=%{_includedir} \
13897N/A --sysconfdir=%{_sysconfdir} \
13873N/A%if %debug_build
13897N/A --enable-debug=yes \
13873N/A%endif
13873N/A%if %with_brower_plugin
13873N/A --enable-plugin
13873N/A%endif
13873N/A
13873N/A
16950N/Amake -j $CPUS
16950N/A
16585N/A%install
13873N/Aexport GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
13873N/Amake -i install DESTDIR=$RPM_BUILD_ROOT
13873N/Aunset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
13873N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
13873N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
13873N/A
13873N/A%clean
13873N/Arm -rf $RPM_BUILD_ROOT
13873N/A
13873N/A%post
13873N/A/sbin/ldconfig
16585N/A
13873N/A%postun
13873N/A/sbin/ldconfig
13873N/A
13873N/A%files
13873N/A%defattr(-, root, root)
16583N/A%doc AUTHORS ChangeLog NEWS README COPYING.LIB
16583N/A%{_libdir}/lib*.so.*
16583N/A
16585N/A%files devel
16585N/A%defattr(-, root, root)
14297N/A%doc AUTHORS ChangeLog NEWS README COPYING.LIB
14297N/A%doc examples/gvncviewer.c
13897N/A%{_libdir}/lib*.so
13897N/A%dir %{_includedir}/%{name}-1.0/
13873N/A%{_includedir}/%{name}-1.0/*.h
13873N/A%{_libdir}/pkgconfig/%{name}-1.0.pc
%files python
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README COPYING.LIB
%doc examples/gvncviewer.py
%{_libdir}/python*/site-packages/gtkvnc.so
%changelog
* Tue Sep 09 2008 - halton.huo@sun.com
- Bump to 0.3.7
* Tue May 06 2008 - nonsea@users.sourceforge.net
- Bump to 0.3.6
- Remove upsteamed patch solaris-ld-ast.diff
* Tue Apr 22 2008 - nonsea@users.sourceforge.net
- Bump to 0.3.5
* Fri Mar 07 2008 - nonsea@users.sourceforge.net
- Bump to 0.3.4
* Wed Feb 20 2008 - nonsea@users.sourceforge.net
- Bump to 0.3.3
- Remove upstreamed patch suncc-range-case.diff
* Thu Jan 10 2008 - nonsea@users.sourceforge.net
- Bump to 0.3.2
- Add patch suncc-range-case.diff to fix build issue.
* Fri Dec 14 2007 - nonsea@users.sourceforge.net
- Bump to 0.3.1
* Thu Dec 13 2007 - nonsea@users.sourceforge.net
- Bump to 0.3.0
- Remove upsreamed patches: makefile.diff, macro.diff,
yield.diff and coroutine.diff
- Add new patch solaris-ld-ast.diff
* Tue Oct 30 2007 - nonsea@users.sourceforge.net
- Add debug option.
* Thu Oct 25 2007 - nonsea@users.sourceforge.net
- Initial version