-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I63fd0cafe3b2b93c337851c5965acec43f43ac8a
- Loading branch information
Showing
2 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
%global upstream_version 1.0rc1 | ||
|
||
Name: rpmdeplint | ||
Version: 1.0 | ||
Release: 0.rc1%{?dist} | ||
Summary: Tool to find errors in RPM packages in the context of their dependency graph | ||
License: GPLv2+ | ||
URL: https://pypi.python.org/pypi/rpmdeplint | ||
Source0: https://files.pythonhosted.org/packages/source/r/%{name}/%{name}-%{upstream_version}.tar.gz | ||
BuildArch: noarch | ||
BuildRequires: python2-devel | ||
BuildRequires: python-sphinx | ||
BuildRequires: pytest | ||
BuildRequires: python-rpmfluff | ||
%ifarch x86_64 | ||
BuildRequires: glibc-devel.i686 | ||
BuildRequires: libgcc.i686 | ||
%endif | ||
BuildRequires: rpm-python | ||
BuildRequires: python-hawkey | ||
BuildRequires: python-librepo | ||
Requires: rpm-python | ||
Requires: python-hawkey | ||
Requires: python-librepo | ||
|
||
%description | ||
Rpmdeplint is a tool to find errors in RPM packages in the context of their | ||
dependency graph. | ||
|
||
%prep | ||
%setup -q -n %{name}-%{upstream_version} | ||
rm -r rpmdeplint.egg-info | ||
|
||
%build | ||
%py2_build | ||
|
||
%install | ||
%py2_install | ||
|
||
%check | ||
py.test rpmdeplint | ||
# Acceptance tests currently broken inside mock, due to rpmfluff: | ||
# https://pagure.io/rpmfluff/pull-request/4 | ||
#export PATH=%%{buildroot}%%{_bindir}:$PATH PYTHONPATH=%%{buildroot}%%{python2_sitelib} | ||
#py.test acceptance_tests | ||
|
||
%files | ||
%license COPYING | ||
%doc README.rst | ||
%{_bindir}/%{name} | ||
%{_mandir}/man1/%{name}.1.* | ||
%{python2_sitelib}/%{name} | ||
%{python2_sitelib}/%{name}*.egg-info | ||
|
||
%changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters