File tkcvs.spec of Package tkcvs
# norootforbuild
%define _libdir %{_prefix}/lib
Name: tkcvs
Version: 9.3.3
Release: 0
Summary: Graphical User Interface for the CVS and Subversion Version Control Systems
Source: tkcvs_%{version}.tar.gz
Source1: tkcvs.desktop
Source2: tkcvs.png
Source99: %{name}-rpmlintrc
Patch1: tkcvs-mandir.patch
URL: https://tkcvs.sourceforge.io/
Group: Development/Tools/Version Control
License: GPL-2.0+
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: tcl tk
Requires: diffutils
%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 Tcl/Tk-based graphical interface to the CVS and Subversion configuration management systems.
It will also help with Git and RCS.
It shows the status of the files in the current working directory, and has tools for tagging, merging, checking in/out, and other user operations. TkDiff is included for browsing and merging your changes.
TkCVS also aids in browsing the repository.
For Subversion, the repository tree is browsed like an ordinary file tree. For Git, the branches and tags are listed.
For CVS, the CVSROOT/modules file is read. TkCVS extends CVS with a method to produce a "user friendly" listing of modules by using special comments in the CVSROOT/modules file.
%prep
%setup -q -n "%{name}_%{version}"
%patch1
%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.txt FAQ.txt LICENSE.txt
%{_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: