/[pkgs]/devel/Django/Django.spec
ViewVC logotype

Contents of /devel/Django/Django.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.31 - (show annotations) (download)
Sun Oct 25 22:55:58 2009 UTC (4 weeks, 2 days ago) by smilner
Branch: MAIN
CVS Tags: Django-1_1_1-2_fc13, HEAD
Changes since 1.30: +8 -2 lines
Updated spec to fix BZ#529188.
1 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2 %{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
3
4 Name: Django
5 Version: 1.1.1
6 Release: 2%{?dist}
7 Summary: A high-level Python Web framework
8
9 Group: Development/Languages
10 License: BSD
11 URL: http://www.djangoproject.com/
12 Source0: http://media.djangoproject.com/releases/%{version}/Django-%{version}.tar.gz
13 # stub simplejson module that imports the system version
14 Source1: simplejson-init.py
15 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
16
17 BuildArch: noarch
18 # Note: No longer required in development version > 0.95
19 # BuildRequires: python-setuptools
20 BuildRequires: python-devel
21 %if 0%{?rhel} > 4 || 0%{?fedora} > 0
22 BuildRequires: python-sphinx
23 %endif
24
25 Requires: python-simplejson
26
27 %description
28 Django is a high-level Python Web framework that encourages rapid
29 development and a clean, pragmatic design. It focuses on automating as
30 much as possible and adhering to the DRY (Don't Repeat Yourself)
31 principle.
32
33 %if 0%{?rhel} > 4 || 0%{?fedora} > 0
34 %package doc
35 Summary: Documentation for Django
36 Group: Documentation
37 Requires: %{name} = %{version}-%{release}
38 Provides: %{name}-docs = %{version}-%{release}
39 Obsoletes: %{name}-docs < %{version}-%{release}
40
41 %description doc
42 This package contains the documentation for the Django high-level
43 Python Web framework.
44 %endif
45
46 %prep
47 %setup -q -n %{name}-%{version}
48 # remove bundled simplejson
49 cd django/utils/simplejson/
50 rm -rf *
51 # and put the replacement stub in place
52 cp -p %{SOURCE1} __init__.py
53
54
55 %build
56 %{__python} setup.py build
57
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61 %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
62 # Language files; not under /usr/share, need to be handled manually
63 (cd $RPM_BUILD_ROOT && find . -name 'django*.mo') | %{__sed} -e 's|^.||' | %{__sed} -e \
64 's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \
65 >> %{name}.lang
66
67 %if 0%{?rhel} > 4 || 0%{?fedora} > 0
68 # build documentation
69 (cd docs && make html)
70 %endif
71
72 # install man pages
73 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
74 cp -p docs/man/* $RPM_BUILD_ROOT%{_mandir}/man1/
75
76 # Fix items in %{_bindir}
77 mv $RPM_BUILD_ROOT%{_bindir}/django-admin.py $RPM_BUILD_ROOT%{_bindir}/django-admin
78
79 # remove .po files
80 find $RPM_BUILD_ROOT -name "*.po" | xargs rm -f
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85
86 %files -f %{name}.lang
87 %defattr(-,root,root,-)
88 %doc AUTHORS LICENSE README
89 %{_bindir}/django-admin
90 %{_mandir}/man1/*
91 %attr(0755,root,root) %{python_sitelib}/django/conf/project_template/manage.py
92 %attr(0755,root,root) %{python_sitelib}/django/bin/profiling/gather_profile_stats.py
93 %attr(0755,root,root) %{python_sitelib}/django/bin/*-messages.py
94 %attr(0755,root,root) %{python_sitelib}/django/bin/daily_cleanup.py
95 %attr(0755,root,root) %{python_sitelib}/django/bin/django-admin.py
96 %{python_sitelib}/django/
97
98 # Leaving these since people may want to rebuild on lower dists
99 %if 0%{?fedora} >= 9
100 %{python_sitelib}/*.egg-info
101 %endif
102
103 %if 0%{?fedora} > 0 && 0%{?fedora} <= 9
104 %ghost %{_bindir}/django-admin.pyc
105 %ghost %{_bindir}/django-admin.pyo
106 %endif
107 # -----------------
108
109
110 %if 0%{?rhel} > 4 || 0%{?fedora} > 0
111 %files doc
112 %defattr(-,root,root,-)
113 %doc docs/_build/html/*
114 %endif
115
116
117 %changelog
118 * Wed Oct 21 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.1.1-2
119 - Removed po files per BZ#529188.
120
121 * Fri Oct 9 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.1.1-1
122 - Update to fix http://www.djangoproject.com/weblog/2009/oct/09/security/
123 - Django-ignore-pyo-bz-495046.patch no longer needed.
124
125 * Wed Aug 26 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.1-4
126 - EL-4 shouldn't get the sphinx docs.
127
128 * Wed Aug 26 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.1-3
129 - ghosting admin py* is now FC9 and under.
130
131 * Thu Aug 6 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.1-2
132 - Applied Daniel Mach's patch from bz#516016.
133
134 * Sat Aug 1 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.1-1
135 - Update for Django 1.1 release.
136 - Moved /usr/bin/django-admin.py to /usr/bin/django-admin
137 - sed macro is now being used
138 - Patch for bz#495046 applied.
139
140 * Wed Jul 29 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.0.3-6
141 - Attempted combined spec for F12/11/10 and EL5
142
143 * Wed Jul 29 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.0.3-4
144 - Older builds must ghost django-admin.py[c,o]
145
146 * Wed Jul 29 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.0.3-3
147 - Bump for tag issue.
148
149 * Wed Jul 29 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.0.3-2
150 - Fix changelog.
151
152 * Wed Jul 29 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.0.3-1
153 - Upgrade for http://www.djangoproject.com/weblog/2009/jul/28/security/
154
155 * Thu Mar 12 2009 Michel Salim <salimma@fedoraproject.org> - 1.0.2-3
156 - Build HTML documentation (bug #484070)
157 - No longer excluding *.py? in bindir, F11's Python does not optimizes these
158
159 * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
160 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
161
162 * Sun Dec 14 2008 Michel Salim <salimma@fedoraproject.org> - 1.0.2-1
163 - Update to 1.0.2
164
165 * Sat Nov 1 2008 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.0.1-0.1.beta1
166 - Update to 1.0.1_beta_1
167
168 * Sat Sep 6 2008 Michel Salim <salimma@fedoraproject.org> - 1.0-1
169 - Update to final 1.0 release
170
171 * Tue Sep 2 2008 Michel Salim <salimma@fedoraproject.org> - 1.0-0.1.rc1%{?dist}
172 - CSRF security update: bz#460966
173
174 * Wed Aug 27 2008 Michel Salim <salimma@fedoraproject.org> - 1.0-0.1.beta2
175 - Update to 1.0 beta2
176
177 * Sat Aug 23 2008 Michel Salim <salimma@fedoraproject.org> - 1.0-0.1.beta1
178 - Update to 1.0 beta1
179
180 * Mon May 19 2008 Michel Salim <salimma@fedoraproject.org> - 0.96.2-1
181 - XSS security update: CVE-2008-2302 (bz# 442757-60)
182
183 * Sat Apr 5 2008 Michel Salim <salimma@fedoraproject.org> - 0.96.1-2
184 - Package .egg-info file on Fedora >= 9
185
186 * Thu Nov 1 2007 Michel Salim <michel.sylvan@gmail.com> 0.96.1-1
187 - i18n security update: CVE-2007-5712, bz#357051
188
189 * Sat Mar 24 2007 Michel Salim <michel.salim@gmail.com> - 0.96-1
190 - New upstream version
191
192 * Sun Jan 21 2007 Michel Salim <michel.salim@gmail.com> - 0.95.1-1
193 - Upstream security updates:
194 http://www.djangoproject.com/weblog/2007/jan/21/0951/
195
196 * Sun Nov 12 2006 Michel Salim <michel.salim@gmail.com> - 0.95-1
197 - Initial package

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2