File tkcvs.spec of Package tkcvs
# norootforbuild
%define _libdir %{_prefix}/lib
Name: tkcvs
Version: 8.2.2
%define pkg_version 8_2_2
Release: 0
Summary: Graphical User Interface for the CVS and Subversion Version Control Systems
# http://www.twobarleycorns.net/tkcvs_%{pkg_version}.tar.gz
Source: tkcvs_%{pkg_version}.tar.bz2
Source1: tkcvs.desktop
Source2: tkcvs.png
Source99: %{name}-rpmlintrc
Patch1: tkcvs-mandir.patch
Patch2: tkcvs-fix_shebang.patch
URL: http://www.twobarleycorns.net/tkcvs.html
Group: Development/Tools/Version Control
License: GNU General Public License version 2 or later (GPL v2 or later)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: tcl tk
Requires: /usr/bin/diff
%if 0%{?suse_version} >= 1000
Recommends: cvs
Recommends: subversion
%else
Requires: cvs
Requires: subversion
%endif
BuildRequires: tcl
BuildRequires: update-desktop-files
BuildArch: noarch
%description
TkCVS is a cross-platform, Tcl/Tk-based GUI for the CVS and Subversion
configuration management systems. It displays the status of the files in the
current working directory, and provides buttons and menus to execute CVS,
Subversion, or RCS commands on the selected files. The Log Browser displays a
branch diagram of the revision history. The Module Browser extends CVS with
facilities for a user-friendly listing of modules in the repository. TkDiff is
included for browsing and merging your changes.
%prep
%setup -q -n "%{name}_%{pkg_version}"
%patch1
%patch2
%build
%install
./doinstall.tcl -nox "%{buildroot}%{_prefix}"
%__install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/tkcvs.desktop"
%__install -D -m0644 "%{SOURCE2}" "%{buildroot}%{_datadir}/pixmaps/tkcvs.png"
%suse_update_desktop_file -r "%{name}" Development RevisionControl
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc CHANGELOG COPYING FAQ
%{_bindir}/tkcvs
%{_bindir}/tkdiff
%{_libdir}/tkcvs
%doc %{_mandir}/man1/tkcvs.1%{ext_man}
%{_datadir}/applications/tkcvs.desktop
%{_datadir}/pixmaps/tkcvs.png
%changelog
# vim: set sw=3 ts=3 noet:
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: