1 Summary: Tool to handle rpmnew and rpmsave files
2 Summary(pl.UTF-8): Narzędzie do obsługi plików rpmnew oraz rpmsave
7 Group: Applications/System
8 Source0: https://github.com/xsuchy/rpmconf/archive/%{name}-%{version}-1/rpmconf-%{version}.tar.gz
9 # Source0-md5: dcb8431688726c15ae372f274e2b68a4
10 URL: https://github.com/xsuchy/rpmconf
11 BuildRequires: docbook-dtd31-sgml
12 BuildRequires: docbook-utils
13 BuildRequires: python3
14 BuildRequires: python3-modules
15 BuildRequires: python3-rpm
16 BuildRequires: rpmbuild(macros) >= 1.714
17 BuildRequires: sphinx-pdg
19 BuildRequires: python3-pylint
20 BuildRequires: python3-six
23 Requires: python3-rpmconf = %{version}-%{release}
30 Suggests: vim-enhanced
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 This tool search for .rpmnew, .rpmsave and .rpmorig files and ask you
38 what to do with them: Keep current version, place back old version,
39 watch the diff or merge.
41 %package -n python3-rpmconf
42 Summary: Python interface for %{name}
45 %description -n python3-rpmconf
46 Python interface for %{name}. Mostly useful for developers only.
48 %package -n python3-rpmconf-doc
49 Summary: Documentation of python interface for %{name}
51 %description -n python3-rpmconf-doc
52 Documentation generated from code of python3-rpmconf.
55 %setup -q -n %{name}-%{name}-%{version}-1
57 %{__sed} -i -e 's/__version__ = .*/__version__ = "%{version}"/' rpmconf/rpmconf.py
58 %{__sed} -i -e 's/version = .*,/version = "%{version}",/' setup.py
59 %{__sed} -i -e 's@/usr/bin/ls@/bin/ls@' rpmconf/rpmconf.py
64 docbook2man rpmconf.sgml
65 %{__make} -C docs html man
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT{%{_mandir}/man{3,8},%{_datadir}/rpmconf}
72 --install-scripts %{_sbindir} \
73 --root $RPM_BUILD_ROOT
75 cp -p rpmconf.8 $RPM_BUILD_ROOT%{_mandir}/man8/rpmconf.8
76 cp -p docs/build/man/rpmconf.3 $RPM_BUILD_ROOT%{_mandir}/man3/rpmconf.3
79 rm -rf $RPM_BUILD_ROOT
82 %defattr(644,root,root,755)
84 %attr(755,root,root) %{_sbindir}/rpmconf
85 %dir %{_datadir}/rpmconf
86 %{_mandir}/man8/rpmconf.8*
88 %files -n python3-rpmconf
89 %defattr(644,root,root,755)
90 %{py3_sitescriptdir}/rpmconf
91 %{py3_sitescriptdir}/rpmconf-*.egg-info
92 %{_mandir}/man3/rpmconf.3*
94 %files -n python3-rpmconf-doc
95 %defattr(644,root,root,755)