xxdiff/xxdiff.spec

89 lines
3.1 KiB
RPMSpec
Raw Permalink Normal View History

%define gittag %(echo %version | cut -d. -f4)
Name: xxdiff
Version: 5.1.20230111git.604300e
Release: 1mamba
Summary: Graphical File And Directories Comparator And Merge Tool
Group: Graphical Desktop/Applications/Utilities
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://furius.ca/xxdiff/
Source: https://github.com/blais/xxdiff.git/master@%{gittag}/xxdiff-%{version}.tar.bz2
#Source: https://sourceforge.net/projects/xxdiff/files/xxdiff/%{version}/xxdiff-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libglvnd-devel
BuildRequires: libpython3-devel
BuildRequires: libstdc++6-devel
BuildRequires: qt6-qtbase-devel
## AUTOBUILDREQ-END
%description
xxdiff is a Graphical File And Directories Comparator And Merge Tool.
Features:
* Comparing two files, three files, or two directories (shallow and recursive);
* Horizontal diffs highlighting;
* Files can be merged interactively and resulting output visualized and saved;
* Has features to assist in performing merge reviews/policing;
* Can unmerge CVS conflicts in automatically merged file and display them as two files, to help resolve conflicts;
* Uses external diff program to compute differences: works with GNU diff, SGI diff and ClearCase's cleardiff, and any other diff whose output is similar to those;
* Fully customizable with a resource file;
* Look-and-feel similar to Rudy Wortel's/SGI xdiff, it is desktop agnostic (i.e. will work equall well with KDE or Gnome);
* Features and output that ease integration with scripts.
%debug_package
%prep
%setup -q
%build
CFLAGS="%{optflags}" %{__python3} setup.py build
cd src
make -f Makefile.bootstrap QMAKE=qmake-qt6
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python3} setup.py install \
--root=%{buildroot} \
--install-headers=%{python3_inc} \
--install-lib=%{python3_sitearch}
install -D -m 755 bin/xxdiff %{buildroot}%{_bindir}/xxdiff
install -D -m 644 src/xxdiff.1 %{buildroot}%{_mandir}/man1/xxdiff.1
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/svn-foreign
%{_bindir}/termdiff
%{_bindir}/xxdiff
%{_bindir}/xx-*
%dir %{python3_sitearch}/xxdiff_scripts-*-py*.egg-info
%{python3_sitearch}/xxdiff_scripts-*-py*.egg-info/*
%dir %{python3_sitearch}/xxdiff
%{python3_sitearch}/xxdiff/*
%{_mandir}/man1/xxdiff.1*
%doc COPYING
%changelog
* Mon Mar 06 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 5.1.20230111git.604300e-1mamba
- update to 5.1.20230111git.604300e
* Mon Mar 22 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.1-1mamba
- update to 4.0.1
* Thu Aug 15 2013 Automatic Build System <autodist@mambasoft.it> 4.0-1mamba
- automatic update by autodist
* Thu Jul 11 2013 Automatic Build System <autodist@mambasoft.it> 3.2-2mamba
- automatic rebuild by autodist
* Fri Apr 17 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2-1mamba
- package created by autospec