Compare commits

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

46 commits

Author SHA1 Message Date
Bojan Smojver
88fc2ab310 Python 2 is being removed, so retire this package. 2019-08-09 20:20:26 +10:00
Fedora Release Engineering
bdf40fbfa0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-27 02:58:11 +00:00
Fedora Release Engineering
56a8333f0e - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 11:16:01 +00:00
2807372af1 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:54 +01:00
Bojan Smojver
bf3b59b05c Specify the -p1 option for patching. 2018-09-11 07:27:15 +10:00
Bojan Smojver
cf1e462fcc Bump up the release number, create changelog. 2018-09-11 07:24:03 +10:00
Bojan Smojver
67a6ccce98 Explicitly change shebang lines to use python2. 2018-09-11 07:20:47 +10:00
Bojan Smojver
748748d7e2 Fix more paths, bump up release number. 2018-07-21 23:29:11 +10:00
Bojan Smojver
5c39c0a9b7 Use correct python2 macros and binaries. 2018-07-21 23:20:37 +10:00
Fedora Release Engineering
393e392b7c - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 08:31:47 +00:00
Jason Tibbitts
c8eccfb0b7 Remove needless use of %defattr 2018-07-10 01:42:42 -05:00
Iryna Shcherbina
55947540cf Update Python 2 dependency declarations to new packaging standards 2018-02-14 17:25:09 +01:00
9e1c638b71
Remove %clean section
None of currently supported distributions need that.
Last one was EL5 which is EOL for a while.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-14 09:13:55 +01:00
8607c23b29 Remove BuildRoot definition
None of currently supported distributions need that.
It was needed last for EL5 which is EOL now

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-14 00:47:41 +01:00
Fedora Release Engineering
f91956307d - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 20:29:32 +00:00
Fedora Release Engineering
036d60986c - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 21:18:05 +00:00
Petr Písař
88285d63d0 perl dependency renamed to perl-interpreter <https://fedoraproject.org/wiki/Changes/perl_Package_to_Install_Core_Modules> 2017-07-12 14:47:08 +02:00
Fedora Release Engineering
4c87fa2982 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 17:03:58 +00:00
Bojan Smojver
ff7db20da7 Change LICENSE.html to LICENSE. 2017-01-31 07:32:27 +11:00
Bojan Smojver
62b0486cd0 Bump up to 1.1.26. 2017-01-31 07:10:27 +11:00
Bojan Smojver
c2ca9ec722 Add perl to build requirements. 2016-07-20 17:09:16 +10:00
Fedora Release Engineering
5dee3af492 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages 2016-07-19 13:06:51 +00:00
Fedora Release Engineering
bf086ca325 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-05 02:41:27 +00:00
Bojan Smojver
3abf1f1bc9 Fix changelog date. 2015-10-06 08:06:53 +11:00
Bojan Smojver
28ecc3412c Bump up to 1.1.24. 2015-10-06 08:05:33 +11:00
Dennis Gilmore
cbc348f456 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-19 01:59:30 +00:00
Bojan Smojver
4f9be4658a Bump up to 1.1.23. 2014-11-06 07:33:25 +11:00
Dennis Gilmore
bc2d4a240d - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 22:38:54 -05:00
Bojan Smojver
cad42a7819 Bump up to 1.1.22. 2014-01-15 08:41:58 +11:00
Bojan Smojver
7fc3b8cc6e Bump up to 1.1.21. 2013-09-14 18:08:15 +10:00
Dennis Gilmore
eae6a943c4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-04 01:10:54 -05:00
Bojan Smojver
64701c6113 Bump up to 1.1.20. 2013-04-25 07:26:27 +10:00
Bojan Smojver
462af714eb Bump up to 1.1.19. 2013-04-23 08:36:57 +10:00
Bojan Smojver
2e1cffe4f4 Bump up to 1.1.18. 2013-03-01 11:31:59 +11:00
Dennis Gilmore
44e415e37e - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 20:46:42 -06:00
Bojan Smojver
f051700bd1 Bump up the release number for rebuild. 2013-01-12 20:33:47 +11:00
Bojan Smojver
2e1cd2445b Add default authorisation for CGI scripts too. 2013-01-12 20:31:52 +11:00
Bojan Smojver
ebe56bfde6 Fix bug #871492. 2012-10-31 17:11:40 +11:00
Bojan Smojver
6e79bd54ba Bump up to 1.1.17. 2012-10-26 07:25:49 +11:00
Bojan Smojver
cd76f5f609 Bump up to 1.1.16. 2012-10-25 09:49:01 +11:00
Bojan Smojver
d0b5791b9b Patch CVE-2012-4533, bug #868606. 2012-10-22 12:06:07 +11:00
Dennis Gilmore
f2765127df - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-21 21:42:14 -05:00
Bojan Smojver
9aa14d4ee2 Bump up to 1.1.15. 2012-06-23 12:15:40 +10:00
Bojan Smojver
16942886fa Bump up to 1.1.14. 2012-06-13 06:48:53 +10:00
Bojan Smojver
4d10ab9291 Fix the obsoletes comparison. 2012-04-29 17:48:49 +10:00
Bojan Smojver
9e6004f26d Obsolete viewvc-httpd and replace with viewvc-httpd-fcgi. Also provide
viewvc-httpd-wsgi.
2012-04-29 17:43:29 +10:00
7 changed files with 1 additions and 354 deletions

8
.gitignore vendored
View file

@ -1,8 +0,0 @@
viewvc-1.1.6.tar.gz
/viewvc-1.1.7.tar.gz
/viewvc-1.1.8.tar.gz
/viewvc-1.1.9.tar.gz
/viewvc-1.1.10.tar.gz
/viewvc-1.1.11.tar.gz
/viewvc-1.1.12.tar.gz
/viewvc-1.1.13.tar.gz

View file

@ -1,2 +0,0 @@
In order to run ViewVC under Apache and mod_python, you must install
viewvc-httpd package.

1
dead.package Normal file
View file

@ -0,0 +1 @@
Python 2 is being removed, so retire this package.

View file

@ -1 +0,0 @@
c6710daca7bbd161ab68d5921757cd21 viewvc-1.1.13.tar.gz

View file

@ -1,49 +0,0 @@
#!/usr/bin/python
import sys
import re
from pygments.lexers import get_all_lexers
for fullname, names, exts, mimetype in get_all_lexers():
if len(exts) > len(mimetype):
for j in range(len(mimetype)):
line=0
for i in range(len(exts)):
if re.match('\*\.',exts[i]):
if i == 0:
print mimetype[j],
line=1
if re.search('\[[0-9]+\]',exts[i]):
s=re.search('\[[0-9]+\]',exts[i]).span()[0]+1
e=re.search('\[[0-9]+\]',exts[i]).span()[1]-1
for k in range(s,e):
print exts[i][2:s-1]+exts[i][k]+exts[i][e+1:],
else:
print exts[i][2:],
if line==1 and i == len(exts)-1:
print
elif len(exts) == 1:
for i in range(len(mimetype)):
if re.match('\*\.',exts[0]):
if re.search('\[[0-9]+\]',exts[0]):
s=re.search('\[[0-9]+\]',exts[0]).span()[0]+1
e=re.search('\[[0-9]+\]',exts[0]).span()[1]-1
print mimetype[i],
for k in range(s,e):
print exts[0][2:s-1]+exts[0][k]+exts[0][e+1:],
print
else:
print mimetype[i], exts[0][2:]
else:
for i in range(len(mimetype)):
if len(exts) > i:
if re.match('\*\.',exts[i]):
if re.search('\[[0-9]+\]',exts[i]):
s=re.search('\[[0-9]+\]',exts[i]).span()[0]+1
e=re.search('\[[0-9]+\]',exts[i]).span()[1]-1
print mimetype[i],
for k in range(s,e):
print exts[i][2:s-1]+exts[i][k]+exts[i][e+1:],
print
else:
print mimetype[i], exts[i][2:]

View file

@ -1,15 +0,0 @@
Alias /viewvc __python_sitelib__/viewvc/bin/mod_python/viewvc-mp.py
Alias /viewvc-static __datadir__/viewvc/templates/docroot
<Directory __python_sitelib__/viewvc/bin/mod_python>
AddHandler python-program .py
PythonHandler handler
Order allow,deny
Allow from 127.0.0.1
</Directory>
<Directory __datadir__/viewvc/templates/docroot>
Options -Indexes
Order allow,deny
Allow from 127.0.0.1
</Directory>

View file

@ -1,279 +0,0 @@
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: viewvc
Version: 1.1.13
Release: 1%{?dist}
Summary: Browser interface for CVS and SVN version control repositories
Group: Development/Tools
License: BSD
URL: http://www.viewvc.org/
Source0: http://www.viewvc.org/%{name}-%{version}.tar.gz
Source1: viewvc.conf
Source2: README.httpd
Source3: viewvc-lexer-mimetypes.py
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Obsoletes: %{name}-selinux < 1.0.3-13
Conflicts: selinux-policy < 2.5.10-2
BuildArch: noarch
BuildRequires: python-devel >= 2.0, python-pygments
Requires: rcs, diffutils
Requires: subversion >= 1.2
Requires: subversion-python >= 1.2
Requires: cvsgraph
Requires: python-pygments
%description
ViewVC is a browser interface for CVS and Subversion version control
repositories. It generates templatized HTML to present navigable directory,
revision, and change log listings. It can display specific versions of files
as well as diffs between those versions. Basically, ViewVC provides the bulk
of the report-like functionality you expect out of your version control tool,
but much more prettily than the average textual command-line program output.
%package httpd
Summary: ViewVC configuration for Apache/mod_python
Group: Development/Tools
Requires: httpd, %{name} = %{version}-%{release}, mod_python
%description httpd
ViewVC configuration for Apache/mod_python. This package should provide ViewVC
with decent performance when run under Apache.
%prep
%setup -q
%build
%install
%{__rm} -rf %{buildroot}
%{__python} viewvc-install --destdir="%{buildroot}" --prefix="%{python_sitelib}/viewvc"
# Remove unneeded files
%{__rm} -f %{buildroot}%{python_sitelib}/viewvc/bin/mod_python/.htaccess
# Move non-python to /usr/share
%{__mkdir} -p %{buildroot}%{_datadir}/viewvc
%{__mv} %{buildroot}%{python_sitelib}/viewvc/templates %{buildroot}%{_datadir}/viewvc
# Fix python files shebang and CONF_PATHNAME
%{__perl} -pi \
-e 's|/usr/local/bin/python|%{_bindir}/python|g;' \
-e 's|\s*/usr/bin/env python|%{_bindir}/python|g;' \
-e 's|CONF_PATHNAME =.*|CONF_PATHNAME = r"%{_sysconfdir}/viewvc/viewvc.conf"|g;' \
$(find %{buildroot}%{python_sitelib}/viewvc/ -type f)
# Set mode 755 on executable scripts
%{__grep} -rl '^#!' %{buildroot}%{python_sitelib}/viewvc | xargs %{__chmod} 0755
# Fix paths in configuration
%{__perl} -pi \
-e 's|^#* *template_dir = .*|template_dir = %{_datadir}/viewvc/templates|g;' \
-e 's|^#* *docroot = .*|docroot = /viewvc-static|;' \
-e 's|^#* *cvsgraph_conf = .*|cvsgraph_conf = %{_sysconfdir}/viewvc/cvsgraph.conf|;' \
-e 's|^#* *use_cvsgraph = .*|use_cvsgraph = 1|;' \
%{buildroot}%{python_sitelib}/viewvc/viewvc.conf
# Install config to sysconf directory
%{__install} -Dp -m0644 %{buildroot}%{python_sitelib}/viewvc/viewvc.conf %{buildroot}%{_sysconfdir}/viewvc/viewvc.conf
%{__rm} -f %{buildroot}%{python_sitelib}/viewvc/viewvc.conf
%{__install} -Dp -m0644 %{buildroot}%{python_sitelib}/viewvc/cvsgraph.conf %{buildroot}%{_sysconfdir}/viewvc/cvsgraph.conf
%{__rm} -f %{buildroot}%{python_sitelib}/viewvc/cvsgraph.conf
%{__install} -Dp -m0644 %{buildroot}%{python_sitelib}/viewvc/mimetypes.conf %{buildroot}%{_sysconfdir}/viewvc/mimetypes.conf
%{__rm} -f %{buildroot}%{python_sitelib}/viewvc/mimetypes.conf
%{SOURCE3} >> %{buildroot}%{_sysconfdir}/viewvc/mimetypes.conf
# Install Apache configuration and README
%{__sed} -e s,__datadir__,%{_datadir}, \
-e s,__python_sitelib__,%{python_sitelib}, %{SOURCE1} > viewvc.conf
%{__install} -Dp -m0644 viewvc.conf %{buildroot}/etc/httpd/conf.d/viewvc.conf
%{__cp} %{SOURCE2} README.httpd
# mod_python files mustn't be executable since they don't have shebang
# make rpmlint happy!
%{__chmod} 0644 %{buildroot}%{python_sitelib}/viewvc/bin/mod_python/*.py
# Rename viewvc.py to viewvc-mp.py for mod_python to avoid import cycle errors
%{__mv} %{buildroot}%{python_sitelib}/viewvc/bin/mod_python/viewvc.py \
%{buildroot}%{python_sitelib}/viewvc/bin/mod_python/viewvc-mp.py
# Make spool directory for temp files
%{__mkdir} -p %{buildroot}%{_localstatedir}/spool/viewvc
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, -)
%doc CHANGES README README.httpd INSTALL COMMITTERS LICENSE.html docs
%config(noreplace) %{_sysconfdir}/viewvc
%{python_sitelib}/*
%{_datadir}/*
%files httpd
%defattr(-, root, root, -)
%config(noreplace) %{_sysconfdir}/httpd/conf.d/viewvc.conf
%attr(0700,apache,apache) %{_localstatedir}/spool/viewvc
%changelog
* Tue Jan 24 2012 Bojan Smojver <bojan@rexursive.com> - 1.1.13-1
- bump up to 1.1.13
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Fri Nov 4 2011 Bojan Smojver <bojan@rexursive.com> - 1.1.12-1
- bump up to 1.1.12
* Tue Nov 1 2011 Bojan Smojver <bojan@rexursive.com> - 1.1.11-3
- require subversion-python
* Wed Jun 1 2011 Bojan Smojver <bojan@rexursive.com> - 1.1.11-2
- in response to bug #708721:
- remove webserver dependency, can run standalone
- require httpd for httpd package
- move spool directory to httpd package
* Wed May 18 2011 Bojan Smojver <bojan@rexursive.com> - 1.1.11-1
- bump up to 1.1.11
* Wed Mar 16 2011 Bojan Smojver <bojan@rexursive.com> - 1.1.10-1
- bump up to 1.1.10
* Mon Feb 21 2011 Bojan Smojver <bojan@rexursive.com> - 1.1.9-1
- bump up to 1.1.9
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Dec 6 2010 Bojan Smojver <bojan@rexursive.com> - 1.1.8-1
- bump up to 1.1.8
* Fri Sep 10 2010 Bojan Smojver <bojan@rexursive.com> - 1.1.7-1
- bump up to 1.1.7
- address bug #565805, allow access to templates from localhost
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.1.6-2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
* Thu Jun 3 2010 Bojan Smojver <bojan@rexursive.com> - 1.1.6-1
- bump up to 1.1.6
- drop patch for upstream issue #454
* Tue May 25 2010 Bojan Smojver <bojan@rexursive.com> - 1.1.5-2
- patch upstream issue #454
* Tue Mar 30 2010 Bojan Smojver <bojan@rexursive.com> - 1.1.5-1
- bump up to 1.1.5
* Thu Mar 11 2010 Bojan Smojver <bojan@rexursive.com> - 1.1.4-1
- bump up to 1.1.4
* Fri Jan 8 2010 Bojan Smojver <bojan@rexursive.com> - 1.1.3-2
- patch upstream issue #445
* Wed Dec 23 2009 Bojan Smojver <bojan@rexursive.com> - 1.1.3-1
- bump up to 1.1.3
- drop patch for upstream issue #427
* Wed Sep 23 2009 Bojan Smojver <bojan@rexursive.com> - 1.1.2-5
- patch upstream issue #427
* Thu Aug 13 2009 Bojan Smojver <bojan@rexursive.com> - 1.1.2-4
- try one more time
* Thu Aug 13 2009 Bojan Smojver <bojan@rexursive.com> - 1.1.2-3
- better mimetypes.conf generation script
* Wed Aug 12 2009 Bojan Smojver <bojan@rexursive.com> - 1.1.2-2
- fix replacement of various config variables
* Wed Aug 12 2009 Bojan Smojver <bojan@rexursive.com> - 1.1.2-1
- bump up to 1.1.2
- security fix: validate the 'view' parameter to avoid XSS attack
- security fix: avoid printing illegal parameter names and values
* Tue Aug 11 2009 Bojan Smojver <bojan@rexursive.com> - 1.1.1-3
- install mimetypes.conf
- populate mimetypes.conf with what pygments understands
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Jun 4 2009 Bojan Smojver <bojan@rexursive.com> - 1.1.1-1
- Bump up to 1.1.1
* Thu May 14 2009 Bojan Smojver <bojan@rexursive.com> - 1.1.0-1
- Final 1.1.0
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-0.beta1.1.2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.1.0-0.beta1.1.1
- Rebuild for Python 2.6
* Thu Nov 6 2008 Bojan Smojver <bojan@rexursive.com> - 1.1.0-0.beta1.1
- Rebase to 1.1.x
* Mon Oct 27 2008 Bojan Smojver <bojan@rexursive.com> - 1.0.7-2
- Depend on webserver to avoid pulling in Apache/mod_python (bug #457691)
- Provide viewvc-httpd package for mod_python specific configuration
* Wed Oct 15 2008 Bojan Smojver <bojan@rexursive.com> - 1.0.7-1
- Bump up to 1.0.7
* Fri Sep 19 2008 Bojan Smojver <bojan@rexursive.com> - 1.0.6-1
- Bump up to 1.0.6
* Fri Feb 29 2008 Bojan Smojver <bojan@rexursive.com> - 1.0.5-1
- Bump up to 1.0.5
* Sun Jun 3 2007 Bojan Smojver <bojan@rexursive.com> - 1.0.4-2
- Avoid import cycle errors (temporary fix)
* Tue May 15 2007 Bojan Smojver <bojan@rexursive.com> - 1.0.4-1
- Bump up to 1.0.4
* Wed Mar 28 2007 Bojan Smojver <bojan@rexursive.com> - 1.0.3-13
- Supply obsoletes/conflicts
(suggestions by Peter Gordon, Bernard Johnson and Ville Skyttä)
* Thu Mar 22 2007 Bojan Smojver <bojan@rexursive.com> - 1.0.3-12
- Drop selinux package, required context now in official policy
* Fri Mar 09 2007 Bojan Smojver <bojan@rexursive.com> - 1.0.3-11
- Bump for tag
* Tue Mar 06 2007 Bojan Smojver <bojan@rexursive.com> - 1.0.3-10
- Enable enscript only when available
* Tue Mar 06 2007 Bojan Smojver <bojan@rexursive.com> - 1.0.3-9
- Enable cvsgraph
* Sun Mar 04 2007 Bojan Smojver <bojan@rexursive.com> - 1.0.3-8
- EPEL support patch by Bernard Johnson
* Sat Mar 03 2007 Bojan Smojver <bojan@rexursive.com> - 1.0.3-7
- Incorporate suggestions from package review process by Bernard Johnson
* Sat Mar 03 2007 Bojan Smojver <bojan@rexursive.com> - 1.0.3-6
- Use restorecon instead of chcon
* Fri Mar 02 2007 Bojan Smojver <bojan@rexursive.com> - 1.0.3-5
- SELinux integration
* Fri Mar 02 2007 Bojan Smojver <bojan@rexursive.com> - 1.0.3-4
- Incorporate suggestions from package review process by Bernard Johnson
* Fri Mar 02 2007 Bojan Smojver <bojan@rexursive.com> - 1.0.3-3
- Move non-python files out of %%{python_sitelib}
* Thu Mar 01 2007 Bojan Smojver <bojan@rexursive.com> - 1.0.3-2
- Incorporate suggestions from package review process by Bernard Johnson
* Thu Mar 01 2007 Bojan Smojver <bojan@rexursive.com> - 1.0.3-1
- Initial release, 1.0.3
- Based on package provided by Dag Wieers