Have in mind the python-bittorrent dependency is pending to be packaged 
(it will be there asap).

#
# spec file for package gnome-btdownload
#
# Copyright (c) 2008 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: Luis de Bethencourt
#
%include Solaris.inc

%define src_name gnome-btdownload
 
Name:         SUNWgnome-btdownload
License:      GPL   
Version:      0.0.32
Summary:      Gnome interface for 'executing' bittorrent files.
Source:       %{sf_download}/gnome-bt/gnome-btdownload-%{version}.tar.gz
SUNW_BaseDir:            %{_basedir}
SUNW_Copyright:       %{name}.copyright
URL:          http://gnome-bt.sourceforge.net/
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
BuildRequires:           SUNWgnome-base-libs-devel
BuildRequires:           SUNWPython-devel
Requires:                SUNWPython

%include default-depend.inc

%define pythonver 2.4

%description
GNOME "mime-sink" for BitTorrent files. It's not meant to be an entire 
front-end,
just a program that pops up when you "execute" the torrent files.

%package root
Summary:                 %{summary} - / filesystem
SUNW_BaseDir:            /
%include default-depend.inc

%prep
%setup -q -n gnome-btdownload-%{version}

%build
./configure --enable-all --prefix=%{_prefix} --exec-prefix=%{_prefix} 
--sysconfdir=/etc
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR="%{buildroot}" install
rm -rf %{buildroot}%{_datadir}/info

# move to vendor-packages
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
   $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages

%clean
rm -rf $RPM_BUILD_ROOT

%post root
%include gconf-install.script

%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/*
%dir %attr (0755, root, sys) %{_datadir}
%attr (-, root, bin) %{_datadir}/man
%attr (-, root, other) %{_datadir}/applications
%attr (-, root, sys) %{_datadir}/gnome-btdownload
%attr (-, root, other) %{_datadir}/mime-info
%attr (-, root, other) %{_datadir}/application-registry
%attr (-, root, other) %{_datadir}/locale
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/python%{pythonver}/vendor-packages/gnomebtdownload

%files root
%defattr (-, root, sys)
%dir %attr (0755, root, sys) %{_sysconfdir}
%{_sysconfdir}/*

%changelog
* Mon May 19 2008 - luis.debethencourt at sun.com
- Initial version



Reply via email to