Compare commits

...
Sign in to create a new pull request.

30 commits

Author SHA1 Message Date
Miro Hrončok
eda695c0fb Orphaned for 6+ weeks 2020-08-10 23:39:52 +02:00
Fedora Release Engineering
dab69fd2bc - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 13:41:31 +00:00
Fedora Release Engineering
b13df9a41a - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 03:07:39 +00:00
Fedora Release Engineering
86568c0a9b - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-27 02:57:49 +00:00
Fedora Release Engineering
b21653407b - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 11:15:42 +00:00
268b5391a6 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:54 +01:00
Fedora Release Engineering
0ec3d44ad2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 08:31:34 +00:00
Iryna Shcherbina
c8b60add24 Update Python 2 dependency declarations to new packaging standards 2018-02-09 23:45:14 +01:00
Fedora Release Engineering
befded5dab - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 20:29:08 +00:00
Fedora Release Engineering
67b1ba11bf - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 21:17:51 +00:00
Fedora Release Engineering
691f8d8dd5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 17:03:39 +00:00
Thomas Moschny
e591fe4bd7 Justify Requires(pre) tag (#1319229).
- Mark LICENSE as %license.
2016-11-09 18:04:58 +01:00
Filipe Rosset
d1fde84f7f Rebuilt against new highlight, spec cleanup 2016-11-06 02:02:13 -02:00
Filipe Rosset
d689298931 Rebuilt against new highlight, spec cleanup 2016-11-06 01:38:55 -02:00
Fedora Release Engineering
0c4eadee77 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages 2016-07-19 13:06:40 +00:00
Fedora Release Engineering
9c13119e1c - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-05 02:41:06 +00:00
Dennis Gilmore
994fb7e0fd - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-19 01:59:08 +00:00
Dennis Gilmore
361eac728f - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 22:38:05 -05:00
Dennis Gilmore
6d0cb32b70 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-04 01:10:12 -05:00
Dennis Gilmore
18508a320d - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 20:46:17 -06:00
Dennis Gilmore
b4a0ff5080 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-21 21:40:42 -05:00
Dennis Gilmore
668002424b - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-14 01:53:39 -06:00
Dennis Gilmore
591e4dff11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-07 19:26:49 -06:00
Thomas Moschny
7c9efefbcc - Update to latest head, to support monotone >= 0.46.
- Minor specfile updates.
2010-08-06 03:46:04 +02:00
Fedora Release Engineering
95cb827905 dist-git conversion 2010-07-29 14:58:28 +00:00
dmalcolm
c61c1c02de - Rebuilt for
https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2010-07-22 07:09:45 +00:00
Bill Nottingham
72be762035 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 22:43:21 +00:00
Jesse Keating
c902f84d4f - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-27 06:52:12 +00:00
Jesse Keating
6fbea39155 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-26 00:19:25 +00:00
Ignacio Vazquez-Abrams
df57aceb91 Rebuild for Python 2.6 2008-11-29 17:35:07 +00:00
7 changed files with 1 additions and 178 deletions

View file

@ -1 +0,0 @@
viewmtn-0.10.tgz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: viewmtn
# $Id$
NAME := viewmtn
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

1
dead.package Normal file
View file

@ -0,0 +1 @@
Orphaned for 6+ weeks

View file

@ -1 +0,0 @@
1758f8b6340cca7d191b21fc25daf283 viewmtn-0.10.tgz

View file

@ -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>

View file

@ -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')))

View file

@ -1,118 +0,0 @@
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: viewmtn
Version: 0.10
Release: 1%{?dist}
Summary: Web interface for Monotone version control system
Group: Development/Tools
License: GPLv2+
URL: http://grahame.angrygoats.net/moinmoin/ViewMTN
Source0: http://grahame.angrygoats.net/source/%{name}/%{name}-%{version}.tgz
Source1: viewmtn.conf.httpd
Source2: viewmtn.conf.py
BuildArch: noarch
BuildRequires: python-devel
Requires: python-cheetah
Requires(pre): httpd
Requires: monotone >= 0.35
Requires: mod_wsgi
Requires: gnome-icon-theme
Requires: shared-mime-info
Requires: highlight
Requires: graphviz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%define mydata %{_datadir}/viewmtn
%define mypy %{python_sitelib}/viewmtn
%define 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
%setup -q
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 $RPM_BUILD_ROOT
%{__install} -d -m 755 $RPM_BUILD_ROOT%{mypy}/fdo
%{__install} -d -m 755 $RPM_BUILD_ROOT%{mypy}/web
%{__install} -d -m 755 $RPM_BUILD_ROOT%{mydata}/templates
%{__install} -d -m 755 $RPM_BUILD_ROOT%{mydata}/MochiKit
%{__install} -d -m 755 $RPM_BUILD_ROOT%{mygraph}
%{__install} -Dp -m 0644 viewmtn.conf \
$RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d/viewmtn.conf
%{__install} -Dp -m 644 -t $RPM_BUILD_ROOT%{mypy} *.py
%{__install} -Dp -m 644 -t $RPM_BUILD_ROOT%{mypy}/fdo fdo/*.py
%{__install} -Dp -m 644 -t $RPM_BUILD_ROOT%{mypy}/web web/*.py
%{__install} -Dp -m 644 -t $RPM_BUILD_ROOT%{mydata}/templates templates/*.html
%{__install} -Dp -m 644 -t $RPM_BUILD_ROOT%{mydata} \
static/*.gif static/*.css static/*.js
%{__install} -Dp -m 644 -t $RPM_BUILD_ROOT%{mydata}/MochiKit \
static/MochiKit/*.js
%{__install} -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
%{__install} -Dp -m 0644 viewmtn.conf.py \
$RPM_BUILD_ROOT%{_sysconfdir}/%{name}/conf.py
mypy_rel=`echo %{mypy} | sed 's,/[^/]*,../,g;s,/$,,'`
%{__ln_s} -nf $mypy_rel%{_sysconfdir}/%{name}/conf.py \
$RPM_BUILD_ROOT%{mypy}/user_config.py
# Pacify overeager rpmlint #! checks.
find $RPM_BUILD_ROOT%{mypy} -type f -name '*.py' -print0 |
xargs -0 sed -i '1{/^#!/d;}'
%clean
rm -rf $RPM_BUILD_ROOT
%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 Mar 23 2008 Roland McGrath <roland@redhat.com> - 0.10-1
- New package. Thanks to Thomas Moschny for packaging assistance.