From f195540bd68c6690bca43a0ba8011c5a5bccccd5 Mon Sep 17 00:00:00 2001 From: Izhar Firdaus Date: Wed, 10 Dec 2008 03:10:09 +0800 Subject: - initial import --- fedoratheme.kindofblue.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 fedoratheme.kindofblue.spec (limited to 'fedoratheme.kindofblue.spec') diff --git a/fedoratheme.kindofblue.spec b/fedoratheme.kindofblue.spec new file mode 100644 index 0000000..6fcabd1 --- /dev/null +++ b/fedoratheme.kindofblue.spec @@ -0,0 +1,49 @@ +# sitelib for noarch packages, sitearch for others (remove the unneeded one) +%define python /usr/bin/python2.4 +%define zopehome /usr/lib/zope +%{!?python_sitelib: %define python_sitelib %(%{python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %define python_sitearch %(%{python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +Name: fedoratheme.kindofblue +Version: 0.1 +Release: 1%{?dist} +Summary: a port of Fedora wiki's kindofblue theme to plone + +Group: Development/Languages +License: GPLv2+ +URL: http://fedora.foss.org.my +Source0: %{name}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: compat-python24-devel + +%description +A port of Fedora wiki's kindofblue theme to plone. + +%prep +%setup -q -n fedoratheme.kindofblue + + +%build +# Remove CFLAGS=... for noarch packages (unneeded) +CFLAGS="$RPM_OPT_FLAGS" %{python} setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +%{python} setup.py install --home=%{zopehome} -O1 --skip-build --root $RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc +# For noarch packages: sitelib +%{zopehome}/lib/python/ + + +%changelog -- cgit