Blob Blame Raw
# This package depends on automagic byte compilation
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
%global _python_bytecompile_extra 1

Name:           darkserver
Version:        2.0
Release:        7%{?dist}
Summary:        GNU build-id service
License:        GPLv2+
URL:            https://github.com/kushaldas/darkserver
Source0:        http://kushal.fedorapeople.org/%{name}/%{name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python2-setuptools python2-devel
BuildRequires:  systemd

Requires:       python2-flask
Requires:       httpd
Requires:       python2-mod_wsgi
Requires:       python2-psycopg2
Requires:       python2-sqlalchemy

%description
Service to provide details of GNU build-id. This is a Django based web-service
which keeps records of GNU build-ids of various ELF files imported from RPMs
and provide them in JSON format through web.

%prep
%setup -q


%build
%py2_build

%install
%py2_install
%{__mkdir_p}  %{buildroot}%{_sysconfdir}/fedmsg.d/
%{__cp} fedmsg.d/darkserver.py %{buildroot}%{_sysconfdir}/fedmsg.d/darkserver.py
%{__mkdir_p} %{buildroot}%{_unitdir}
%{__install} -pm644 darkserver.service \
%{buildroot}%{_unitdir}/darkserver.service

%files
%doc README

%{_sbindir}/darkserver.wsgi
%config(noreplace)     %{_sysconfdir}/httpd/conf.d/darkserver-httpd.conf
%dir %{_sysconfdir}/%{name}
%dir %{python_sitelib}/darkweb/
%dir %{_datadir}/darkserver/
%{python2_sitelib}/darkweb/*.py*


%package importer
Summary: The importer system for darkserver
Requires:       wget
Requires:       python2-requests
Requires:       koji
Requires:       elfutils rpmdevtools python2-psycopg2
Requires:       python2-elfdata
Requires:       python2-pika
Requires:       python2-fedmsg
Requires:       python2-systemd


%description importer
Importer commands
%files importer

%config(noreplace)     %{_sysconfdir}/%{name}/darkjobworker.conf
%config(noreplace)     %{_sysconfdir}/%{name}/koji_info.json

%{_sbindir}/darkserver_job
%dir %{python_sitelib}/darkimporter/
%dir %{python_sitelib}/darkserver/
%{python2_sitelib}/darkserver*.egg-info
%{python2_sitelib}/darkserver/*.py*
%{python2_sitelib}/darkimporter/*.py*
%{_datadir}/darkserver/darkjobworker.py*
%config(noreplace) %{_sysconfdir}/fedmsg.d/darkserver.py*
%{_unitdir}/darkserver.service



%changelog
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Feb 07 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.0-5
- Update Python 2 dependency declarations to new packaging standards
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Wed Jul 26 2017 Kushal Das <kushal@fedoraproject.org> - 2.0-3
- Puts egg-info to importer subpackage

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Wed Mar 01 2017 Kushal Das <kushal@fedoraproject.org> - 2.0-1
- Updates to 2.0

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-3
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Mon Feb 01 2016 Kushal Das <kushal@fedoraproject.org> - 1.0.4-1
- Updates to 1.0.4

* Mon Feb 01 2016 Kushal Das <kushal@fedoraproject.org> - 1.0.3-2
- Fixes Python consumer entry points

* Fri Jan 29 2016 Kushal Das <kushal@fedoraproject.org> - 1.0.3-1
- Updates to 1.0.3

* Fri Jan 29 2016 Kushal Das <kushal@fedoraproject.org> - 1.0.2-2
- Fixes requires dependencies

* Fri Jan 29 2016 Kushal Das <kushal@fedoraproject.org> - 1.0.2-1
- Updates to 1.0.2

* Wed Jan 27 2016 Kushal Das <kushal@fedoraproject.org> - 1.0.1-1
- Updates to 1.0.1

* Wed Jan 27 2016 Kushal Das <kushal@fedoraproject.org> - 1.0-3
- Using BR for systemd

* Wed Jan 27 2016 Kushal Das <kushal@fedoraproject.org> - 1.0-2
- Using requirement for python-django

* Wed Jan 27 2016 Kushal Das <kushal@fedoraproject.org> - 1.0-1
- Updated the source to 1.0

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Wed May 02 2012 Kushal Das <kushal@fedoraproject.org> - 0.5.4-1
- Updated the source to 0.5.4, for bz#817625

* Thu Mar 22 2012 Kushal Das <kushal@fedoraproject.org> - 0.5.3-1
- Updated the source to 0.5.3, for bz#806013

* Thu Mar 22 2012 Kushal Das <kushal@fedoraproject.org> - 0.5.2-1
- Updated the source to 0.5.2

* Wed Mar 14 2012 Kushal Das <kushal@fedoraproject.org> - 0.5.1-1
- Updated the source to 0.5.1

* Wed Mar 14 2012 Kushal Das <kushal@fedoraproject.org> - 0.5-1
- Updated the source to 0.5, subpackage kojiplugin

* Tue Mar 13 2012 Kushal Das <kushal@fedoraproject.org> - 0.4.1-1
- Updated the source to 0.4.1, fixed syncdb issue

* Tue Mar 13 2012 Kushal Das <kushal@fedoraproject.org> - 0.4-1
- Updated the source to 0.4, removed the subpackage

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Tue Dec 27 2011 Kushal Das <kushal@fedoraproject.org> - 0.3-1
- New release of the source

* Mon Dec 05 2011 Kushal Das <kushal@fedoraproject.org> - 0.2-1
- New release of the source

* Tue Nov 22 2011 Kushal Das <kushal@fedoraproject.org> - 0.1-3
- Fixing the dir issues from bz#752771

* Fri Nov 11 2011 Kushal Das <kushal@fedoraproject.org> - 0.1-2
- fixing the spec file better description and other ideas
  from review request bz#752771

* Thu Nov 10 2011 Kushal Das <kushal@fedoraproject.org> - 0.1-1
- initial release