]>
Commit | Line | Data |
---|---|---|
d5bad62d MWP |
1 | |
2 | %define _srcrel 0 | |
3 | ||
4 | Summary: A Qt-based tool for managing CVS | |
5 | Summary(pl.UTF-8): Narzędzie do zarządzania CVS-em oparte na Qt | |
6 | Name: crossvc | |
7 | Version: 1.5.2 | |
8 | Release: 1 | |
9 | # GPL v.2 if linked with GPLed qt (as in PLD), custom otherwise (see LICENSE) | |
10 | License: GPL v.2 | |
11 | Group: Development/Version Control | |
12 | Source0: http://crossvc.com/download/%{name}-%{version}-%{_srcrel}-generic-src.tgz | |
13 | # Source0-md5: 4fb196e4e5fb5b6c5d901601869308b2 | |
14 | Source1: LinCVS.desktop | |
15 | URL: http://www.crossvc.org/ | |
16 | BuildRequires: libtool | |
17 | BuildRequires: qmake | |
18 | BuildRequires: qt-devel >= 6:3.3 | |
19 | BuildRequires: sed >= 4.0 | |
20 | Requires: cvs >= 1.9 | |
21 | Obsoletes: lincvs | |
22 | Conflicts: lincvs | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | CrossVC\LinCVS acts as a reliable (!) graphical frontend for the CVS-client | |
27 | supporting both CVS-versions 1.9 and 1.10, perhaps even older ones. It | |
28 | allows to check out a module from and import of a module to a | |
29 | repository, to update or retrieve the status of a working directory or | |
30 | single files and common operations like add, remove and commit, diff | |
31 | against the repository or view of the log messages in list form. In | |
32 | contrast to other programs this one is REALLY easy to use ;-). | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | CrossVC\LinCVS działa jako niezawodny(!) graficzny frontend dla klienta CVS. | |
36 | Pozwala na import modułów z i do repozytorium oraz wszelkiego typu | |
37 | inne zwykłe operacje w CVS-ie. W przeciwieństwie do wielu innych | |
38 | programów jest NAPRAWDĘ prosty w użyciu ;-) | |
39 | ||
40 | %prep | |
41 | %setup -q -n CrossVC | |
42 | %{__sed} -i 's,`dirname.*,%{_datadir}/%{name},' CrossVC/AppRun | |
43 | ||
44 | %build | |
45 | export QTDIR=%{_prefix} | |
46 | export QMAKESPEC="%{_datadir}/qt/mkspecs/linux-g++/" | |
47 | export PATH=$QTDIR/bin:$PATH | |
48 | qmake -o Makefile lincvs.pro | |
49 | %{__make} | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir}} | |
54 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{Messages,Tools} | |
55 | ||
56 | install CrossVC/AppRun $RPM_BUILD_ROOT%{_bindir}/crossvc | |
57 | install CrossVC/crossvc.bin $RPM_BUILD_ROOT%{_datadir}/%{name} | |
58 | install ts/*.qm $RPM_BUILD_ROOT%{_datadir}/%{name}/Messages | |
59 | install CrossVC/Tools/rshwrapper $RPM_BUILD_ROOT%{_datadir}/%{name}/Tools | |
60 | install CrossVC/Tools/ssh-askpass.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/Tools | |
61 | install tools/*.sh $RPM_BUILD_ROOT%{_datadir}/%{name}/Tools | |
62 | install CrossVC/AppIcon.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/crossvc.xpm | |
63 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
64 | ||
65 | %clean | |
66 | rm -fr $RPM_BUILD_ROOT | |
67 | ||
68 | %files -f %{name}.lang | |
69 | %defattr(644,root,root,755) | |
70 | %doc AUTHORS ChangeLog NEWS LICENSE doc/{README,SSH-HOWTO.txt,PROXY-HOWTO.txt,FAQ.txt,FAM-HOWTO.txt,INFO.txt} | |
71 | %lang(de) %doc doc/translations/de/LIESMICH.txt | |
72 | %lang(it) %doc doc/translations/it/LEGGIMI.txt | |
73 | %lang(ru) %doc doc/translations/ru/{SSH-HOWTO.koi8.txt,README.koi8.txt,PROXY-HOWTO.koi8r.txt,FAQ.koi8r.txt,FAM-HOWTO.koi8r.txt} | |
74 | %attr(755,root,root) %{_bindir}/* | |
75 | %dir %{_datadir}/%{name} | |
76 | %dir %{_datadir}/%{name}/Messages | |
77 | %attr(755,root,root) %{_datadir}/%{name}/%{name}.bin | |
78 | %attr(755,root,root) %{_datadir}/%{name}/Tools | |
79 | %lang(ca) %{_datadir}/%{name}/Messages/ca_ES.qm | |
80 | %lang(de) %{_datadir}/%{name}/Messages/de.qm | |
81 | %lang(es) %{_datadir}/%{name}/Messages/es.qm | |
82 | %lang(fr) %{_datadir}/%{name}/Messages/fr.qm | |
83 | %lang(it) %{_datadir}/%{name}/Messages/it.qm | |
84 | %lang(ja) %{_datadir}/%{name}/Messages/ja.qm | |
85 | %lang(ru) %{_datadir}/%{name}/Messages/ru.qm | |
86 | %lang(vi) %{_datadir}/%{name}/Messages/vi.qm | |
87 | %{_desktopdir}/*.desktop | |
88 | %{_pixmapsdir}/*.xpm |