File rapidsvn.spec of Package RapidSVN
#
# spec file for package rapidsvn
#
# Copyright (c) 2013 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: rapidsvn
Version: 0.12.1
Release: 0
Url: http://www.rapidsvn.org
Source: http://rapidsvn.org/download/release/%{version}/%{name}-%{version}.tar.gz
Source1: rapidsvn.desktop
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#For some reason linking with -lldap fails on older versions
%if 0%{?suse_version} < 1100
BuildRequires: openldap2-devel
%endif
BuildRequires: gcc-c++
BuildRequires: libapr-util1-devel
BuildRequires: libapr1-devel
BuildRequires: neon-devel
BuildRequires: python
BuildRequires: subversion-devel < 1.9.0
BuildRequires: update-desktop-files
BuildRequires: xmlto
%if 0%{?suse_version} > 1130
BuildRequires: wxWidgets-devel
%else
BuildRequires: wxGTK-devel
%endif
Summary: Multi-platform GUI Front-end for the Subversion Revision System
License: GPL-2.0+ or LGPL-2.1+
Group: Development/Tools/Version Control
%description
RapidSVN is a cross-platform GUI front-end for the Subversion revision system written in C++ using the wxWidgets framework. This project also includes a Subversion client C++ API.
%package devel
Requires: %{name} = %{version}
Summary: Development files for RapidSVN
Group: Development/Libraries/C and C++
%description devel
This package contains the development files (mainly C header files) for RapidSVN.
%prep
%setup -q
%build
%configure \
--disable-static \
--with-apr-config=/usr/bin/apr-1-config \
--with-apu-config=/usr/bin/apu-1-config \
--with-manpage=yes
%__make %{?jobs:-j%jobs}
cd %{_builddir}/%{name}-%{version}/doc/manpage
%__make manpage
%install
%makeinstall
%__install -Dm 0644 doc/manpage/rapidsvn.1 %{buildroot}%{_mandir}/man1/rapidsvn.1
%__rm %{buildroot}%{_libdir}/libsvncpp.la
%__install -Dm 0644 src/res/bitmaps/rapidsvn_48x48.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
%__install -Dm 0644 %{S:1} %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file %{name}
%find_lang rapidsvn
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
%files -f rapidsvn.lang
%defattr(-,root,root)
%doc AUTHORS CHANGES LICENSE.txt README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm
%{_libdir}/libsvncpp.so.*
%{_mandir}/man1/rapidsvn.1*
%files devel
%defattr(-,root,root)
%{_includedir}/svncpp
%{_libdir}/libsvncpp.so
%changelog