File qgit.spec of Package qgit

#
# spec file for package qgit (Version 2.2)
#
# Copyright (c) 2008 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/
#



Name:           qgit
Version:        2.2
Release:        1
License:        GPL v2 or later
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Graphical Git Repository Viewer
Group:          Development/Tools/Version Control
Url:            http://sourceforge.net/projects/qgit
%define tar_version %version
Source:         qgit-%tar_version.tar.bz2
Source1:        qgit4.desktop
AutoReqProv:    on
BuildRequires:  libqt4-devel update-desktop-files
Requires:       git-core >= 1.4.0
Patch:          %name.diff

%description
QGit is a git GUI viewer built on Qt/C++.

With qgit you will be able to browse revisions history, view patch
content and changed files, graphically following different development
branches.

Features

View revisions, diffs, files history, files annotation, archive tree.

Commit changes visually cherry picking modified files.

Apply or format patch series from selected commits, drag and drop
commits between two instances of qgit.

Associate commands sequences, scripts and anything else executable to a
custom action. Actions can be run from menu and corresponding output is
grabbed by a terminal window.

qgit implements a GUI for the most common StGIT commands like push/pop
and apply/format patches. You can also create new patches or refresh
current top one using the same semantics of git commit,  i.e. cherry
picking single modified files.



Authors:
--------
    Marco Costalba

%prep
%setup -q -n qgit
%patch

%build
qmake
make %{?jobs:-j %jobs} CXXFLAGS="$RPM_OPT_FLAGS"

%install
sed -i -e '/-strip/d' src/Makefile.Release
make INSTALL_ROOT=$RPM_BUILD_ROOT install
install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT%_datadir/applications/qgit.desktop
%suse_update_desktop_file $RPM_BUILD_ROOT%_datadir/applications/qgit.desktop

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%_bindir/qgit
%_datadir/applications/*.desktop

%changelog
* Fri Jul 18 2008 dmueller@suse.de
- update to 2.2:
  * no changelog available
* Sat May 17 2008 schwab@suse.de
- Use RPM_OPT_FLAGS.
- Don't strip binaries.
* Mon Mar 10 2008 dmueller@suse.de
- udpate to 2.1:
  * Lots of fixes from 2.0, see detailed change log at
  http://git.kernel.org/?p=qgit/qgit4.git;a=shortlog
  * Speed improvements
* Tue Oct 09 2007 dmueller@suse.de
- update to 2.0:
  * Qt4 port, less security vulnerabilities
* Tue Oct 09 2007 dmueller@suse.de
- update to 1.5.7
* Sun Aug 12 2007 dmueller@suse.de
- update to 1.5.6
* Thu May 17 2007 dmueller@suse.de
- Update to 1.5.5
* Thu Jan 18 2007 bwalle@suse.de
- Update to 1.5.4
* Mon Nov 13 2006 mhopf@suse.de
- Update to 1.5.3
* Thu Jul 20 2006 mhopf@suse.de
- Initial commit (version 1.4)
openSUSE Build Service is sponsored by