%global htmldir /var/www/yawn %global apacheconfdir /etc/httpd %global svnrev 606 %global revdate 20121115 Name: yawn Version: 0 Release: 0.12.%{revdate}svn%{svnrev}%{?dist} Summary: Yet Another WBEM Navigator Group: Applications/System License: GPLv2 URL: https://sourceforge.net/apps/mediawiki/pywbem/index.php?title=YAWN # The source for this package was pulled from upstream svn repository. # Use the following commands to get the archive: # svn export -r 606 https://pywbem.svn.sourceforge.net/svnroot/pywbem/yawn/trunk/mod_wsgi yawn-20121115 # tar -cJvf yawn-20121115.tar.xz yawn-20121115 Source0: %{name}-%{revdate}.tar.xz BuildRequires: httpd, python-setuptools Requires: mod_wsgi, pywbem, httpd, python-werkzeug, python-mako BuildArch: noarch %description Web-based CIM/WBEM browser %package server Summary: Standalone web server for yawn Requires: %{name} %description server Script to run yawn without Apache web server. %prep %setup -q -n %{name}-%{revdate} %build %{__python} setup.py build %install %{__python} setup.py install --skip-build --root ${RPM_BUILD_ROOT} mkdir -p $RPM_BUILD_ROOT%{htmldir} install ./scripts/yawn.wsgi $RPM_BUILD_ROOT%{htmldir}/index.wsgi install -d $RPM_BUILD_ROOT%{apacheconfdir}/conf.d/ install -m 0644 ./apache/yawn.conf ${RPM_BUILD_ROOT}/%{apacheconfdir}/conf.d/yawn.conf %post /bin/systemctl try-restart httpd.service >/dev/null 2>&1 || : %files %{htmldir} %{python_sitelib}/* %config(noreplace) %{apacheconfdir}/conf.d/yawn.conf %files server %{_bindir}/yawn.py %changelog * Thu Nov 15 2012 Michal Minar - 0-0.12.20121115svn605 - Update to latest upstream version * Tue Nov 06 2012 Vitezslav Crhonek - 0-0.11.20121106svn600 - Update to latest upstream version - Fix tarball name * Mon Sep 17 2012 Vitezslav Crhonek - 0-0.10.20120917svn593 - Update to latest upstream version * Mon Sep 10 2012 Vitezslav Crhonek - 0-0.9.20120905svn588 - Fix issues found by fedora-review utility in the spec file * Wed Sep 05 2012 Vitezslav Crhonek - 0-0.8.20120905svn588 - Update to latest upstream version * Thu Aug 02 2012 Vitezslav Crhonek - 0-0.7.20120620svn578 - Add python-mako to Requires * Sun Jul 22 2012 Fedora Release Engineering - 0-0.6.20120620svn578 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jul 02 2012 Vitezslav Crhonek - 0-0.5.20120620svn578 - Update to latest upstream version (switched from mod_python to mod_wsgi) * Thu May 17 2012 Vitezslav Crhonek - 0-0.4.20120227svn561 - Fix URLs (patch by Radek Novacek, rnovacek@redhat.com) * Tue Mar 13 2012 Vitezslav Crhonek - 0-0.3.20120227svn561 - Fix Pickle method sets Content-type: text/plain instead of text/html (patch by Jan Safranek, jsafrane@redhat.com) Resolves: #802683 * Tue Feb 28 2012 Vitezslav Crhonek - 0-0.2.20120227svn561 - Fix twice listed files * Mon Feb 27 2012 Vitezslav Crhonek - 0-0.1.20120227svn561 - Remove obsolete BuildRoot tag, use systemctl instead of service, own htmldir, fix source and version * Thu Feb 23 2012 Vitezslav Crhonek - Change htmldir, fix license * Wed Jan 25 2012 Vitezslav Crhonek - Initial build for Fedora