These spec files are working for me under Fedora 11. Comments welcome.
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-assets Version: 0.1.0 Release: 1%{?dist} Summary: Cache-friendly asset management via content-hash-naming Group: Development/Languages License: LGPLv3+ URL: http://jderose.fedorapeople.org/assets/ Source0: http://jderose.fedorapeople.org/assets/%{version}/assets-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel python-nose %description The assets package does content-hash-naming (aka URL fingerprinting) so you can use aggressive caching headers without risking that a client might have an out-of-date version of an asset in its cache. If the content changes, the content-hash-name also changes, resulting in a different URL for each bytewise-unique version of an asset. %prep %setup -q -n assets-%{version} %build %{__python} setup.py build %check nosetests --with-doctest %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README COPYING COPYING.LESSER %{python_sitelib}/assetslib/ %{python_sitelib}/assets-%{version}-py2.6.egg-info %changelog * Tue Sep 22 2009 Jason Gerard DeRose <jder...@redhat.com> - 0.1.0-1 - Initial package
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-wehjit Version: 0.1.0 Release: 1%{?dist} Summary: A Python web-widget library Group: Development/Languages License: GPLv3+ URL: http://jderose.fedorapeople.org/wehjit/ Source0: http://jderose.fedorapeople.org/wehjit/%{version}/wehjit-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel python-nose BuildRequires: python-assets python-genshi python-paste python-pygments Requires: python-assets python-genshi python-paste python-pygments %description wehjit is a Python library for for building XHTML widgets for web applications and web pages. It encapsulates the XHTML (a Genshi XML template), CSS, and JavaScript for each widget into a plugin. %prep %setup -q -n wehjit-%{version} %build %{__python} setup.py build %check nosetests --with-doctest %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README COPYING %{python_sitelib}/wehjit/ %{python_sitelib}/wehjit-%{version}-py2.6.egg-info %{_bindir}/wehjit-demo %changelog * Tue Sep 22 2009 Jason Gerard DeRose <jder...@redhat.com> - 0.1.0-1 - Initial package
_______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel