]> git.pld-linux.org Git - packages/trac.git/blame - trac.spec
up to 1.0.12 (July 4, 2016)
[packages/trac.git] / trac.spec
CommitLineData
0f20e17a 1# TODO
9e24368f 2# - sync pl
dbb1fd84 3# - localization fix in files
0f20e17a
ER
4# - 21:07:41 jtiai> set htdocs_location in trac ini to for example /trac-htdocs/
5Summary: Integrated SCM, Wiki, Issue tracker and project environment
47a3b94a 6Summary(pl.UTF-8): Zintegrowane scm, wiki, system śledzenia problemów i środowisko projektowe
be2fe1cb 7Name: trac
07fac6c0 8# 1.1.x line is devel
d634b0c9
ER
9# release notes: https://trac.edgewall.org/wiki/TracDev/ReleaseNotes/1.0#MaintenanceRelease
10Version: 1.0.12
3a3f3272 11Release: 1
912a70d9 12License: BSD-like
be2fe1cb 13Group: Applications/WWW
9e24368f 14Source0: http://download.edgewall.org/trac/Trac-%{version}.tar.gz
d634b0c9 15# Source0-md5: 941e333b0c0c81d5c4f4e086174a26e7
37007b41 16Source1: %{name}-apache.conf
1c5d42d5 17Source2: %{name}-lighttpd.conf
0f20e17a 18Source4: %{name}.ini
4130e9e1 19Source5: %{name}-enableplugin.py
4f32014a 20Source6: %{name}-upgrade.py
85f76536 21Patch0: %{name}-root2http.patch
0f20e17a 22Patch1: %{name}-defaults.patch
4f32014a 23Patch2: inherit-global-%{name}.ini.patch
4e0337ef 24Patch3: silvercity-javascript-mimetypes.patch
946c1fc2 25Patch4: pyc.patch
17673b57 26URL: http://trac.edgewall.org/
6a22b1f6
ER
27BuildRequires: python >= 1:2.5
28BuildRequires: python-babel >= 0.9.6
abda2260 29BuildRequires: python-devel >= 1:2.1
6a22b1f6 30BuildRequires: python-genshi >= 0.6
06a9df01 31BuildRequires: python-setuptools
1942426d 32BuildRequires: rpm-pythonprov
3a3f3272 33BuildRequires: rpmbuild(macros) >= 1.713
0f20e17a 34BuildRequires: sed >= 4.0
402a82a9 35#Requires: apache(mod_env) || lighttpd-mod_fastcgi
513bfdfe 36Requires: group(http)
6a22b1f6 37Requires: jquery >= 1.4
ad92d51e 38Requires: python-clearsilver >= 0.9.3
0e6aff62 39Requires: python-trac = %{version}-%{release}
ee41bc55 40Requires: webapps
79192d6f 41Requires: webserver(access)
1c5d42d5 42Requires: webserver(alias)
6fb233a5 43Requires: webserver(cgi)
402a82a9
ER
44Requires: webserver(mime)
45Requires: webserver(rewrite)
06a9df01 46Suggests: webserver(auth)
6fb233a5
ZU
47# TODO
48# If apache is the webserver, apache-mod_python is required! What can do?
2448b4bd 49#Suggests: apache-mod_python >= 3.1.3
9e24368f 50Suggests: git-core
ca39209f 51#Suggests: lighttpd-mod_fastcgi
0f20e17a 52#Suggests: python-textile >= 2.0
9e24368f 53Obsoletes: trac-plugin-git
0f20e17a 54Obsoletes: trac-plugin-webadmin
be2fe1cb
ER
55BuildArch: noarch
56BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57
0f20e17a 58%define _appdir %{_datadir}/%{name}
ee41bc55
ER
59%define _webapps /etc/webapps
60%define _webapp %{name}
61%define _sysconfdir %{_webapps}/%{_webapp}
be2fe1cb
ER
62
63%description
9e24368f
ER
64Trac is an enhanced wiki and issue tracking system for software
65development projects. Trac uses a minimalistic approach to web-based
66software project management.
67
68It provides an interface to Subversion (or other version control
69systems), an integrated Wiki and convenient reporting facilities.
be2fe1cb 70
f440bb42
JR
71%description -l pl.UTF-8
72Trac to minimalistyczny, oparty na WWW zarządca projektów i system
73śledzenia błędów/problemów. Dostarcza interfejs do systemu kontroli
74wersji Subversion, zintegrowane wiki, elastyczne śledzenie problemów i
75wygodne ułatwienia do raportowania.
ad92d51e 76
0e6aff62
ER
77%package -n python-trac
78Summary: Trac Python modules
79Group: Development/Languages/Python
ffe7050a
CM
80Requires: python >= 1:2.4
81Requires: python-genshi >= 0.6
06a9df01
ER
82# python-setuptools for pkg_resources module
83Requires: python-setuptools
00923156 84Requires: python-sqlite >= 2.5.5
3e2c8d46 85Requires: python-subversion >= 1.2.0
8b1266ff 86Suggests: python-babel >= 0.9.5
ffe7050a
CM
87Suggests: python-docutils >= 0.6
88Suggests: python-pygments >= 0.6
8b1266ff
CM
89Suggests: python-pytz
90Conflicts: trac < 0.11.7-3
0e6aff62
ER
91
92%description -n python-trac
93Trac Python modules.
94
be2fe1cb 95%prep
0f20e17a 96%setup -q -n Trac-%{version}
85f76536 97%patch0 -p1
0f20e17a 98%patch1 -p1
c64f2e3f 99%patch2 -p1
4e0337ef 100%patch3 -p1
946c1fc2 101%patch4 -p1
be2fe1cb 102
317f2b10 103# using system jquery package
6a22b1f6 104%{__rm} trac/htdocs/js/jquery.js
317f2b10 105
3e2c8d46 106%build
3a3f3272 107%py_build
3e2c8d46 108
be2fe1cb
ER
109%install
110rm -rf $RPM_BUILD_ROOT
4f32014a 111install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},/var/lib/%{name},%{_datadir}/%{name}/{plugins,templates}}
3a3f3272 112%py_install
be2fe1cb 113
6a22b1f6
ER
114cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
115cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
116cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
4130e9e1
ER
117
118# utility script to enable extra plugins
4f32014a
ER
119install -p %{SOURCE5} $RPM_BUILD_ROOT%{_sbindir}/%{name}-enableplugin
120# handle upgrades
121install -p %{SOURCE6} $RPM_BUILD_ROOT%{_sbindir}/%{name}-upgrade
0f20e17a
ER
122
123# keep paths from 0.10 install, we want fixed paths so we do not have to update
124# webserver config each time with the upgrade.
125install -d $RPM_BUILD_ROOT%{_appdir}/cgi-bin
126mv $RPM_BUILD_ROOT{%{py_sitescriptdir}/trac,%{_appdir}}/htdocs
a3457cf4 127
17673b57
ER
128rm $RPM_BUILD_ROOT%{_appdir}/htdocs/README
129
6a22b1f6 130install -p contrib/cgi-bin/trac.* $RPM_BUILD_ROOT%{_appdir}/cgi-bin
0f20e17a 131
6a22b1f6 132cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/trac.ini
37007b41 133> $RPM_BUILD_ROOT%{_sysconfdir}/htpasswd
be2fe1cb 134
049e4193 135# remove .py files, leave just compiled ones.
0f20e17a 136%py_postclean
049e4193 137
dbb1fd84 138# we don't need these runtime
dbb1fd84
ER
139rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/trac/tests
140
88b09893
ER
141# collect lang files
142echo "%dir %{_appdir}/htdocs/js/messages" > %{name}.lang
143for a in $RPM_BUILD_ROOT%{_appdir}/htdocs/js/messages/*.js; do
144 f=${a##*/}
145 l=${f%.js}
146 echo "%lang($l) ${a#$RPM_BUILD_ROOT}"
147done >> %{name}.lang
148
6a22b1f6 149# TODO: move to %{_localedir} as trac.mo catalog
88b09893 150echo "%dir %{py_sitescriptdir}/trac/locale" >> %{name}.lang
6a22b1f6 151for a in $RPM_BUILD_ROOT%{py_sitescriptdir}/trac/locale/*/LC_MESSAGES; do
88b09893
ER
152 d=${a%%/LC_MESSAGES*}
153 l=${d##*/}
154 echo "%lang($l) ${d#$RPM_BUILD_ROOT}"
155done >> %{name}.lang
156
be2fe1cb
ER
157%clean
158rm -rf $RPM_BUILD_ROOT
159
0d28f3b0 160%triggerin -- apache1 < 1.3.37-3, apache1-base
ee41bc55 161%webapp_register apache %{_webapp}
da452a1b 162
0d28f3b0 163%triggerun -- apache1 < 1.3.37-3, apache1-base
ee41bc55 164%webapp_unregister apache %{_webapp}
da452a1b 165
b34b3cd2 166%triggerin -- apache < 2.2.0, apache-base
ee41bc55 167%webapp_register httpd %{_webapp}
37007b41 168
b34b3cd2 169%triggerun -- apache < 2.2.0, apache-base
ee41bc55 170%webapp_unregister httpd %{_webapp}
da452a1b 171
1c5d42d5
ER
172%triggerin -- lighttpd
173%webapp_register lighttpd %{_webapp}
174
175%triggerun -- lighttpd
176%webapp_unregister lighttpd %{_webapp}
177
da452a1b 178%post
37007b41 179if [ "$1" = 1 ]; then
940b9b89 180%banner %{name} -e <<EOF
37007b41
ER
181
182To create new trac environment run as root:
183# trac-admin /var/lib/trac/project initenv
184and chown -R it to webserver user (http).
be2fe1cb 185
37007b41
ER
186EOF
187#'
be2fe1cb 188
37007b41
ER
189# NOTE(s)
190#- we made the parent directory (/var/lib/trac) g+s, but db/* files
191# needed to be really writable for web user, so better suggest
192# chown -R than chmod single file(s)?
193
194fi
195
88b09893 196%files -f %{name}.lang
be2fe1cb 197%defattr(644,root,root,755)
c29d4731 198%doc AUTHORS ChangeLog INSTALL README THANKS UPGRADE
0e6aff62 199%doc contrib
ee41bc55 200%dir %attr(750,root,http) %{_sysconfdir}
37007b41 201%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
ee41bc55 202%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
1c5d42d5 203%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
37007b41 204%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/htpasswd
0f20e17a 205%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/trac.ini
ee41bc55 206
4f32014a
ER
207%attr(755,root,root) %{_sbindir}/trac-enableplugin
208%attr(755,root,root) %{_sbindir}/trac-upgrade
0f20e17a 209%attr(755,root,root) %{_bindir}/tracd
be2fe1cb 210
0f20e17a 211#%{_mandir}/man1/trac*.1*
37007b41 212
0f20e17a
ER
213%dir %{_appdir}
214%dir %{_appdir}/cgi-bin
a3457cf4
ER
215%attr(755,root,root) %{_appdir}/cgi-bin/trac.cgi
216%attr(755,root,root) %{_appdir}/cgi-bin/trac.fcgi
88b09893 217%dir %{_appdir}/htdocs
17673b57
ER
218%dir %{_appdir}/plugins
219%dir %{_appdir}/templates
88b09893
ER
220%{_appdir}/htdocs/*.gif
221%{_appdir}/htdocs/*.ico
222%{_appdir}/htdocs/*.png
223%{_appdir}/htdocs/css
224%{_appdir}/htdocs/guide
225
226%dir %{_appdir}/htdocs/js
227%{_appdir}/htdocs/js/*.js
37007b41 228
c64f2e3f
ER
229# keep upgrade data in main pkg only
230%{py_sitescriptdir}/trac/upgrades
231
0f20e17a
ER
232# project data is stored there
233%attr(2770,root,http) %dir /var/lib/trac
0e6aff62
ER
234
235%files -n python-trac
236%defattr(644,root,root,755)
ac34825c 237%attr(755,root,root) %{_bindir}/trac-admin
dbb1fd84 238
ac34825c 239%dir %{py_sitescriptdir}/%{name}
dbb1fd84
ER
240%{py_sitescriptdir}/trac/*.py[co]
241%dir %{py_sitescriptdir}/trac/locale
242%{py_sitescriptdir}/trac/admin
243%{py_sitescriptdir}/trac/db
244%{py_sitescriptdir}/trac/mimeview
245%{py_sitescriptdir}/trac/prefs
246%{py_sitescriptdir}/trac/search
247%{py_sitescriptdir}/trac/templates
248%{py_sitescriptdir}/trac/ticket
249%{py_sitescriptdir}/trac/timeline
250%{py_sitescriptdir}/trac/util
251%{py_sitescriptdir}/trac/versioncontrol
252%{py_sitescriptdir}/trac/web
253%{py_sitescriptdir}/trac/wiki
254
e7a45985 255%{py_sitescriptdir}/%{name}opt
0e6aff62 256%{py_sitescriptdir}/Trac-*.egg-info
This page took 0.120646 seconds and 4 git commands to generate.