Epoch: 1 Name: viewsource Version: 1.1 Release: 1%{?dist} Summary: This is a spec file for viewsource Group: Development/tools License: GPLv2 URL: http://hongkong.proximity.on.ca/ Source0: viewsource.tgz Source1: viewsource.conf Source2: README.viewsource.fedora BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) Requires: httpd #Requires: dehydra #Requires: jshydra #Requires: gcc43mod patch0: index.patch BuildArch: noarch %description Jddeni part of the project, to package viewsource %prep %setup -n %{name} %patch0 -p0 %build %install rm -rf %{buildroot} install -d %{buildroot}/var/www/html/viewsource install -p viewsource.py %{buildroot}/var/www/html/viewsource install -p viewsource.config %{buildroot}/var/www/html/viewsource install -p index.html %{buildroot}/var/www/html/viewsource install -d %{buildroot}/etc/httpd/conf.d install -p %{SOURCE1} %{buildroot}/etc/httpd/conf.d install -p %{SOURCE2} %{buildroot}/var/www/html/viewsource %clean rm -rf ${buildroot} %files /var/www/html/viewsource/viewsource.py /var/www/html/viewsource/viewsource.config /var/www/html/viewsource/index.html /var/www/html/viewsource/viewsource.pyo /var/www/html/viewsource/viewsource.pyc /etc/httpd/conf.d/viewsource.conf /var/www/html/viewsource/README.viewsource.fedora %defattr(-,root,root,-) %doc LICENSE %post if service httpd status >/dev/null 2>&1 then service httpd reload fi %postun if service httpd status >/dev/null 2>&1 then service httpd reload fi %changelog