summaryrefslogtreecommitdiffstats
path: root/cnucnu.spec
blob: 79401dbad68095f1d8bdfcd0afe4c77295384f4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           cnucnu
Version:        0.0.0
Release:        1%{?dist}
Summary:        Upstream release monitoring with bug reporting
Group:          Development/Tools
License:        GPLv2+
URL:            https://fedoraproject.org/wiki/Upstream_Release_Monitoring
Source0:        %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildArch:      noarch

Requires: rpm-python
Requires: python
Requires: python-bugzilla
Requires: python-fedora
Requires: python-genshi
Requires: python-pycurl
Requires: python-twisted-core
Requires: python-twisted-web
Requires: PyYAML

%description
Cnucnu provides an upstream release monitoring service with bugzilla
integration. See more at the project homepage at
https://fedoraproject.org/wiki/Upstream_Release_Monitoring

%prep
%setup -q


%build
%{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
python -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot}

# remove .py suffix
mv $RPM_BUILD_ROOT/%{_bindir}/cnucnu{.py,}

 
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc COPYING gpl-2.0.txt gpl-3.0.txt
# For noarch packages: sitelib
%{python_sitelib}/cnucnu/
%{python_sitelib}/cnucnu-*.egg-info
%{_bindir}/cnucnu


%changelog