File releaseforge.spec of Package releaseforge

#
# spec file for package releaseforge (Version 1.1)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           releaseforge
BuildRequires:  kdebase3-devel python-devel python-kde3 update-desktop-files
License:        GPL v2 or later
Group:          Development/Tools/Version Control
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       python-kde3 >= %( echo `rpm -q --queryformat '%{VERSION}' python-kde3`)
Summary:        ReleaseForge to Manage SourceForge Projects
Version:        1.1
Release:        113
URL:            http://releaseforge.sourceforge.net
Autoreqprov:    on
Source:         %{name}-%{version}.tar.bz2
Source1:        releaseforge.desktop
Patch0:         releaseforge-fix-b.n.c301409.diff

%py_requires

%description
ReleaseForge is an open source utility designed for the administrators
and release engineers of SourceForge projects. ReleaseForge allows you
to easily create new SourceForge project releases in a quicker and
friendlier manner than the usual SourceForge Web interface.



Authors:
--------
    Phil Schwartz <phil_schwartz@users.sourceforge.net>

%prep
%setup
%patch -p0

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT 
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp $RPM_BUILD_ROOT%{_datadir}/releaseforge/images/releaseforge-icon.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/releaseforge.png
%suse_update_desktop_file -i %name Development RevisionControl

%clean
rm -rf $RPM_BUILD_ROOT

%files 
%defattr(-,root,root)
%doc CHANGELOG.txt LICENSE.txt README.txt
%dir %{py_sitedir}/ReleaseForge
%dir %{_datadir}/releaseforge
%{_bindir}/releaseforge
%{_datadir}/releaseforge/*
%{_datadir}/pixmaps/releaseforge.png
%{py_sitedir}/*egg-info
%{py_sitedir}/ReleaseForge/*
/usr/share/applications/%name.desktop

%changelog
* Fri Aug 17 2007 - dkukawak@suse.de
- added patches:
  - releaseforge-fix-b.n.c301409.diff: fix b.n.c #301409
* Fri Aug 17 2007 - dmueller@suse.de
- update buildrequires
* Sat Sep 23 2006 - aj@suse.de
- Fix build with python 2.5.
* Sun Jul 02 2006 - dkukawka@suse.de
- update to new upstream version 1.1:
  * added re-guess file attributes button
  * fix: disabled chunking when selecting files to include in a
  release which caused the creation of a release to fail with
  "unable to set file attributes" message.
* Tue Apr 25 2006 - dkukawka@suse.de
- updated to new final upstream version 1.0:
  * fixed bug when saving preferences when a project has not been
  selected yet
  * fixed bug: send email menu option not enabled
  * added ability to truncate Sourceforge responses - based on
  patch submission by Bharat Mediratta.  When retrieving data for
  specific SF pages, the response is chunked, as soon as the
  necessary information is found, no additional data is fetched.
  This can save significant bandwidth especially when releasing
  a large number of files.
  * added command line arg --noauto which disables the auto login
  regardless of the auto login preference setting and --auto
  command line
  * added pref: auto login - provides the same functionality as
  the --auto command line argument (if set to Enabled).
- added desktop file for KDE menu
* Tue Mar 28 2006 - dkukawka@suse.de
- updated to new upstream version 0.9.9 with following changes:
  * added  some additional processor mapping types.
  Thanks to Danny Kukawka for the patch.
  * incorporated patch from Paul Mangan that addressed the PyQt
  3.15 API change for the QFileDialog.getOpenFileName method)
  * PyQt 3.15 bug fix for cpuCombo.setCurrentItem
  * added cpu mappings for i586 and x86_64 (thanks to Stefan
  Gerlach for the patch)
- removed upstream gone patch:
  * releaseforge-fix-archtypes.diff
* Tue Feb 28 2006 - jmatejek@suse.cz
- updated to reflect python changes due to #149809
* Thu Feb 02 2006 - dkukawka@suse.de
- updated to new upstream version v0.9.8 with following fixes:
  * fixed incompatibility issue with recent changes made to SF's
  website in terms of retrieving packages (again).
  * package info is unavailable if you do not have atleast release
  tech permissions for a given project.
  * admins with release tech only permissions will not be able to
  create/modify packages which is consistent with SF
  functionality.
  * tweaked project fetching regex to optionally check for /my/
  string.
- added patch to fix problems with detect arch/processor types
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 18 2006 - dkukawka@suse.de
- initial package (v0.9.7)