diff options
author | CoprDistGit <infra@openeuler.org> | 2025-02-14 07:20:49 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-02-14 07:20:49 +0000 |
commit | 4b98cc2d9657bcd4d4e10a77307d3eb83614ade2 (patch) | |
tree | d96ccb575de2dbcdd811ba94638d68d5d0418897 | |
parent | 5a746e1dfb584a369ae09578a283eb379d52c36d (diff) |
automatic import of titoopeneuler22.03_LTS_SP4
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | sources | 1 | ||||
-rw-r--r-- | tito.spec | 92 |
3 files changed, 94 insertions, 0 deletions
@@ -0,0 +1 @@ +/tito-0.6.21.tar.gz @@ -0,0 +1 @@ +44d5a5ba440d7e0b9c527bfc7d5195c0 tito-0.6.21.tar.gz diff --git a/tito.spec b/tito.spec new file mode 100644 index 0000000..0ac8fd4 --- /dev/null +++ b/tito.spec @@ -0,0 +1,92 @@ +%global use_python3 1 +%global use_python2 0 +%global ourpythonbin %{__python3} +%global our_sitelib %{python3_sitelib} +%{!?our_sitelib: %define our_sitelib %(%{ourpythonbin} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: tito +Version: 0.6.21 +Release: 1%{?dist} +Summary: A tool for managing rpm based git projects + +License: GPLv2 +URL: https://github.com/rpm-software-management/tito +# Sources can be obtained by +# git clone https://github.com/rpm-software-management/tito +# cd tito +# tito build --tgz +Source0: %{name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +Requires: python3-setuptools +#Requires: python3-bugzilla +Requires: python3-blessed +Requires: rpm-python3 + +BuildRequires: asciidoc +BuildRequires: docbook-style-xsl +BuildRequires: libxslt +BuildRequires: rpmdevtools +BuildRequires: rpm-build +BuildRequires: tar +BuildRequires: which +BuildRequires: git + +Requires: rpm-build +Requires: rpmlint +Requires: rpmdevtools +# Cheetah used not to exist for Python 3, but it's what Mead uses. We +# install it and call via the command line instead of importing the +# previously potentially incompatible code, as we have not yet got +# around to changing this +Requires: /usr/bin/cheetah + +%description +Tito is a tool for managing tarballs, rpms, and builds for projects using +git. + +%prep +%setup -q -n tito-%{version} + +%build +%{ourpythonbin} setup.py build +# convert manages +a2x --no-xmllint -d manpage -f manpage titorc.5.asciidoc +a2x --no-xmllint -d manpage -f manpage tito.8.asciidoc +a2x --no-xmllint -d manpage -f manpage tito.props.5.asciidoc +a2x --no-xmllint -d manpage -f manpage releasers.conf.5.asciidoc + +%install +rm -rf $RPM_BUILD_ROOT +%{ourpythonbin} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +rm -f $RPM_BUILD_ROOT%{our_sitelib}/*egg-info/requires.txt +# manpages +%{__mkdir_p} %{buildroot}%{_mandir}/man5 +%{__mkdir_p} %{buildroot}%{_mandir}/man8 +cp -a titorc.5 tito.props.5 releasers.conf.5 %{buildroot}/%{_mandir}/man5/ +cp -a tito.8 %{buildroot}/%{_mandir}/man8/ +# bash completion facilities +install -Dp -m 0644 share/tito_completion.sh %{buildroot}%{_datadir}/bash-completion/completions/tito + + +%files +%doc AUTHORS COPYING +%doc doc/* +%doc %{_mandir}/man5/titorc.5* +%doc %{_mandir}/man5/tito.props.5* +%doc %{_mandir}/man5/releasers.conf.5* +%doc %{_mandir}/man8/tito.8* +%{_bindir}/tito +%{_bindir}/generate-patches.pl +%{_datadir}/bash-completion/completions/tito +%dir %{our_sitelib}/tito +%{our_sitelib}/tito/* +%{our_sitelib}/tito-*.egg-info + + +%changelog +* Mon Aug 15 2022 hanjinpeng <hanjinpeng@kylinos.cn> - 0.6.21-1 +- Package init |