Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af6ee3f694 |
3 changed files with 79 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -0,0 +1 @@
|
|||
/yawn.py
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
ad45eb44484e60fc77513e6083823ec6 yawn.py
|
||||
77
yawn.spec
Normal file
77
yawn.spec
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
|
||||
%global htmldir /var/www/yawn
|
||||
%global apacheconfdir /etc/httpd
|
||||
%global svnrev 561
|
||||
|
||||
Name: yawn
|
||||
Version: 0
|
||||
Release: 0.2.20120227svn%{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's vcs. Use the
|
||||
# following command to get the file:
|
||||
# wget http://pywbem.svn.sourceforge.net/viewvc/pywbem/yawn/trunk/yawn.py
|
||||
Source0: yawn.py
|
||||
|
||||
BuildRequires: httpd
|
||||
Requires: mod_python, pywbem, httpd
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Web-based CIM/WBEM browser
|
||||
|
||||
%prep
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{htmldir}
|
||||
install %{SOURCE0} $RPM_BUILD_ROOT%{htmldir}/index.py
|
||||
install -d $RPM_BUILD_ROOT%{apacheconfdir}/conf.d/
|
||||
cat > $RPM_BUILD_ROOT%{apacheconfdir}/conf.d/yawn.conf << EOS
|
||||
Alias /yawn /var/www/yawn
|
||||
|
||||
<Location /yawn>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
Allow from 127.0.0.1
|
||||
Allow from ::1
|
||||
# Allow from .example.com
|
||||
</Location>
|
||||
|
||||
<Directory /var/www/yawn>
|
||||
SetHandler mod_python
|
||||
PythonHandler mod_python.publisher
|
||||
PythonDebug On
|
||||
</Directory>
|
||||
EOS
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
/bin/systemctl try-restart httpd.service >/dev/null 2>&1 || :
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{htmldir}
|
||||
%config(noreplace) %{apacheconfdir}/conf.d/yawn.conf
|
||||
|
||||
%changelog
|
||||
* Tue Feb 28 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 0-0.2.20120227svn561
|
||||
- Fix twice listed files
|
||||
|
||||
* Mon Feb 27 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 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 <vcrhonek@redhat.com>
|
||||
- Change htmldir, fix license
|
||||
|
||||
* Wed Jan 25 2012 Vitezslav Crhonek <vcrhonek@redhat.com>
|
||||
- Initial build for Fedora
|
||||
Loading…
Add table
Add a link
Reference in a new issue