[521] | 1 | Summary: A high-level Python Web framework |
---|
| 2 | Summary(ja): Python の高度なウェブフレームワーク |
---|
| 3 | Name: python-django |
---|
[3769] | 4 | Version: 1.3 |
---|
[2258] | 5 | Release: 1%{?_dist_release} |
---|
[521] | 6 | Group: Development/Languages |
---|
| 7 | BuildArch: noarch |
---|
| 8 | License: BSD |
---|
| 9 | URL: http://www.djangoproject.com/ |
---|
| 10 | Source0: Django-%{version}.tar.gz |
---|
[1742] | 11 | Source1: simplejson-init.py |
---|
| 12 | Patch0: Django-hash-compat-13310.patch |
---|
[521] | 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[1742] | 14 | BuildRequires: python-devel |
---|
| 15 | BuildRequires: python-sphinx |
---|
| 16 | Requires: python-simplejson |
---|
[521] | 17 | Vendor: Project Vine |
---|
| 18 | Distribution: Vine Linux |
---|
[1742] | 19 | Packager: owa, munepi |
---|
[521] | 20 | |
---|
| 21 | %description |
---|
| 22 | Django is a high-level Python Web framework that encourages rapid |
---|
| 23 | development and a clean, pragmatic design. It focuses on automating as |
---|
| 24 | much as possible and adhering to the DRY (Don't Repeat Yourself) |
---|
| 25 | principle. |
---|
| 26 | |
---|
| 27 | %description -l ja |
---|
| 28 | Django はハイレベルな Python Web フレームワークであり、素早い開発と |
---|
| 29 | クリーンで実用的な設計を勧めています。Django は可能な限りの自動化と |
---|
| 30 | 無駄な繰返しを徹底的に排除することに注目しています。 |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | %package docs |
---|
| 34 | Summary: Documentation for Django |
---|
| 35 | Group: Documentation |
---|
| 36 | Requires: %{name} = %{version}-%{release} |
---|
| 37 | |
---|
| 38 | %description docs |
---|
| 39 | This package contains the documentation for the Django high-level |
---|
| 40 | Python Web framework. |
---|
| 41 | |
---|
[1742] | 42 | |
---|
[521] | 43 | %prep |
---|
| 44 | %setup -q -n Django-%{version} |
---|
[2258] | 45 | #%patch0 -p3 |
---|
[521] | 46 | |
---|
[1742] | 47 | # remove bundled simplejson |
---|
| 48 | cd django/utils/simplejson/ |
---|
| 49 | %__rm -rf * |
---|
| 50 | # and put the replacement stub in place |
---|
| 51 | %__cp -p %{SOURCE1} __init__.py |
---|
| 52 | |
---|
| 53 | |
---|
[521] | 54 | %build |
---|
| 55 | %{__python} setup.py build |
---|
| 56 | |
---|
[1742] | 57 | |
---|
[521] | 58 | %install |
---|
[1742] | 59 | %__rm -rf $RPM_BUILD_ROOT |
---|
[521] | 60 | %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT |
---|
| 61 | |
---|
| 62 | # Permission fixes |
---|
| 63 | pushd $RPM_BUILD_ROOT%{python_sitelib}/django |
---|
[1742] | 64 | chmod +x conf/project_template/manage.py* |
---|
| 65 | chmod +x contrib/admin/media/js/compress.py* |
---|
| 66 | chmod +x bin/profiling/gather_profile_stats.py* |
---|
[3769] | 67 | #chmod +x bin/compile-messages.py* |
---|
[1742] | 68 | chmod +x bin/daily_cleanup.py* |
---|
| 69 | chmod +x bin/django-admin.py* |
---|
[3769] | 70 | #chmod +x bin/make-messages.py* |
---|
[1742] | 71 | chmod +x bin/unique-messages.py* |
---|
[521] | 72 | popd |
---|
| 73 | |
---|
[1742] | 74 | # Fix items in %{_bindir} |
---|
| 75 | %__mv $RPM_BUILD_ROOT%{_bindir}/django-admin.py $RPM_BUILD_ROOT%{_bindir}/django-admin |
---|
| 76 | |
---|
| 77 | # install man pages |
---|
| 78 | %__mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/ |
---|
| 79 | %__cp -p docs/man/* $RPM_BUILD_ROOT%{_mandir}/man1/ |
---|
| 80 | |
---|
| 81 | # Handling locale files |
---|
| 82 | # This is adapted from the %%find_lang macro, which cannot be directly |
---|
| 83 | # used since Django locale files are not located in %%{_datadir} |
---|
| 84 | # |
---|
| 85 | # The rest of the packaging guideline still apply -- do not list |
---|
| 86 | # locale files by hand! |
---|
| 87 | %__rm -f %{name}.lang |
---|
| 88 | (cd $RPM_BUILD_ROOT && find . -name 'django*.mo') | %{__sed} -e 's|^.||' | %{__sed} -e \ |
---|
| 89 | 's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \ |
---|
| 90 | >> %{name}.lang |
---|
| 91 | find $RPM_BUILD_ROOT -name "*.po" | xargs %__rm -f |
---|
| 92 | |
---|
| 93 | |
---|
[521] | 94 | %clean |
---|
| 95 | rm -rf $RPM_BUILD_ROOT |
---|
| 96 | |
---|
[1742] | 97 | |
---|
| 98 | %files -f %{name}.lang |
---|
[521] | 99 | %defattr(-,root,root,-) |
---|
| 100 | %doc AUTHORS LICENSE README |
---|
[1742] | 101 | %{_bindir}/django-admin |
---|
| 102 | %{_mandir}/man1/* |
---|
| 103 | %{python_sitelib}/django/bin/*.py* |
---|
| 104 | %{python_sitelib}/django/bin/profiling/ |
---|
| 105 | # Include everything but the locale data ... |
---|
| 106 | %{python_sitelib}/django/db/ |
---|
| 107 | %{python_sitelib}/django/*.py* |
---|
| 108 | %{python_sitelib}/django/shortcuts/ |
---|
| 109 | %{python_sitelib}/django/utils/ |
---|
| 110 | %{python_sitelib}/django/dispatch/ |
---|
| 111 | %{python_sitelib}/django/template/ |
---|
| 112 | %{python_sitelib}/django/views/ |
---|
| 113 | %{python_sitelib}/django/contrib/ |
---|
| 114 | %{python_sitelib}/django/forms/ |
---|
| 115 | %{python_sitelib}/django/templatetags/ |
---|
| 116 | %{python_sitelib}/django/core/ |
---|
| 117 | %{python_sitelib}/django/http/ |
---|
| 118 | %{python_sitelib}/django/middleware/ |
---|
| 119 | %{python_sitelib}/django/test/ |
---|
| 120 | %{python_sitelib}/django/conf/*.py* |
---|
| 121 | %{python_sitelib}/django/conf/project_template/*.py* |
---|
| 122 | %{python_sitelib}/django/conf/app_template/ |
---|
| 123 | %{python_sitelib}/django/conf/urls/ |
---|
| 124 | %{python_sitelib}/django/conf/locale/*/*.py* |
---|
| 125 | %{python_sitelib}/django/conf/locale/*.py* |
---|
[521] | 126 | %{python_sitelib}/Django-%{version}-py%{pyver}.egg-info |
---|
| 127 | |
---|
[1742] | 128 | |
---|
[521] | 129 | %files docs |
---|
| 130 | %defattr(-,root,root,-) |
---|
| 131 | %doc docs/* |
---|
| 132 | |
---|
[1742] | 133 | |
---|
[521] | 134 | %changelog |
---|
[3769] | 135 | * Mon May 02 2011 Shu KONNO <owa@bg.wakwak.com> 1.3-1 |
---|
| 136 | - updated Django to 1.3 |
---|
| 137 | |
---|
[2697] | 138 | * Wed Feb 16 2011 Shu KONNO <owa@bg.wakwak.com> 1.2.5-1 |
---|
| 139 | - updated Django to 1.2.5 (include CVE-2011-0696, CVE-2011-0697) |
---|
| 140 | |
---|
[2258] | 141 | * Wed Dec 01 2010 Shu KONNO <owa@bg.wakwak.com> 1.2.3-1 |
---|
| 142 | - updated Django to 1.2.3 |
---|
| 143 | - dropt Django-hash-compat-13310.patch |
---|
| 144 | |
---|
[1742] | 145 | * Thu Sep 02 2010 Shu KONNO <owa@bg.wakwak.com> 1.2.1-2 |
---|
| 146 | - added simplejson-init.py: removed bundled simplejson, and put the __init__.py |
---|
| 147 | - added Django-hash-compat-13310.patch: http://code.djangoproject.com/changeset/13310 per BZ#601212 |
---|
| 148 | - added BR: python-devel python-sphinx |
---|
| 149 | - added RQ: python-simplejson |
---|
| 150 | - removed po files (per BZ#529188) |
---|
| 151 | - install man1 |
---|
| 152 | (merged from 'Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> - Django-1.2.1-1') |
---|
| 153 | |
---|
[1485] | 154 | * Sun Aug 01 2010 Shu KONNO <owa@bg.wakwak.com> 1.2.1-1 |
---|
| 155 | - updated Django to 1.2.1 |
---|
| 156 | |
---|
[521] | 157 | * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 1.1.1-2 |
---|
| 158 | - rebuild with python-2.6 |
---|
| 159 | |
---|
| 160 | * Sun Oct 18 2009 Shu KONNO <owa@bg.wakwak.com> 1.1.1-1 |
---|
| 161 | - updated Django to 1.1.1 |
---|
| 162 | |
---|
| 163 | * Fri Jul 31 2009 Shu KONNO <owa@bg.wakwak.com> 1.1-1 |
---|
| 164 | - updated Django to 1.1 |
---|
| 165 | - added japanese description |
---|
| 166 | |
---|
| 167 | * Fri Nov 28 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.2-1vl5 |
---|
| 168 | - updated Django to 1.0.2-final |
---|
| 169 | |
---|
| 170 | * Wed Oct 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.0-1vl5 |
---|
| 171 | - packaged new |
---|
| 172 | |
---|