File svn2git.spec of Package svn2git

#
# spec file for package svn2git
#
# Copyright (c) 2014 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:           svn2git
Version:        1.0.10
Release:        0
Summary:        Importer for one time conversion from SVN to Git
License:        GPL-3.0
Group:          Development/Tools/Version Control
Url:            http://github.com/svn-all-fast-export/svn2git
Source0:        https://github.com/svn-all-fast-export/%{name}/archive/%{version}.tar.gz
%if 0%{?suse_version} > 1320
%define qmake_bin qmake-qt5
BuildRequires:  pkgconfig(Qt5Core)
%else
BuildRequires:  libqt4-devel
%define qmake_bin qmake
%endif
BuildRequires:  subversion-devel
Requires:       git
Requires:       subversion
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Tool to convert an SVN repository to Git based on a custom written ruleset, in
order to properly migrate all branches and tags.

%prep
%setup -q

%build
%{qmake_bin} -o Makefile fast-export2.pro PREFIX=%{_prefix} CONFIG+=RELEASE QMAKE_CXXFLAGS="%{optflags}" QMAKE_CFLAGS="%{optflags}"
make %{?_smp_mflags}

%install
install -Dm755 svn-all-fast-export %{buildroot}/%{_bindir}/svn-all-fast-export
ln -s %{_bindir}/svn-all-fast-export %{buildroot}/%{_bindir}/%{name}

%files
%defattr(-,root,root)
%doc samples
%{_bindir}/svn-all-fast-export
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by