rpms/Django/devel Django.spec,1.26,1.27

smilner smilner at fedoraproject.org
Wed Aug 26 21:38:37 UTC 2009


Author: smilner

Update of /cvs/pkgs/rpms/Django/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11921

Modified Files:
	Django.spec 
Log Message:
EL4 can't build with sphinx


Index: Django.spec
===================================================================
RCS file: /cvs/pkgs/rpms/Django/devel/Django.spec,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -p -r1.26 -r1.27
--- Django.spec	26 Aug 2009 18:55:52 -0000	1.26
+++ Django.spec	26 Aug 2009 21:38:36 -0000	1.27
@@ -3,7 +3,7 @@
 
 Name:           Django
 Version:        1.1
-Release:        3%{?dist}
+Release:        3.01%{?dist}
 Summary:        A high-level Python Web framework
 
 Group:          Development/Languages
@@ -18,7 +18,11 @@ BuildRoot:      %{_tmppath}/%{name}-%{ve
 BuildArch:      noarch
 # Note: No longer required in development version > 0.95
 # BuildRequires:  python-setuptools
-BuildRequires:  python-devel python-sphinx
+BuildRequires:  python-devel
+%if (0%{?rhel} > 0 && 0%{?rhel} > 4) || (0%{?fedora} > 0)
+BuildRequires: python-sphinx
+%endif
+
 Requires:       python-simplejson
 
 %description
@@ -27,7 +31,7 @@ development and a clean, pragmatic desig
 much as possible and adhering to the DRY (Don't Repeat Yourself)
 principle.
 
-
+%if (0%{?rhel} > 0 && 0%{?rhel} > 4) || (0%{?fedora} > 0)
 %package doc
 Summary:        Documentation for Django
 Group:          Documentation
@@ -38,7 +42,7 @@ Obsoletes:      %{name}-docs < %{version
 %description doc
 This package contains the documentation for the Django high-level
 Python Web framework.
-
+%endif
 
 %prep
 %setup -q -n %{name}-%{version}
@@ -62,8 +66,10 @@ rm -rf $RPM_BUILD_ROOT
   's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \
   >> %{name}.lang
 
-# build documentation
-(cd docs && make html)
+%if (0%{?rhel} > 0 && 0%{?rhel} > 4) || (0%{?fedora} > 0)
+    # build documentation
+    (cd docs && make html)
+%endif
 
 # install man pages
 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
@@ -100,16 +106,20 @@ rm -rf $RPM_BUILD_ROOT
 # -----------------
  
 
+%if (0%{?rhel} > 0 && 0%{?rhel} > 4) || (0%{?fedora} > 0)
 %files doc
 %defattr(-,root,root,-)
 %doc docs/_build/html/*
-
+%endif
 
 %changelog
-* Wed Aug 26 2009 Steve 'Ashcrow' Milner <stevem at gnulinux.net< - 1.1-3
+* Wed Aug 26 2009 Steve 'Ashcrow' Milner <stevem at gnulinux.net> - 1.1-4
+- EL-4 shouldn't get the sphinx docs.
+
+* Wed Aug 26 2009 Steve 'Ashcrow' Milner <stevem at gnulinux.net> - 1.1-3
 - ghosting admin py* is now FC9 and under.
 
-* Thu Aug  6 2009 Steve 'Ashcrow' Milner <stevem at gnulinux.net< - 1.1-2
+* Thu Aug  6 2009 Steve 'Ashcrow' Milner <stevem at gnulinux.net> - 1.1-2
 - Applied Daniel Mach's patch from bz#516016.
 
 * Sat Aug  1 2009 Steve 'Ashcrow' Milner <stevem at gnulinux.net> - 1.1-1




More information about the fedora-extras-commits mailing list