Trac
- 必要条件
- Python, version >= 2.4.
- setuptools, version >= 0.6
- Genshi, version >= 0.6
- Optionally, Subversion, version >= 1.1.x and the Subversion SWIG Python bindings (not PySVN, that's something different).
- One of the following Python bindings, depending on the database used: pysqlite version 2.x for SQLite 3.x (is part of the standard library starting with Python 2.5)
- psycopg2 version 2.0.x for the PostgreSQL database MySQLdb, version 1.2.2 for the MySQL database
- A web server capable of executing CGI/FastCGI scripts, or Apache HTTPD with mod_python or mod_wsgi. (Trac also comes with a standalone server, tracd)
# yum install python-setuptools # yum install rpm-build # yum install python-devel # yum install sqlite-devel $ wget http://ftp.edgewall.com/pub/trac/Trac-0.12.1.tar.gz $ tar xzvf Trac-0.12.1.tar.gz $ cd Trac-0.12.1 $ ./contrib/rpm/makerpm $ cp build/bdist.linux-i686/rpm/SPECS/Trac.spec ~/rpm/SPECS/ $ cp build/bdist.linux-i686/rpm/SOURCES/Trac-0.12.1.tar.gz ~/rpm/SOURCES/ $ rpmbuild -ba ~/rpm/SPECS/Trac.spec $ cd ~/rpm/RPMS/noarch $ su -c "rpm -Uvh Trac-0.12.1-1.noarch.rpm" $ wget http://ftp.edgewall.com/pub/genshi/Genshi-0.6.tar.gz $ md5sum Genshi-0.6.tar.gz $ wget http://packages.sw.be/python-genshi/python-genshi-0.6-1.rf.src.rpm $ mkdir tmp $ cd tmp $ rpm2cpio ../python-genshi-0.6-1.rf.src.rpm | cpio -id $ md5sum ../Genshi-0.6.tar.gz 604e8b23b4697655d36a69c2d8ef7187 ../Genshi-0.6.tar.gz $ md5sum Genshi-0.6.tar.gz 604e8b23b4697655d36a69c2d8ef7187 Genshi-0.6.tar.gz $ cp Genshi-0.6.tar.gz ~/rpm/SOURCES/ $ rpmbuild -ba python-genshi.spec $ cd ~/rpm/RPMS/noarch/ $ su -c "rpm -Uvh python-genshi-0.6-1.noarch.rpm " $ wget http://packages.sw.be/python-sqlite2/python-sqlite2-2.3.3-1.rf.src.rpm rebuild $ su -c "rpm -Uvh python-sqlite2-2.3.3-1.rf.i386.rpm" $ mkdir testproject/ $ trac-admin testproject initenv $ tracd --port 8000 testproject/