%bcond_with docs Name: rpmconf Summary: Tool to handle rpmnew and rpmsave files License: GPLv3 Version: 1.0.19 Release: 9%{?dist} URL: http://wiki.github.com/xsuchy/rpmconf # source is created by: # git clone https://github.com/xsuchy/rpmconf.git # cd rpmconf; tito build --tgz Source0: %{name}-%{version}.tar.gz BuildArch: noarch %if %{with docs} BuildRequires: docbook-utils BuildRequires: docbook-dtd31-sgml BuildRequires: python3-sphinx %endif BuildRequires: python3-devel Requires: %{name}-base Requires: python3-rpmconf Requires: rpm-python3 BuildRequires: rpm-python3 # mergetools Suggests: diffuse Suggests: kdiff3 Suggests: meld Suggests: vim-X11 Suggests: vim-enhanced %description This tool search for .rpmnew, .rpmsave and .rpmorig files and ask you what to do with them: Keep current version, place back old version, watch the diff or merge. %package -n python3-rpmconf Summary: Python interface for %{name} BuildArch: noarch %description -n python3-rpmconf Python interface for %{name}. Mostly useful for developers only. %if %{with docs} %package -n python3-rpmconf-doc Summary: Documentation of python interface for %{name} BuildArch: noarch %description -n python3-rpmconf-doc Documentation generated from code of python3-rpmconf. %endif %package base Summary: Filesystem for %{name} BuildArch: noarch %description base Directory hierarchy for installation scripts, which are handled by rpmconf. %prep %setup -q %build %{__python3} setup.py build %if %{with docs} docbook2man rpmconf.sgml make -C docs html man %endif %install %{__python3} setup.py install --skip-build \ --install-scripts %{_sbindir} \ --root %{buildroot} %if %{with docs} install -D -m 644 rpmconf.8 %{buildroot}%{_mandir}/man8/rpmconf.8 install -D -m 644 docs/build/man/rpmconf.3 %{buildroot}%{_mandir}/man3/rpmconf.3 %endif mkdir -p %{buildroot}%{_datadir}/rpmconf/ %files %license LICENSE %{_sbindir}/rpmconf %if %{with docs} %{_mandir}/man8/rpmconf.8* %endif %files -n python3-rpmconf %license LICENSE %{python3_sitelib}/rpmconf/ %{python3_sitelib}/rpmconf-*.egg-info %if %{with docs} %{_mandir}/man3/rpmconf.3* %endif %if %{with docs} %files -n python3-rpmconf-doc %license LICENSE %doc docs/build/html/ %endif %files base %dir %{_datadir}/rpmconf %changelog * Fri Sep 13 2019 Sandro Bonazzola - make docs optional * Fri Aug 16 2019 Miro Hrončok - 1.0.19-8 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.0.19-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.0.19-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.0.19-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jun 18 2018 Miro Hrončok - 1.0.19-4 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 1.0.19-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.0.19-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Apr 05 2017 Miroslav Suchý 1.0.19-1 - implement --test - 1350249 - correctly pass /dev/null to difflib * Fri Jun 24 2016 Miroslav Suchý 1.0.18-1 - add pylintrc * Fri Jun 24 2016 Miroslav Suchý 1.0.17-1 - set loglevel only for rpmconf logger - standard import "import errno" comes before "from rpmconf import rpmconf" (wrong-import-order) - fix a typo in the /usr/bin/ls arguments * Tue Dec 01 2015 Miroslav Suchý 1.0.16-1 - temporary workaround for BZ 1287055 - 1287034 - local variable 'fromdate' referenced before assignment * Fri Nov 27 2015 Miroslav Suchý 1.0.15-1 - 1277025 - handle broken symlinks * Tue Nov 24 2015 Miroslav Suchý 1.0.14-1 - we use utf8 - call python3 directly - 1258464 - improve error message - 1282029 - check for root privileges - 1283698 - clarify man page * Fri Nov 13 2015 Miroslav Suchý 1.0.13-1 - 1278134 - do TB when somebody remove file under our hand * Tue Jun 30 2015 Miroslav Suchý 1.0.12-1 - disable pylint warning * Tue Jun 30 2015 Miroslav Suchý 1.0.11-1 - disable pylint warning * Tue Jun 30 2015 Miroslav Suchý 1.0.10-1 - 1236722 - other method for stdin flush and handle Ctrl+C correctly * Mon Jun 01 2015 Miroslav Suchý 1.0.9-1 - pylint: let the logger expand params - use soft deps * Mon Jun 01 2015 Miroslav Suchý 1.0.8-1 - 1226591 - do not flush stdin, when it is not TTY - BR python3-six - minor fixes - use RPM Python API to get package name of file * Mon Jan 12 2015 Miroslav Suchý 1.0.7-1 - correctly reference tar.gz - add / before usr/bin - remove superfluous changelog line * Fri Jan 09 2015 Miroslav Suchý 1.0.6-1 - let tito bump up version in docs/source/conf.py * Thu Jan 08 2015 Miroslav Suchý 1.0.5-1 - add -doc subpackage - mark LICENSE as %%license - Split to python class and CLI - use rpm python api to get version * Sun Nov 23 2014 Miroslav Suchý 1.0.4-1 - add BR rpm-python3 * Sun Nov 23 2014 Miroslav Suchý 1.0.3-1 - Allow specification of a custom merge type via an environment variable, $MERGE - do not remove files on those merge tools, which does not return correct exit code - make pylint run mandatory - skip /var/lib/mock when --clean - use rpm bindings to find configfiles - use filecmp instead of subprocessed diff * Tue Nov 04 2014 Miroslav Suchý 1.0.2-1 - require rpm-python3 * Wed Oct 29 2014 Miroslav Suchý 1.0.1-1 - migrate to python3 - handle symlinks correctly * Thu Oct 02 2014 Miroslav Suchý 0.3.7-1 - when there is no error return 0 * Sun Jan 12 2014 Miroslav Suchý 0.3.6-1 - add non-interactive --diff mode - remove some white space in NAME section - remove garbage from man page - rpmconf-base should not require rpmconf * Thu Jul 25 2013 Miroslav Suchý 0.3.5-1 - add ability to configure packages - replace old macro RPM_BUILD_ROOT - create subpackage -base which will own /usr/share/rpmconf - document ability to handle app configuration * Mon Jul 15 2013 Miroslav Suchý - When overwriting the current file with an .rpmnew/.rpmsave file, check that the copy worked before removing the source file. - Skip deleting files if user input could not be read. - fix few spelling typos * Fri Jul 08 2011 Miroslav Suchý 0.3.3-1 - Revert "change download location to github magic url" * Fri Jul 08 2011 Miroslav Suchý 0.3.2-1 - change download location to github magic url * Fri Jul 08 2011 Miroslav Suchý 0.3.1-1 - bump up version - add warning about --debug position sensitivity - scan /usr during --clean - introduce new option -Z to print SELinux context of old and new file - do not dereference links - allow another option : skip the current config file and go to the next one - show config file dates - we do not need perl - --clean - Find and delete orphaned .rpmnew and .rpmsave files. - fix spelling error * Mon Feb 22 2010 Miroslav Suchy 0.2.2-1 - 567318 - fix syntax error - add diffuse as merge frontend * Thu Jan 7 2010 Miroslav Suchy 0.2.1-1 - implement merging of files using vimdiff, gvimdiff, meld, and kdiff3 - added command line option --version - added command line option --debug - fix build requires on Mandriva * Mon Aug 31 2009 Miroslav Suchy 0.1.8-1 - fix copy and past typo * Fri Aug 28 2009 Miroslav Suchy 0.1.7-1 - add support for handling .rpmorig - 513794 - localisation problem - add support for suspending script * Fri Jul 17 2009 Miroslav Suchy 0.1.6-1 - addressed fedora package review notes (#7) * Thu Jul 16 2009 Miroslav Suchy 0.1.5-1 - addressed fedora package review notes * Thu Jul 16 2009 Miroslav Suchy 0.1.3-1 - initial version