# Redifine to remove /usr/lib/rpm/brp-python-bytecompile %define __os_install_post \ /usr/lib/rpm/redhat/brp-compress \ %{!?__debug_package:/usr/lib/rpm/redhat/brp-strip %{__strip}} \ /usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} \ /usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} \ /usr/lib/rpm/redhat/brp-java-repack-jars \ %{nil} %define name jToolkit %define version 0.7.8 %define release 1 Summary: jToolkit web framework Name: %{name} Version: %{version} Release: %{release}%{?dist} Source0: %{name}-%{version}.tar.gz License: GNU General Public License (GPL) Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Prefix: %{_prefix} BuildArch: noarch Url: http://jtoolkit.sourceforge.net/ %description jToolkit is a Python web application framework built on modpython and Apache. There is also a simple command line webserver for running applications from. It is aimed at dynamically generated pages rather than mostly-static pages (for which there are templating solutions). Pages can be produced using a variety of widgets. It handles sessions and database connections (and multi-database portability). %prep %setup %build python jToolkitSetup.py build %install python jToolkitSetup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES %clean rm -rf $RPM_BUILD_ROOT %files -f INSTALLED_FILES %defattr(-,root,root)