5a6752e
%global htmldir /var/www/yawn
5a6752e
%global apacheconfdir /etc/httpd
6dd4b30
%global svnrev 632
6dd4b30
%global revdate 20140318
5a6752e
5a6752e
Name:           yawn
5a6752e
Version:        0
23808d0
Release:        0.18.%{revdate}svn%{svnrev}%{?dist}
5a6752e
Summary:        Yet Another WBEM Navigator
5a6752e
5a6752e
5a6752e
Group:          Applications/System
5a6752e
License:        GPLv2
5a6752e
URL:            https://sourceforge.net/apps/mediawiki/pywbem/index.php?title=YAWN
ddf0e26
# The source for this package was pulled from upstream svn repository.
ddf0e26
# Use the following commands to get the archive:
6dd4b30
#  svn export -r 632 https://svn.code.sf.net/p/pywbem/code/yawn/trunk/mod_wsgi yawn-20140318
6dd4b30
#  tar -cJvf yawn-20140318.tar.xz yawn-20140318
ae3a8ae
Source0:        %{name}-%{revdate}.tar.xz
ddf0e26
ddf0e26
BuildRequires:  httpd, python-setuptools
20d8c0c
Requires:       mod_wsgi, pywbem, httpd, python-werkzeug, python-mako
5a6752e
BuildArch:      noarch
5a6752e
5a6752e
%description
5a6752e
Web-based CIM/WBEM browser
5a6752e
ddf0e26
%package server
ddf0e26
Summary: Standalone web server for yawn
ddf0e26
Requires: %{name}
ddf0e26
ddf0e26
%description server
ddf0e26
Script to run yawn without Apache web server.
ddf0e26
5a6752e
%prep
ae3a8ae
%setup -q -n %{name}-%{revdate}
5a6752e
5a6752e
%build
ddf0e26
%{__python} setup.py build
5a6752e
5a6752e
%install
ddf0e26
%{__python} setup.py install --skip-build --root ${RPM_BUILD_ROOT}
5a6752e
mkdir -p $RPM_BUILD_ROOT%{htmldir}
ddf0e26
install ./scripts/yawn.wsgi $RPM_BUILD_ROOT%{htmldir}/index.wsgi
5a6752e
install -d $RPM_BUILD_ROOT%{apacheconfdir}/conf.d/
ddf0e26
install -m 0644 ./apache/yawn.conf ${RPM_BUILD_ROOT}/%{apacheconfdir}/conf.d/yawn.conf
5a6752e
6dd4b30
%post
5a6752e
/bin/systemctl try-restart httpd.service >/dev/null 2>&1 || :
5a6752e
5a6752e
%files
5a6752e
%{htmldir}
ddf0e26
%{python_sitelib}/*
5a6752e
%config(noreplace) %{apacheconfdir}/conf.d/yawn.conf
b6d6b2a
%doc README Changelog
5a6752e
ddf0e26
%files server
ddf0e26
%{_bindir}/yawn.py
ddf0e26
5a6752e
%changelog
23808d0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.18.20140318svn632
23808d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
23808d0
6dd4b30
* Tue Mar 18 2014 Michal Minar <miminar@redhat.com> 0-0.17.20140318svn632
6dd4b30
- New upstream version with option to disable certificate verification.
6dd4b30
2d29c0d
* Thu Feb 27 2014 Michal Minar <miminar@redhat.com> 0-0.16.20140227svn630
2d29c0d
- New upstream version fixing enumeration of instrumetned classes.
2d29c0d
1f467bc
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.15.20130426svn620
1f467bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1f467bc
a173c42
* Fri Apr 26 2013 Michal Minar <miminar@redhat.com> 0-0.15.20130426svn620
a173c42
- Updated to latest upstream version
a173c42
f749b11
* Wed Feb 13 2013 Michal Minar <miminar@redhat.com> 0-0.14.20130213svn617
f749b11
- Updated to latest upstream version
f749b11
b6d6b2a
* Fri Jan 18 2013 Michal Minar <miminar@redhat.com> 0-0.13.20130118svn610
b6d6b2a
- Updated to latest upstream version
b6d6b2a
- Added changelog file
b6d6b2a
ae3a8ae
* Thu Nov 15 2012 Michal Minar <miminar@redhat.com> - 0-0.12.20121115svn605
ae3a8ae
- Update to latest upstream version
ae3a8ae
17fd2fe
* Tue Nov 06 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.11.20121106svn600
17fd2fe
- Update to latest upstream version
17fd2fe
- Fix tarball name
17fd2fe
2e44388
* Mon Sep 17 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.10.20120917svn593
2e44388
- Update to latest upstream version
2e44388
57a16a2
* Mon Sep 10 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.9.20120905svn588
57a16a2
- Fix issues found by fedora-review utility in the spec file
57a16a2
e7e77d0
* Wed Sep 05 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.8.20120905svn588
e7e77d0
- Update to latest upstream version
e7e77d0
20d8c0c
* Thu Aug 02 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.7.20120620svn578
20d8c0c
- Add python-mako to Requires
20d8c0c
c633ae6
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.6.20120620svn578
c633ae6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c633ae6
ddf0e26
* Mon Jul 02 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.5.20120620svn578
ddf0e26
- Update to latest upstream version (switched from mod_python to mod_wsgi)
ddf0e26
a44724f
* Thu May 17 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.4.20120227svn561
a44724f
- Fix URLs (patch by Radek Novacek, rnovacek@redhat.com)
a44724f
dc9823a
* Tue Mar 13 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.3.20120227svn561
dc9823a
- Fix Pickle method sets Content-type: text/plain instead of text/html
dc9823a
  (patch by Jan Safranek, jsafrane@redhat.com)
dc9823a
  Resolves: #802683
dc9823a
5a6752e
* Tue Feb 28 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.2.20120227svn561
5a6752e
- Fix twice listed files
5a6752e
5a6752e
* Mon Feb 27 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.1.20120227svn561
5a6752e
- Remove obsolete BuildRoot tag, use systemctl instead of service, own htmldir,
5a6752e
  fix source and version
5a6752e
5a6752e
* Thu Feb 23 2012 Vitezslav Crhonek <vcrhonek@redhat.com>
5a6752e
- Change htmldir, fix license
5a6752e
5a6752e
* Wed Jan 25 2012 Vitezslav Crhonek <vcrhonek@redhat.com>
5a6752e
- Initial build for Fedora