Update to follow latest packaging guidelines
This commit is contained in:
parent
759eacef1f
commit
2fc2121b64
1 changed files with 10 additions and 8 deletions
|
|
@ -2,10 +2,9 @@
|
|||
%{!?python2_sitelib: %global python2_sitelib %{python_sitelib}}
|
||||
Name: zanata-python-client
|
||||
Version: 1.5.2
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Python Client for Zanata Server
|
||||
License: LGPLv2+
|
||||
Group: Applications/Text
|
||||
URL: http://zanata.org
|
||||
Source0: https://github.com/zanata/zanata-python-client/archive/v%{version}.tar.gz
|
||||
|
||||
|
|
@ -45,23 +44,26 @@ Obsoletes: zanata-python-client < %{version}-%{release}
|
|||
%description -n python2-zanata-client %_description
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%autosetup -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
%{__python2} setup.py build
|
||||
%py2_build
|
||||
cp -pr zanataclient/VERSION-FILE build/lib/zanataclient
|
||||
|
||||
%install
|
||||
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||
%py2_install
|
||||
rm -rf $RPM_BUILD_ROOT/%{_docdir}
|
||||
|
||||
%files -n python2-zanata-client
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.rst COPYING.LESSER zanata.ini zanata_example.xml CHANGELOG
|
||||
%doc README.rst zanata.ini zanata_example.xml CHANGELOG
|
||||
%license COPYING.LESSER
|
||||
%{_bindir}/*
|
||||
%{python2_sitelib}
|
||||
%{python2_sitelib}/
|
||||
|
||||
%changelog
|
||||
* Wed Jul 04 2018 Parag Nemade <pnemade AT fedoraproject DOT orgf> - 1.5.2-2
|
||||
- Update to follow latest packaging guidelines
|
||||
|
||||
* Mon Apr 16 2018 Sundeep Anand <suanand@redhat.com> - 1.5.2-1
|
||||
- Upstream update to 1.5.2-1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue