Browse Source

trac 0.11.6-2

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@2295 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 13 years ago
parent
commit
1e13799a83
1 changed files with 18 additions and 4 deletions
  1. 18 4
      t/trac/trac-vl.spec

+ 18 - 4
t/trac/trac-vl.spec

@@ -1,7 +1,6 @@
-## %define python_sitelib %(python -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(0)')
 %define name trac
 %define version 0.11.6
-%define release 1%{?_dist_release}
+%define release 2%{?_dist_release}
 %define japanize ja1
 
 Summary: A web-based software project management and bug/issue tracking system
@@ -18,7 +17,13 @@ URL: http://trac.edgewall.org/
 
 BuildArch: noarch
 Requires: python, python-genshi >= 0.5, python-setuptools >= 0.6b1
-#Requires: pysqlite
+%if %{?_dist_release} == "vl6"
+## pysqlite included in python-2.6
+Requires: python >= 2.6
+%else
+Requires: python
+Requires: pysqlite
+%endif
 BuildRequires: python-devel, python-genshi >= 0.5, python-setuptools >= 0.6b1
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
@@ -55,6 +60,7 @@ Trac の全てのアスペクトは、一つの目標のもとに設計されて
 %install
 rm -rf ${RPM_BUILD_ROOT}
 %{__python} setup.py install --root=${RPM_BUILD_ROOT}
+%{__mkdir } ${RPM_BUILD_ROOT}%{python_sitelib}/tracext
 
 ## deleting files
 %{__rm} -f contrib/trac-post-commit-hook.cmd
@@ -70,12 +76,20 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/*
 %{python_sitelib}/Trac-*.egg-info
 %{python_sitelib}/trac
+%dir %{python_sitelib}/tracext
 
 %changelog
+* Mon Mar 22 2010 IWAI, Masaharu <iwai@alib.jp> 0.11.6-2
+- update Requires
+  - update R: python >= 2.6 for VineSeed (vl6)
+  - add R: python, pysqlite for other version (cf. vl5)
+- add %%{python_sitelib}/tracext dir in %%files
+- fix 0.11.6-1 changelog: s/BR:/Requires:/
+
 * Wed Mar 17 2010 Shu KONNO <owa@bg.wakwak.com> 0.11.6-1
 - updated Trac to 0.11.6.ja1
 - rebuilt with python-2.6
-- dropt BR: pysqlite (included in python-2.6)
+- dropt Requires: pysqlite (included in python-2.6)
 
 * Sat Apr 25 2009 IWAI, Masaharu <iwai@alib.jp> 0.11.4-1
 - new upstream release