Skip to content

Commit

Permalink
Specfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Nov 17, 2014
1 parent fb8e605 commit 05535eb
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions the-new-hotness.spec
@@ -0,0 +1,57 @@
%{!?_licensedir: %global license %%doc}

%if 0%{?rhel} && 0%{?rhel} <= 6
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif

%global modname the-new-hotness

Name: the-new-hotness
Version: 0.1.2
Release: 1%{?dist}
Summary: Consume anitya fedmsg messages to file bugzilla bugs

Group: Development/Libraries
License: LGPLv2+
URL: http://pypi.python.org/pypi/the-new-hotness
Source0: https://pypi.python.org/packages/source/t/%{modname}/%{modname}-%{version}.tar.gz
BuildArch: noarch

BuildRequires: python2-devel
BuildRequires: python-setuptools

BuildRequires: python-bugzilla
BuildRequires: python-dogpile-cache
BuildRequires: fedmsg

Requires: python-bugzilla
Requires: python-dogpile-cache
Requires: fedmsg

%description
Fedmsg consumer that listens to release-monitoring.org and files bugzilla bugs
in response (to notify packagers that they can update their packages).

%prep
%setup -q -n %{modname}-%{version}

# Remove bundled egg-info in case it exists
rm -rf %{modname}.egg-info

%build
%{__python2} setup.py build

%install
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}

%files
%doc README.rst
%license LICENSE
%{python2_sitelib}/hotness/
%{python2_sitelib}/the_new_hotness-%{version}*

%changelog
* Mon Nov 17 2014 Ralph Bean <rbean@redhat.com> - 0.1.2-1
- Initial package for infrastructure.

0 comments on commit 05535eb

Please sign in to comment.