File qgit.spec of Package qgit

#
# spec file for package qgit
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           qgit
Version:        2.4
Release:        0.<RELEASE2>
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

%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.



%prep
%setup -q -n redivivus

%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
openSUSE Build Service is sponsored by