summaryrefslogtreecommitdiffstats
path: root/tdesvn.spec.in
blob: 01df37e9d2783a2990aea6728174306a989b597b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Summary:   A subversion client for the KDE with KIO integration.
Name:      tdesvn
Version:   @VERSION@
Release:   1%{?dist}
License:   LGPL
Vendor:    Rajko Albrecht <[email protected]>
Url:       http://tdesvn.alwins-world.de
Group:     Development/Tools
Source:    tdesvn-%version.tar.bz2
BuildRoot: %{_tmppath}/%{name}-root
Requires: /usr/bin/dot
BuildRequires: apr-devel
BuildRequires: apr-util-devel
BuildRequires: subversion-devel >= 1.3.0
BuildRequires: cmake >= 2.4
BuildRequires: sqlite-devel
BuildRequires: tdelibs-devel >= 3.4

%description
Kdesvn is a subversion client for KDE.
It may used as standalone application or plugin (KPart). Base functions are provided
via a KIO protocol, too.

%package kiosvn
Requires: tdesvn = %{version}
Group:    Development/Tools
Summary:  A kde-kio integration for subversion based on tdesvn

%description kiosvn
KIO integration (TDEIO::svn) based on tdesvn alternative protocol name.

%package devel
Group:    Development/Libraries
Summary:  Wrapper lib for subversion QT integration.
Requires: subversion-devel >= 1.2.0
Requires: tdesvn = %{version}

%description devel
Development files for tdesvn.

%prep
%setup -q
mkdir build
cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=`/opt/trinity` -DCMAKE_BUILD_TYPE=Release -DLIB_SUFFIX=`` -DCMAKE_INCLUDE_PATH=`/opt/trinity/include/tde` -DCMAKE_LIBRARY_PATH=`/opt/trinity/lib`

%build
cd build
# Setup for parallel builds
numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
if [ "$numprocs" = "0" ]; then
  numprocs=1
fi

make -j$numprocs

%install
cd build
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
gzip $RPM_BUILD_ROOT/%{_datadir}/man/man1/*

%clean
rm -rf $RPM_BUILD_ROOT/*
rm -rf $RPM_BUILD_DIR/tdesvn


%files
%defattr(-,root,root)
%{_bindir}/tdesvn
%{_bindir}/tdesvnaskpass
%{_libdir}/*/*part*
%{_datadir}/applications/*
%{_datadir}/apps/tdesvn/*
%{_datadir}/apps/tdesvnpart/*
%{_datadir}/apps/kconf_update/*
%{_datadir}/config.kcfg/*
%{_datadir}/doc/*
%{_datadir}/icons/*
%{_datadir}/locale/*
%{_libdir}/*/kded_tdesvnd.*
%{_datadir}/services/kded/tdesvnd.desktop
%{_datadir}/apps/konqueror/servicemenus/tdesvn*
%{_libdir}/*/kio_ksvn*
%{_datadir}/services/ksvn*.protocol
%{_datadir}/man/man1/*
%{_libdir}/libsvnqt*.so*
%doc AUTHORS ChangeLog GPL.txt TODO COPYING COPYING.OpenSSL

%files kiosvn
%defattr(-,root,root)
%{_datadir}/services/svn*.protocol

%files devel
%defattr(-,root,root)
%{_includedir}/svnqt/*

%changelog