Репозитории ALT
5.1: | 0.11.2-alt3 |
4.1: | 0.10.4-alt1.1 |
4.0: | 0.10.4-alt1 |
3.0: | 0.8.4-alt1 |
Группа :: Разработка/Прочее
Пакет: trac
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Summary: Integrated scm, wiki, issue tracker and project environment
Name: trac
Version: 0.11.2
Release: alt3
Source: http://ftp.edgewall.com/pub/trac/%name-%version.tar.gz
Source1: trac-0.9-alt-apache2.conf
Source3: trac-0.9.4-alt-nginx.cgi.conf
Source4: trac-0.9.4-alt-nginx.fcgi.conf
Source5: trac-0.9.4-alt-cherokee.cgi.conf
Source6: trac-0.9.4-alt-cherokee.fcgi.conf
Source7: trac-passwd
Source8: trac.init
Source9: trac.sysconfig
Source10: trac-restrict-env
Patch: trac-0.11.2-tracd-drop-privileges.patch
License: BSD
Group: Development/Other
Packager: Python Development Team <python at packages.altlinux.org>
Url: http://trac.edgewall.org/
BuildArch: noarch
PreReq: python = %__python_version
BuildPreReq: python-devel = %__python_version
BuildRequires(pre): python
# Provided by clearsilver-python
# Required by trac.cgi, etc.
%py_requires neo_cgi
# Provided by python-module-pysqlite2
# Required by sqlite db engine
%py_requires pysqlite2
BuildPreReq: rpm-build-python >= 0.28
BuildPreReq: %py_dependencies setuptools
BuildPreReq: rpm-macros-apache2
%description
Trac is a minimalistic web-based software project management and bug/issue
tracking system. It provides an interface to the Subversion revision control
systems, an integrated wiki, flexible issue tracking and convenient report
facilities.
%package contrib
Summary: Trac contribs
Group: Development/Other
Requires: %name = %version
%description contrib
This package contains trac contribs
%package mod_python
Summary: Trac mod_python web frontend
Group: Development/Other
Requires: %name = %version
Requires: apache2
%description mod_python
This package contains trac mod_python web frontend
%package -n python-module-trac-fcgi
Summary: Trac FastCGI web frontend
Group: Development/Other
Requires: %name = %version
# FastCGI server spawner, should be restarted on upgrade
Requires: trac-spawn-fcgi
%description -n python-module-trac-fcgi
This package contains trac FastCGI web frontend
%prep
%setup -q
%patch -p0
cp %SOURCE3 nginx-A.trac.cgi.conf
cp %SOURCE4 nginx-A.trac.fcgi.conf
cp %SOURCE5 cherokee-A.trac.cgi.conf
cp %SOURCE6 cherokee-A.trac.fcgi.conf
%build
%__python setup.py build
%install
%__python setup.py install --root=%buildroot --single-version-externally-managed --optimize=2 --record=INSTALLED_FILES
grep -v %_man1dir INSTALLED_FILES > INSTALLED_FILES.nomans
rm INSTALLED_FILES
mv INSTALLED_FILES.nomans INSTALLED_FILES
mkdir -p %buildroot%apache2_addonconfdir
sed -e 's, at DATADIR at ,%_datadir,g' \
-e 's, at AHTDOCSDIR at ,%apache2_htdocsdir,g' \
-e 's, at ACONFDIR at ,%apache2_confdir,g' \
-e 's, at LOCALSTATEDIR at ,%_localstatedir,g' \
%SOURCE1 > %buildroot%apache2_addonconfdir/A.%name.conf
install -d %buildroot%_localstatedir/%name %buildroot%_sysconfdir/%name
touch %buildroot%_sysconfdir/%name/passwd
mkdir -p %buildroot/%_bindir
install -m 755 %SOURCE7 %buildroot/%_bindir
install -m 755 %SOURCE10 %buildroot/%_bindir
mkdir -p %buildroot/%_initdir
install -m 755 %SOURCE8 %buildroot/%_initdir/%name
mkdir -p %buildroot/%_sysconfdir/sysconfig
install -m 644 %SOURCE9 %buildroot/%_sysconfdir/sysconfig/%name
%pre
%_sbindir/groupadd -r -f tracadmin ||:
%_sbindir/useradd -r -g tracadmin -d /var/lib/trac -s /dev/null trac \
2> /dev/null > /dev/null ||:
%post -n python-module-trac-fcgi
%post_service trac-spawn-fcgi
%preun -n python-module-trac-fcgi
%preun_service trac-spawn-fcgi
%post mod_python
/sbin/service httpd2 condreload ||:
%postun mod_python
/sbin/service httpd2 condreload ||:
%files -f INSTALLED_FILES
%doc ChangeLog README RELEASE
%doc AUTHORS INSTALL THANKS UPGRADE
# put htpasswd here
%attr(0750,root,tracadmin) %config(noreplace) %dir %_sysconfdir/%name
%attr(0660,root,tracadmin) %config(noreplace) %_sysconfdir/%name/passwd
# workaround for installed but not listed dirs:
%python_sitelibdir/%name
%exclude %python_sitelibdir/%name/web/modpython_frontend.*
%exclude %python_sitelibdir/%name/web/_fcgi.*
%exclude %python_sitelibdir/%name/web/fcgi_frontend.*
# empty dir for environments creation
%attr(2770,root,tracadmin) %dir %_localstatedir/%name
%_bindir/%name-passwd
%_bindir/%name-restrict-env
%_initdir/%name
%_sysconfdir/sysconfig/%name
%files contrib
%doc contrib
%files mod_python
%python_sitelibdir/%name/web/modpython_frontend.*
%config(noreplace) %apache2_addonconfdir/A.%name.conf
%files -n python-module-trac-fcgi
%python_sitelibdir/%name/web/fcgi_frontend.*
%python_sitelibdir/%name/web/_fcgi.*
%doc cgi-bin
%doc nginx-A.trac.cgi.conf nginx-A.trac.fcgi.conf
%doc cherokee-A.trac.cgi.conf cherokee-A.trac.fcgi.conf
%changelog
…
Полный changelog можно просмотреть здесь
Name: trac
Version: 0.11.2
Release: alt3
Source: http://ftp.edgewall.com/pub/trac/%name-%version.tar.gz
Source1: trac-0.9-alt-apache2.conf
Source3: trac-0.9.4-alt-nginx.cgi.conf
Source4: trac-0.9.4-alt-nginx.fcgi.conf
Source5: trac-0.9.4-alt-cherokee.cgi.conf
Source6: trac-0.9.4-alt-cherokee.fcgi.conf
Source7: trac-passwd
Source8: trac.init
Source9: trac.sysconfig
Source10: trac-restrict-env
Patch: trac-0.11.2-tracd-drop-privileges.patch
License: BSD
Group: Development/Other
Packager: Python Development Team <python at packages.altlinux.org>
Url: http://trac.edgewall.org/
BuildArch: noarch
PreReq: python = %__python_version
BuildPreReq: python-devel = %__python_version
BuildRequires(pre): python
# Provided by clearsilver-python
# Required by trac.cgi, etc.
%py_requires neo_cgi
# Provided by python-module-pysqlite2
# Required by sqlite db engine
%py_requires pysqlite2
BuildPreReq: rpm-build-python >= 0.28
BuildPreReq: %py_dependencies setuptools
BuildPreReq: rpm-macros-apache2
%description
Trac is a minimalistic web-based software project management and bug/issue
tracking system. It provides an interface to the Subversion revision control
systems, an integrated wiki, flexible issue tracking and convenient report
facilities.
%package contrib
Summary: Trac contribs
Group: Development/Other
Requires: %name = %version
%description contrib
This package contains trac contribs
%package mod_python
Summary: Trac mod_python web frontend
Group: Development/Other
Requires: %name = %version
Requires: apache2
%description mod_python
This package contains trac mod_python web frontend
%package -n python-module-trac-fcgi
Summary: Trac FastCGI web frontend
Group: Development/Other
Requires: %name = %version
# FastCGI server spawner, should be restarted on upgrade
Requires: trac-spawn-fcgi
%description -n python-module-trac-fcgi
This package contains trac FastCGI web frontend
%prep
%setup -q
%patch -p0
cp %SOURCE3 nginx-A.trac.cgi.conf
cp %SOURCE4 nginx-A.trac.fcgi.conf
cp %SOURCE5 cherokee-A.trac.cgi.conf
cp %SOURCE6 cherokee-A.trac.fcgi.conf
%build
%__python setup.py build
%install
%__python setup.py install --root=%buildroot --single-version-externally-managed --optimize=2 --record=INSTALLED_FILES
grep -v %_man1dir INSTALLED_FILES > INSTALLED_FILES.nomans
rm INSTALLED_FILES
mv INSTALLED_FILES.nomans INSTALLED_FILES
mkdir -p %buildroot%apache2_addonconfdir
sed -e 's, at DATADIR at ,%_datadir,g' \
-e 's, at AHTDOCSDIR at ,%apache2_htdocsdir,g' \
-e 's, at ACONFDIR at ,%apache2_confdir,g' \
-e 's, at LOCALSTATEDIR at ,%_localstatedir,g' \
%SOURCE1 > %buildroot%apache2_addonconfdir/A.%name.conf
install -d %buildroot%_localstatedir/%name %buildroot%_sysconfdir/%name
touch %buildroot%_sysconfdir/%name/passwd
mkdir -p %buildroot/%_bindir
install -m 755 %SOURCE7 %buildroot/%_bindir
install -m 755 %SOURCE10 %buildroot/%_bindir
mkdir -p %buildroot/%_initdir
install -m 755 %SOURCE8 %buildroot/%_initdir/%name
mkdir -p %buildroot/%_sysconfdir/sysconfig
install -m 644 %SOURCE9 %buildroot/%_sysconfdir/sysconfig/%name
%pre
%_sbindir/groupadd -r -f tracadmin ||:
%_sbindir/useradd -r -g tracadmin -d /var/lib/trac -s /dev/null trac \
2> /dev/null > /dev/null ||:
%post -n python-module-trac-fcgi
%post_service trac-spawn-fcgi
%preun -n python-module-trac-fcgi
%preun_service trac-spawn-fcgi
%post mod_python
/sbin/service httpd2 condreload ||:
%postun mod_python
/sbin/service httpd2 condreload ||:
%files -f INSTALLED_FILES
%doc ChangeLog README RELEASE
%doc AUTHORS INSTALL THANKS UPGRADE
# put htpasswd here
%attr(0750,root,tracadmin) %config(noreplace) %dir %_sysconfdir/%name
%attr(0660,root,tracadmin) %config(noreplace) %_sysconfdir/%name/passwd
# workaround for installed but not listed dirs:
%python_sitelibdir/%name
%exclude %python_sitelibdir/%name/web/modpython_frontend.*
%exclude %python_sitelibdir/%name/web/_fcgi.*
%exclude %python_sitelibdir/%name/web/fcgi_frontend.*
# empty dir for environments creation
%attr(2770,root,tracadmin) %dir %_localstatedir/%name
%_bindir/%name-passwd
%_bindir/%name-restrict-env
%_initdir/%name
%_sysconfdir/sysconfig/%name
%files contrib
%doc contrib
%files mod_python
%python_sitelibdir/%name/web/modpython_frontend.*
%config(noreplace) %apache2_addonconfdir/A.%name.conf
%files -n python-module-trac-fcgi
%python_sitelibdir/%name/web/fcgi_frontend.*
%python_sitelibdir/%name/web/_fcgi.*
%doc cgi-bin
%doc nginx-A.trac.cgi.conf nginx-A.trac.fcgi.conf
%doc cherokee-A.trac.cgi.conf cherokee-A.trac.fcgi.conf
%changelog
…
Полный changelog можно просмотреть здесь