5a6752
%global htmldir /var/www/yawn
5a6752
%global apacheconfdir /etc/httpd
6dd4b3
%global svnrev 632
6dd4b3
%global revdate 20140318
5a6752
5a6752
Name:           yawn
5a6752
Version:        0
5e95e4
Release:        0.32.%{revdate}svn%{svnrev}%{?dist}
5a6752
Summary:        Yet Another WBEM Navigator
5a6752
5a6752
5a6752
License:        GPLv2
5a6752
URL:            https://sourceforge.net/apps/mediawiki/pywbem/index.php?title=YAWN
ddf0e2
# The source for this package was pulled from upstream svn repository.
ddf0e2
# Use the following commands to get the archive:
6dd4b3
#  svn export -r 632 https://svn.code.sf.net/p/pywbem/code/yawn/trunk/mod_wsgi yawn-20140318
6dd4b3
#  tar -cJvf yawn-20140318.tar.xz yawn-20140318
ae3a8a
Source0:        %{name}-%{revdate}.tar.xz
ddf0e2
2b2fe4
Patch0: fix-shebang-lines.patch
ecd4f9
Patch1: python-3-support.patch
ecd4f9
Patch2: fix-requires.patch
2b2fe4
ecd4f9
BuildRequires:  httpd, python3-devel
ecd4f9
Requires:       python3-mod_wsgi, python3-pywbem, httpd, python3-werkzeug, python3-mako
5a6752
BuildArch:      noarch
5a6752
5a6752
%description
5a6752
Web-based CIM/WBEM browser
5a6752
ddf0e2
%package server
ddf0e2
Summary: Standalone web server for yawn
ddf0e2
Requires: %{name}
ddf0e2
ddf0e2
%description server
ddf0e2
Script to run yawn without Apache web server.
ddf0e2
5a6752
%prep
ae3a8a
%setup -q -n %{name}-%{revdate}
2b2fe4
%patch0 -p1 -b .fix-shebang-lines
ecd4f9
%patch1 -p1 -b .python-3-support
ecd4f9
%patch2 -p1 -b .fix-requires
5a6752
5a6752
%build
ecd4f9
%{__python3} setup.py build
5a6752
5a6752
%install
ecd4f9
%{__python3} setup.py install --skip-build --root ${RPM_BUILD_ROOT}
5a6752
mkdir -p $RPM_BUILD_ROOT%{htmldir}
ddf0e2
install ./scripts/yawn.wsgi $RPM_BUILD_ROOT%{htmldir}/index.wsgi
5a6752
install -d $RPM_BUILD_ROOT%{apacheconfdir}/conf.d/
ddf0e2
install -m 0644 ./apache/yawn.conf ${RPM_BUILD_ROOT}/%{apacheconfdir}/conf.d/yawn.conf
5a6752
6dd4b3
%post
5a6752
/bin/systemctl try-restart httpd.service >/dev/null 2>&1 || :
5a6752
5a6752
%files
5a6752
%{htmldir}
ecd4f9
%{python3_sitelib}/*
5a6752
%config(noreplace) %{apacheconfdir}/conf.d/yawn.conf
b6d6b2
%doc README Changelog
5a6752
ddf0e2
%files server
ddf0e2
%{_bindir}/yawn.py
ddf0e2
5a6752
%changelog
5e95e4
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0-0.32.20140318svn632
5e95e4
- Rebuilt for Python 3.8
5e95e4
24c6af
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.31.20140318svn632
24c6af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
24c6af
ecd4f9
* Tue May 21 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.30.20140318svn632
ecd4f9
- Various python2 -> python3 fixes
ecd4f9
- Fix dependencies
ecd4f9
  Resolves: #1701930
ecd4f9
2b2fe4
* Tue Feb 19 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.29.20140318svn632
2b2fe4
- Fix FTBFS
2b2fe4
  Resolves: #1676255
2b2fe4
034e6a
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.28.20140318svn632
034e6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
034e6a
a681d5
* Mon Jul 23 2018 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.27.20140318svn632
a681d5
- Fix FTBFS
a681d5
  Resolves: #1606766
a681d5
1e77e0
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.26.20140318svn632
1e77e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1e77e0
b541c7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.25.20140318svn632
b541c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b541c7
713cbe
* Mon Feb 05 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0-0.24.20140318svn632
713cbe
- Update Python 2 dependency declarations to new packaging standards
713cbe
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
713cbe
78be9a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.23.20140318svn632
78be9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
78be9a
44f1d1
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.22.20140318svn632
44f1d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
44f1d1
a5e2f1
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.21.20140318svn632
a5e2f1
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
a5e2f1
29c1a8
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.20.20140318svn632
29c1a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
29c1a8
1ba860
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.19.20140318svn632
1ba860
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1ba860
23808d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.18.20140318svn632
23808d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
23808d
6dd4b3
* Tue Mar 18 2014 Michal Minar <miminar@redhat.com> 0-0.17.20140318svn632
6dd4b3
- New upstream version with option to disable certificate verification.
6dd4b3
2d29c0
* Thu Feb 27 2014 Michal Minar <miminar@redhat.com> 0-0.16.20140227svn630
2d29c0
- New upstream version fixing enumeration of instrumetned classes.
2d29c0
1f467b
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.15.20130426svn620
1f467b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1f467b
a173c4
* Fri Apr 26 2013 Michal Minar <miminar@redhat.com> 0-0.15.20130426svn620
a173c4
- Updated to latest upstream version
a173c4
f749b1
* Wed Feb 13 2013 Michal Minar <miminar@redhat.com> 0-0.14.20130213svn617
f749b1
- Updated to latest upstream version
f749b1
b6d6b2
* Fri Jan 18 2013 Michal Minar <miminar@redhat.com> 0-0.13.20130118svn610
b6d6b2
- Updated to latest upstream version
b6d6b2
- Added changelog file
b6d6b2
ae3a8a
* Thu Nov 15 2012 Michal Minar <miminar@redhat.com> - 0-0.12.20121115svn605
ae3a8a
- Update to latest upstream version
ae3a8a
17fd2f
* Tue Nov 06 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.11.20121106svn600
17fd2f
- Update to latest upstream version
17fd2f
- Fix tarball name
17fd2f
2e4438
* Mon Sep 17 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.10.20120917svn593
2e4438
- Update to latest upstream version
2e4438
57a16a
* Mon Sep 10 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.9.20120905svn588
57a16a
- Fix issues found by fedora-review utility in the spec file
57a16a
e7e77d
* Wed Sep 05 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.8.20120905svn588
e7e77d
- Update to latest upstream version
e7e77d
20d8c0
* Thu Aug 02 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.7.20120620svn578
20d8c0
- Add python-mako to Requires
20d8c0
c633ae
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.6.20120620svn578
c633ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c633ae
ddf0e2
* Mon Jul 02 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.5.20120620svn578
ddf0e2
- Update to latest upstream version (switched from mod_python to mod_wsgi)
ddf0e2
a44724
* Thu May 17 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.4.20120227svn561
a44724
- Fix URLs (patch by Radek Novacek, rnovacek@redhat.com)
a44724
dc9823
* Tue Mar 13 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.3.20120227svn561
dc9823
- Fix Pickle method sets Content-type: text/plain instead of text/html
dc9823
  (patch by Jan Safranek, jsafrane@redhat.com)
dc9823
  Resolves: #802683
dc9823
5a6752
* Tue Feb 28 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.2.20120227svn561
5a6752
- Fix twice listed files
5a6752
5a6752
* Mon Feb 27 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.1.20120227svn561
5a6752
- Remove obsolete BuildRoot tag, use systemctl instead of service, own htmldir,
5a6752
  fix source and version
5a6752
5a6752
* Thu Feb 23 2012 Vitezslav Crhonek <vcrhonek@redhat.com>
5a6752
- Change htmldir, fix license
5a6752
5a6752
* Wed Jan 25 2012 Vitezslav Crhonek <vcrhonek@redhat.com>
5a6752
- Initial build for Fedora