SPECS: repoview.spec (NEW) - new, based on dag's spec (http://dag....
glen
glen at pld-linux.org
Wed May 24 22:13:06 CEST 2006
Author: glen Date: Wed May 24 20:13:06 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new, based on dag's spec (http://dag.wieers.com/packages/repoview/repoview.spec)
---- Files affected:
SPECS:
repoview.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/repoview.spec
diff -u /dev/null SPECS/repoview.spec:1.1
--- /dev/null Wed May 24 22:13:06 2006
+++ SPECS/repoview.spec Wed May 24 22:12:59 2006
@@ -0,0 +1,57 @@
+# $Revision$, $Date$
+Summary: Create static HTML pages of a yum repository
+Name: repoview
+Version: 0.5.1
+Release: 0.1
+License: GPL
+Group: Applications/System
+URL: http://linux.duke.edu/projects/mini/repoview/
+Source0: http://linux.duke.edu/projects/mini/repoview/download/%{name}-%{version}.tar.gz
+# Source0-md5: b9568d9b71df1ee9628592b557d2b981
+Requires: python >= 2.2
+Requires: python-cElementTree
+Requires: python-kid
+Requires: yum >= 2.3
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+repoview allows to easily create a set of static HTML pages in a YUM
+repository, allowing simple browsing of available packages. It uses
+kid templating engine to create the pages and is therefore easily
+customizeable.
+
+%prep
+%setup -q
+
+%{__sed} -i -e '
+ s|^\(VERSION\) = .*$|\1 = "%{version}"|g;
+ s|^\(DEFAULT_TEMPLATEDIR\) =.*$|\1 = "%{_datadir}/repoview/templates"|g;
+ ' repoview.py
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/repoview,%{_mandir}/man8}
+install repoview.py $RPM_BUILD_ROOT%{_bindir}/repoview
+install repoview.8 $RPM_BUILD_ROOT%{_mandir}/man8/repoview.8
+cp -a templates $RPM_BUILD_ROOT%{_datadir}/repoview
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%attr(755,root,root) %{_bindir}/repoview
+%{_mandir}/man8/repoview.8*
+%{_datadir}/repoview
+
+%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.1 2006/05/24 20:12:59 glen
+- new, based on dag's spec (http://dag.wieers.com/packages/repoview/repoview.spec)
+
================================================================
More information about the pld-cvs-commit
mailing list