packages: viewvc/viewvc.spec - moved templates to separate packages - adapt...
matik
matik at pld-linux.org
Fri Dec 18 17:27:35 CET 2009
Author: matik Date: Fri Dec 18 16:27:35 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- moved templates to separate packages
- adapterized
- more files packaged
- httpd config moved to separate file
---- Files affected:
packages/viewvc:
viewvc.spec (1.17 -> 1.18)
---- Diffs:
================================================================
Index: packages/viewvc/viewvc.spec
diff -u packages/viewvc/viewvc.spec:1.17 packages/viewvc/viewvc.spec:1.18
--- packages/viewvc/viewvc.spec:1.17 Fri Sep 4 19:28:05 2009
+++ packages/viewvc/viewvc.spec Fri Dec 18 17:27:29 2009
@@ -3,14 +3,16 @@
Summary(pl.UTF-8): Interfejs przeglądarki do repozytoriów systemów kontroli wersji CVS i Subversion
Name: viewvc
Version: 1.1.2
-Release: 0.2
+Release: 0.3
License: BSD
Group: Applications/WWW
Source0: http://www.viewvc.org/%{name}-%{version}.tar.gz
# Source0-md5: 8f14fc2f58f4e87b835500ae20d8d631
+Source1: %{name}-httpd.conf
URL: http://www.viewvc.org/
BuildRequires: python-modules
BuildRequires: rpmbuild(macros) >= 1.268
+Requires: %{name}-template
Requires: webapps
Obsoletes: viewcvs
BuildArch: noarch
@@ -55,21 +57,22 @@
%description -l pl.UTF-8
ViewVC to interfejs przeglądarki do repozytoriów systemów kontroli
wersji CVS i Subversion. Generuje oparty o szablony HTML prezentujący
-listingi katalogów, rewizji i historii zmian z możliwością nawigacji.
-Może wyświetlać określone wersje plików oraz różnice między wersjami.
-Zasadniczo ViewVC udostępnia sporą funkcjonalność generowania
-raportów, jakiej można by oczekiwać od narzędzi do kontroli wersji,
-ale daje ona dużo ładniejsze wyniki niż w przypadku narzędzi
-działających z linii poleceń.
+listingi katalogów, rewizji i historii zmian z możliwością
+nawigacji. Może wyświetlać określone wersje plików oraz różnice
+między wersjami. Zasadniczo ViewVC udostępnia sporą
+funkcjonalność generowania raportów, jakiej można by oczekiwać od
+narzędzi do kontroli wersji, ale daje ona dużo ładniejsze wyniki
+niż w przypadku narzędzi działających z linii poleceń.
Niektóre dodatkowe możliwości ViewVC:
-- obsługa repozytoriów CVS i Subversion dostępnych w systemie plików
+- obsługa repozytoriów CVS i Subversion dostępnych w systemie
+ plików
- oddzielnie konfigurowalna obsługa wirtualnych hostów
- liniowe wyświetlanie przypisów/autorów ostatnich zmian
- możliwość rysowania wykresów rewizji (poprzez integrację z
cvsgraphem - tylko CVS)
-- obsługa podświetlania składni (poprzez integrację z GNU enscriptem
- lub Highlightem)
+- obsługa podświetlania składni (poprzez integrację z GNU
+ enscriptem lub Highlightem)
- uproszczenie zapytań w stylu Bonsai
- generowanie wyjścia w oparciu o szablony
- kolorowe, dwustronne różnice
@@ -109,54 +112,58 @@
%description mod_python -l pl.UTF-8
ViewVC - interfejs mod_python.
-%prep
-%setup -q
+%package template-default
+Summary: ViewVC - default template
+Summary(pl.UTF-8): ViewVC - domyślny szablon
+Group: Applications/WWW
+Requires: %{name} = %{version}-%{release}
+Requires: webserver(cgi)
+Provides: %{name}-template
-# TODO: move to SourceX
-cat > apache.conf <<'EOF'
+%description template-default
+ViewVC - default template
-<Directory %{_appdir}>
- AllowOverride None
- Allow from all
-</Directory>
-
-# Version1 (default): under /cgi-bin/viewvc.cgi address
-ScriptAlias /cgi-bin/viewvc.cgi %{_appdir}/bin/cgi/viewvc.cgi
-ScriptAlias /cgi-bin/viewvc-query.cgi %{_appdir}/bin/cgi/query.cgi
-
-# if using apache2 mod_python:
-# Alias /viewvc %{_appdir}/bin/mod_python
-# <Location /viewvc>
-# Allow from all
-# <IfModule mod_python.c>
-# AddHandler mod_python .py
-# PythonPath "sys.path+['%{_appdir}/bin/mod_python']"
-# PythonHandler handler
-# PythonDebug Off
-# </IfModule>
-# </Location>
-
-# Version 2: viewvc as handler to whole vhost:
-#<VirtualHost *:80>
-# ServerName cvs
-#
-# Alias /viewvc/ %{_appdir}
-# DocumentRoot %{_appdir}/bin/cgi/viewvc.cgi
-# <Location />
-# Options ExecCGI
-# Allow from all
-# </Location>
-#</VirtualHost>
+%description template-default -l pl.UTF-8
+ViewVC - domyślny szablon
-EOF
+%package template-newvc
+Summary: ViewVC - newvc template
+Summary(pl.UTF-8): ViewVC - szablon newvc
+Group: Applications/WWW
+Requires: %{name} = %{version}-%{release}
+Requires: webserver(cgi)
+Provides: %{name}-template
+
+%description template-newvc
+ViewVC - newvc template
+
+%description template-newvc -l pl.UTF-8
+ViewVC - szablon newvc
+
+
+%package template-viewsvn
+Summary: ViewVC - viewsvn template
+Summary(pl.UTF-8): ViewVC - szablon viewsvn
+Group: Applications/WWW
+Requires: %{name} = %{version}-%{release}
+Requires: webserver(cgi)
+Provides: %{name}-template
+
+%description template-viewsvn
+ViewVC - viewsvn template
+
+%description template-viewsvn -l pl.UTF-8
+ViewVC - szablon viewsvn
+
+%prep
+%setup -q
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_webapps}/%{_webapp},%{_appdir},%{_sysconfdir}}
-#install %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
-install apache.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
-install apache.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
+install %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
+install %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
#install lighttpd.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/lighttpd.conf
./viewvc-install --destdir=$RPM_BUILD_ROOT --prefix=%{_appdir}
@@ -203,7 +210,6 @@
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
%dir %{_appdir}
%dir %{_appdir}/bin
-%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_appdir}/bin/mod_python/.htaccess
%attr(755,root,root) %{_appdir}/bin/standalone.py
%attr(755,root,root) %{_appdir}/bin/loginfo-handler
%attr(755,root,root) %{_appdir}/bin/cvsdbadmin
@@ -241,6 +247,10 @@
%dir %{_appdir}/lib/vclib/ccvs
%{_appdir}/lib/vclib/ccvs/__init__.py[co]
%{_appdir}/lib/vclib/ccvs/blame.py[co]
+%{_appdir}/lib/vclib/ccvs/bincvs.py[co]
+%{_appdir}/lib/vclib/ccvs/ccvs.py[co]
+%{_appdir}/lib/vclib/ccvs/rcsparse/parse_rcs_file.py[co]
+%{_appdir}/lib/vclib/ccvs/rcsparse/run-tests.py[co]
%dir %{_appdir}/lib/vclib/ccvs/rcsparse
%{_appdir}/lib/vclib/ccvs/rcsparse/__init__.py[co]
%{_appdir}/lib/vclib/ccvs/rcsparse/common.py[co]
@@ -249,63 +259,13 @@
%{_appdir}/lib/vclib/ccvs/rcsparse/texttools.py[co]
%dir %{_appdir}/lib/vclib/svn
%{_appdir}/lib/vclib/svn/__init__.py[co]
-%{_appdir}/lib/vclib/svn/svn_repos.pyc
+%{_appdir}/lib/vclib/svn/svn_ra.py[co]
+%{_appdir}/lib/vclib/svn/svn_repos.py[co]
%{_appdir}/lib/viewvc.py[co]
+%{_appdir}/mimetypes.conf
%dir %{_appdir}/templates
-%{_appdir}/templates/diff.ezt
-%{_appdir}/templates/dir_new.ezt
-%{_appdir}/templates/directory.ezt
-%{_appdir}/templates/file.ezt
-%dir %{_appdir}/templates/docroot
-%{_appdir}/templates/docroot/help.css
-%{_appdir}/templates/docroot/help_dirview.html
-%{_appdir}/templates/docroot/help_log.html
-%{_appdir}/templates/docroot/help_query.html
-%{_appdir}/templates/docroot/help_rootview.html
-%dir %{_appdir}/templates/docroot/images
-%{_appdir}/templates/docroot/images/annotate.png
-%{_appdir}/templates/docroot/images/back.png
-%{_appdir}/templates/docroot/images/back_small.png
-%{_appdir}/templates/docroot/images/broken.png
-%{_appdir}/templates/docroot/images/chalk.jpg
-%{_appdir}/templates/docroot/images/cvsgraph_16x16.png
-%{_appdir}/templates/docroot/images/cvsgraph_32x32.png
-%{_appdir}/templates/docroot/images/diff.png
-%{_appdir}/templates/docroot/images/dir.png
-%{_appdir}/templates/docroot/images/down.png
-%{_appdir}/templates/docroot/images/download.png
-%{_appdir}/templates/docroot/images/feed-icon-16x16.jpg
-%{_appdir}/templates/docroot/images/forward.png
-%{_appdir}/templates/docroot/images/list.png
-%{_appdir}/templates/docroot/images/log.png
-%{_appdir}/templates/docroot/images/text.png
-%{_appdir}/templates/docroot/images/up.png
-%{_appdir}/templates/docroot/images/view.png
-%{_appdir}/templates/docroot/images/viewvc-logo.png
-%{_appdir}/templates/docroot/styles.css
-%{_appdir}/templates/error.ezt
-%{_appdir}/templates/graph.ezt
-%dir %{_appdir}/templates/include
-%{_appdir}/templates/include/diff_form.ezt
-%{_appdir}/templates/include/dir_footer.ezt
-%{_appdir}/templates/include/dir_header.ezt
-%{_appdir}/templates/include/file_header.ezt
-%{_appdir}/templates/include/footer.ezt
-%{_appdir}/templates/include/header.ezt
-%{_appdir}/templates/include/log_footer.ezt
-%{_appdir}/templates/include/log_header.ezt
-%{_appdir}/templates/include/paging.ezt
-%{_appdir}/templates/include/pathrev_form.ezt
-%{_appdir}/templates/include/sort.ezt
-%{_appdir}/templates/include/props.ezt
-%{_appdir}/templates/log.ezt
-%{_appdir}/templates/log_table.ezt
-%{_appdir}/templates/query.ezt
-%{_appdir}/templates/query_form.ezt
-%{_appdir}/templates/query_results.ezt
-%{_appdir}/templates/revision.ezt
-%{_appdir}/templates/roots.ezt
-%{_appdir}/templates/rss.ezt
+%dir %{_appdir}/templates-contrib
+%{_appdir}/templates-contrib/README
%files cgi
%defattr(644,root,root,755)
@@ -316,16 +276,35 @@
%files mod_python
%defattr(644,root,root,755)
%dir %{_appdir}/bin/mod_python
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_appdir}/bin/mod_python/.htaccess
%{_appdir}/bin/mod_python/viewvc.py
%{_appdir}/bin/mod_python/query.py
%{_appdir}/bin/mod_python/handler.py
+%files template-default
+%defattr(644,root,root,755)
+%{_appdir}/templates/
+
+%files template-newvc
+%defattr(644,root,root,755)
+%{_appdir}/templates-contrib/newvc/
+
+%files template-viewsvn
+%defattr(644,root,root,755)
+%{_appdir}/templates-contrib/viewsvn/
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.18 2009/12/18 16:27:29 matik
+- moved templates to separate packages
+- adapterized
+- more files packaged
+- httpd config moved to separate file
+
Revision 1.17 2009/09/04 17:28:05 areq
- add dirs lib/vcauth/forbidden lib/vcauth/forbiddenre lib/vcauth/svnauthz
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/viewvc/viewvc.spec?r1=1.17&r2=1.18&f=u
More information about the pld-cvs-commit
mailing list