Compare commits
18 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eda695c0fb | ||
|
|
dab69fd2bc | ||
|
|
b13df9a41a | ||
|
|
86568c0a9b | ||
|
|
b21653407b | ||
| 268b5391a6 | |||
|
|
0ec3d44ad2 | ||
|
|
c8b60add24 | ||
|
|
befded5dab | ||
|
|
67b1ba11bf | ||
|
|
691f8d8dd5 | ||
|
|
e591fe4bd7 | ||
|
|
d1fde84f7f | ||
|
|
d689298931 | ||
|
|
0c4eadee77 | ||
|
|
9c13119e1c | ||
|
|
994fb7e0fd | ||
|
|
361eac728f |
6 changed files with 1 additions and 205 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +0,0 @@
|
|||
viewmtn-0.10.tgz
|
||||
viewmtn-0030ad67.tar.bz2
|
||||
1
dead.package
Normal file
1
dead.package
Normal file
|
|
@ -0,0 +1 @@
|
|||
Orphaned for 6+ weeks
|
||||
1
sources
1
sources
|
|
@ -1 +0,0 @@
|
|||
2589cdb7a7e3630a3022f1d3c01ca019 viewmtn-0030ad67.tar.bz2
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
Alias /viewmtn __python_sitelib__/viewmtn/__init__.py
|
||||
Alias /viewmtn-static/ __datadir__/viewmtn/
|
||||
|
||||
<Directory __python_sitelib__/viewmtn>
|
||||
<Files __init__.py>
|
||||
SetHandler wsgi-script
|
||||
Options +ExecCGI
|
||||
</Files>
|
||||
</Directory>
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
#
|
||||
# See __python_sitelib__/viewmtn/config.py,
|
||||
# which imports this file.
|
||||
# You can override any of the settings in that file here to customize.
|
||||
#
|
||||
# For viewmtn to work at all, it must have a definition for dbfile or dbfiles.
|
||||
# These can be a simple constants configured here, or Python code here
|
||||
# can set them dynamically.
|
||||
#
|
||||
|
||||
import os.path
|
||||
import glob
|
||||
|
||||
def _flatten_tuples(l):
|
||||
return reduce(tuple.__add__, l, ())
|
||||
|
||||
def _dbfile_tuple(file):
|
||||
dir = os.path.dirname(file)
|
||||
name = os.path.basename(dir)
|
||||
description = None
|
||||
try:
|
||||
description = open(os.path.join(dir, 'description')).read()
|
||||
except IOError:
|
||||
pass
|
||||
return (name, file, description)
|
||||
|
||||
def dbfiles():
|
||||
return _flatten_tuples(map(_dbfile_tuple, glob.glob('/srv/mtn/*/db.mtn')))
|
||||
165
viewmtn.spec
165
viewmtn.spec
|
|
@ -1,165 +0,0 @@
|
|||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
|
||||
%global mtn_snapshot 1
|
||||
%global mtn_rev 0030ad67c4daf3d38193f558c48474ddbcf19d1a
|
||||
%global mtn_date 20100308
|
||||
|
||||
%if 0%{?mtn_snapshot}
|
||||
%global mtn_short %(echo %{mtn_rev} | cut -c-8)
|
||||
%endif
|
||||
|
||||
Name: viewmtn
|
||||
Version: 0.10
|
||||
Release: 11%{?mtn_short:.%{mtn_date}mtn%{mtn_short}}%{?dist}
|
||||
Summary: Web interface for Monotone version control system
|
||||
Group: Development/Tools
|
||||
License: GPLv2+
|
||||
URL: http://viewmtn.1erlei.de/
|
||||
%if 0%{?mtn_snapshot}
|
||||
# wget http://mtn-view.1erlei.de/revision/tar/%%{mtn_rev} -O- |
|
||||
# bzip2 -c > %%{name}-%%{mtn_short}.tar.bz2
|
||||
Source0: %{name}-%{mtn_short}.tar.bz2
|
||||
%else
|
||||
Source0: http://viewmtn.1erlei.de/downloads/%{name}-%{version}.tgz
|
||||
%endif
|
||||
Source1: viewmtn.conf.httpd
|
||||
Source2: viewmtn.conf.py
|
||||
BuildArch: noarch
|
||||
BuildRequires: python-devel
|
||||
Requires: python-cheetah
|
||||
Requires(pre): httpd
|
||||
Requires: monotone >= 0.46
|
||||
Requires: mod_wsgi
|
||||
Requires: gnome-icon-theme
|
||||
Requires: shared-mime-info
|
||||
Requires: highlight
|
||||
Requires: graphviz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%global mydata %{_datadir}/viewmtn
|
||||
%global mypy %{python_sitelib}/viewmtn
|
||||
%global mygraph %{_localstatedir}/cache/viewmtn-graph
|
||||
|
||||
|
||||
%description
|
||||
ViewMTN is a web interface to the Monotone distributed version
|
||||
control system. It aims to provide a convenient and useful web
|
||||
interface to Monotone. If you've used interfaces to other version
|
||||
control systems, ViewMTN will be immediately familiar.
|
||||
|
||||
|
||||
%prep
|
||||
%if 0%{?mtn_snapshot}
|
||||
%setup -q -n %{mtn_rev}
|
||||
%else
|
||||
%setup -q
|
||||
%endif
|
||||
|
||||
cat > __init__.py <<\EOF
|
||||
from viewmtn import assemble_urls, web
|
||||
urls, fvars = assemble_urls()
|
||||
application = web.wsgifunc(web.webpyfunc(urls, fvars))
|
||||
EOF
|
||||
|
||||
|
||||
%build
|
||||
sed -e s,__datadir__,%{_datadir}, \
|
||||
-e s,__python_sitelib__,%{python_sitelib}, %{SOURCE1} > viewmtn.conf
|
||||
sed -e s,__datadir__,%{_datadir}, \
|
||||
-e s,__python_sitelib__,%{python_sitelib}, %{SOURCE2} > viewmtn.conf.py
|
||||
sed -e s,/usr/bin,%{_bindir},g \
|
||||
-e '/^dbfile/s,= .*$,'"= '%{mydb}',"\
|
||||
-e '/^dynamic_uri_path/s,= .*$,'"= '/viewmtn/'," \
|
||||
-e '/^static_uri_path/s,= .*$,'"= '/viewmtn-static/'," \
|
||||
-e '/^templates_directory/s,= .*$,'"= '%{mydata}/templates/'," \
|
||||
-e '/viewmtn-graph/s|: .*$|'": '%{mygraph}/',|" \
|
||||
-e '/^running_under_apache2/s/$/ # not relevant to mod_wsgi setup/' \
|
||||
config.py.example > config.py
|
||||
|
||||
cat >> config.py <<\EOF
|
||||
|
||||
# Get the local configuration linked from %%{_sysconfdir}/.
|
||||
from user_config import *
|
||||
EOF
|
||||
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
install -d -m 755 %{buildroot}%{mypy}/fdo
|
||||
install -d -m 755 %{buildroot}%{mypy}/web
|
||||
install -d -m 755 %{buildroot}%{mydata}/templates
|
||||
install -d -m 755 %{buildroot}%{mydata}/MochiKit
|
||||
install -d -m 755 %{buildroot}%{mygraph}
|
||||
install -Dp -m 0644 viewmtn.conf \
|
||||
%{buildroot}/%{_sysconfdir}/httpd/conf.d/viewmtn.conf
|
||||
install -Dp -m 644 -t %{buildroot}%{mypy} *.py
|
||||
install -Dp -m 644 -t %{buildroot}%{mypy}/fdo fdo/*.py
|
||||
install -Dp -m 644 -t %{buildroot}%{mypy}/web web/*.py
|
||||
install -Dp -m 644 -t %{buildroot}%{mydata}/templates templates/*.html
|
||||
install -Dp -m 644 -t %{buildroot}%{mydata} \
|
||||
static/*.gif static/*.css static/*.js
|
||||
install -Dp -m 644 -t %{buildroot}%{mydata}/MochiKit \
|
||||
static/MochiKit/*.js
|
||||
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
|
||||
install -Dp -m 0644 viewmtn.conf.py \
|
||||
%{buildroot}%{_sysconfdir}/%{name}/conf.py
|
||||
|
||||
mypy_rel=`echo %{mypy} | sed 's,/[^/]*,../,g;s,/$,,'`
|
||||
ln -snf $mypy_rel%{_sysconfdir}/%{name}/conf.py \
|
||||
%{buildroot}%{mypy}/user_config.py
|
||||
|
||||
# Pacify overeager rpmlint #! checks.
|
||||
find %{buildroot}%{mypy} -type f -name '*.py' -print0 |
|
||||
xargs -0 sed -i '1{/^#!/d;}'
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README AUTHORS LICENSE ChangeLog TODO INSTALL
|
||||
%{mypy}
|
||||
%{mydata}
|
||||
%dir %attr(0755,apache,apache) %{mygraph}
|
||||
%config(noreplace) %{_sysconfdir}/httpd/conf.d/viewmtn.conf
|
||||
%dir %{_sysconfdir}/%{name}
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/conf.py*
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-11.20100308mtn0030ad67
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-10.20100308mtn0030ad67
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-9.20100308mtn0030ad67
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-8.20100308mtn0030ad67
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-7.20100308mtn0030ad67
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Fri Aug 6 2010 Thomas Moschny <thomas.moschny@gmx.de> - 0.10-6.20100308mtn0030ad67
|
||||
- Update to latest head, to support monotone >= 0.46.
|
||||
- Minor specfile updates.
|
||||
|
||||
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.10-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
||||
|
||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10-2
|
||||
- Rebuild for Python 2.6
|
||||
|
||||
* Sun Mar 23 2008 Roland McGrath <roland@redhat.com> - 0.10-1
|
||||
- New package. Thanks to Thomas Moschny for packaging assistance.
|
||||
Loading…
Add table
Add a link
Reference in a new issue