mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 12:12:47 +00:00
spec file includes titorc(5) and tito(8)
This commit is contained in:
parent
9dc2b38219
commit
34d8cb1a35
1 changed files with 12 additions and 0 deletions
12
tito.spec
12
tito.spec
|
@ -14,6 +14,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
|
BuildRequires: asciidoc
|
||||||
|
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
Requires: rpm-build
|
Requires: rpm-build
|
||||||
|
|
||||||
|
@ -27,12 +29,20 @@ git.
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python} setup.py build
|
%{__python} setup.py build
|
||||||
|
# convert manages
|
||||||
|
a2x -d manpage -f manpage titorc.5.asciidoc
|
||||||
|
a2x -d manpage -f manpage tito.8.asciidoc
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||||
rm -f $RPM_BUILD_ROOT%{python_sitelib}/*egg-info/requires.txt
|
rm -f $RPM_BUILD_ROOT%{python_sitelib}/*egg-info/requires.txt
|
||||||
|
# manpages
|
||||||
|
%{__mkdir_p} %{buildroot}%{_mandir}/man5
|
||||||
|
%{__mkdir_p} %{buildroot}%{_mandir}/man8
|
||||||
|
%{__gzip} -c titorc.5 > %{buildroot}/%{_mandir}/man5/titorc.5.gz
|
||||||
|
%{__gzip} -c tito.8 > %{buildroot}/%{_mandir}/man8/tito.8.gz
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
|
@ -42,6 +52,8 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.mkd AUTHORS COPYING
|
%doc README.mkd AUTHORS COPYING
|
||||||
|
%doc %{_mandir}/man5/titorc.5.gz
|
||||||
|
%doc %{_mandir}/man8/tito.8.gz
|
||||||
%{_bindir}/tito
|
%{_bindir}/tito
|
||||||
%{_bindir}/bump-version.pl
|
%{_bindir}/bump-version.pl
|
||||||
%{_bindir}/tar-fixup-stamp-comment.pl
|
%{_bindir}/tar-fixup-stamp-comment.pl
|
||||||
|
|
Loading…
Add table
Reference in a new issue