]> git.pld-linux.org Git - packages/rpmconf.git/blame - rpmconf.spec
up to 1.1.10
[packages/rpmconf.git] / rpmconf.spec
CommitLineData
5b086b4c 1Summary: Tool to handle rpmnew and rpmsave files
2Summary(pl.UTF-8): Narzędzie do obsługi plików rpmnew oraz rpmsave
3Name: rpmconf
940acea4 4Version: 1.1.10
13f32003 5Release: 1
5b086b4c 6License: GPL v3+
c49ab280 7Group: Applications/System
c7b521f6 8Source0: https://github.com/xsuchy/rpmconf/archive/%{name}-%{version}-1/rpmconf-%{version}.tar.gz
940acea4 9# Source0-md5: dcb8431688726c15ae372f274e2b68a4
c7b521f6 10URL: https://github.com/xsuchy/rpmconf
9bfea4e8
ER
11BuildRequires: docbook-dtd31-sgml
12BuildRequires: docbook-utils
aebce514 13BuildRequires: python3
1bd3aeb7 14BuildRequires: python3-modules
c7b521f6 15BuildRequires: python3-rpm
f6158f0f 16BuildRequires: rpmbuild(macros) >= 1.714
c7b521f6
JR
17BuildRequires: sphinx-pdg
18%if %{with tests}
19BuildRequires: python3-pylint
20BuildRequires: python3-six
21%endif
22Requires: python3-rpm
aa0a4c85 23Requires: python3-rpmconf = %{version}-%{release}
eefb2ed2 24Requires: which
c7b521f6
JR
25Suggests: diffuse
26Suggests: diffutils
27Suggests: kdiff3
28Suggests: meld
29Suggests: vim-X11
30Suggests: vim-enhanced
31# sdiff
32Suggests: diffutils
5b086b4c 33BuildArch: noarch
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
c7b521f6
JR
37This tool search for .rpmnew, .rpmsave and .rpmorig files and ask you
38what to do with them: Keep current version, place back old version,
39watch the diff or merge.
40
41%package -n python3-rpmconf
42Summary: Python interface for %{name}
f8019d89 43Requires: pydoc3
c7b521f6
JR
44
45%description -n python3-rpmconf
46Python interface for %{name}. Mostly useful for developers only.
47
48%package -n python3-rpmconf-doc
49Summary: Documentation of python interface for %{name}
50
51%description -n python3-rpmconf-doc
52Documentation generated from code of python3-rpmconf.
5b086b4c 53
54%prep
c7b521f6
JR
55%setup -q -n %{name}-%{name}-%{version}-1
56
57%{__sed} -i -e 's/__version__ = .*/__version__ = "%{version}"/' rpmconf/rpmconf.py
58%{__sed} -i -e 's/version = .*,/version = "%{version}",/' setup.py
35d6e748 59%{__sed} -i -e 's@/usr/bin/ls@/bin/ls@' rpmconf/rpmconf.py
5b086b4c 60
9bfea4e8 61%build
c7b521f6
JR
62%py3_build
63
9bfea4e8 64docbook2man rpmconf.sgml
c7b521f6 65%{__make} -C docs html man
9bfea4e8 66
5b086b4c 67%install
68rm -rf $RPM_BUILD_ROOT
c7b521f6 69install -d $RPM_BUILD_ROOT{%{_mandir}/man{3,8},%{_datadir}/rpmconf}
c49ab280 70
c7b521f6
JR
71%py3_install \
72 --install-scripts %{_sbindir} \
73 --root $RPM_BUILD_ROOT
74
75cp -p rpmconf.8 $RPM_BUILD_ROOT%{_mandir}/man8/rpmconf.8
76cp -p docs/build/man/rpmconf.3 $RPM_BUILD_ROOT%{_mandir}/man3/rpmconf.3
5b086b4c 77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%files
82%defattr(644,root,root,755)
c7b521f6
JR
83%doc README.md
84%attr(755,root,root) %{_sbindir}/rpmconf
85%dir %{_datadir}/rpmconf
86%{_mandir}/man8/rpmconf.8*
87
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*
93
94%files -n python3-rpmconf-doc
95%defattr(644,root,root,755)
96%doc docs/build/html
This page took 0.161079 seconds and 4 git commands to generate.