[trac-CGit-plugin] Initial packaging effort

Patrick Uiterwijk puiterwijk at fedoraproject.org
Fri Jan 18 12:05:10 UTC 2013


commit 60aa7c050f1987cf2d8b43040fa08c0a69d8cd65
Author: Patrick Uiterwijk <puiterwijk at gmail.com>
Date:   Fri Jan 18 13:04:55 2013 +0100

    Initial packaging effort

 .gitignore                        |    1 +
 sources                           |    1 +
 trac-CGit-plugin-fixshebang.patch |    8 ++++++
 trac-CGit-plugin.spec             |   47 +++++++++++++++++++++++++++++++++++++
 4 files changed, 57 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..60e65c7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/v1.0.5.tar.gz
diff --git a/sources b/sources
index e69de29..f6178a3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f16600eece911cc7bfe277edf6837096  v1.0.5.tar.gz
diff --git a/trac-CGit-plugin-fixshebang.patch b/trac-CGit-plugin-fixshebang.patch
new file mode 100644
index 0000000..e8c3ce1
--- /dev/null
+++ b/trac-CGit-plugin-fixshebang.patch
@@ -0,0 +1,8 @@
+--- 0.12/cgit/web_ui.py	2013-01-18 13:00:55.169768856 +0100
++++ 0.12/cgit/web_ui.py	2013-01-18 13:01:00.107773038 +0100
+@@ -1,5 +1,3 @@
+-#!/usr/bin/env python
+-
+ #
+ # This file is part of tracCGit.
+ #
diff --git a/trac-CGit-plugin.spec b/trac-CGit-plugin.spec
new file mode 100644
index 0000000..2e6024d
--- /dev/null
+++ b/trac-CGit-plugin.spec
@@ -0,0 +1,47 @@
+%define        trac_version 0.12
+
+Name:           trac-CGit-plugin
+Version:        1.0.5
+Release:        1%{?dist}
+Summary:        Replace the trac browser by CGit
+
+License:        GPLv2+
+URL:            http://trac-hacks.org/wiki/TracCgitPlugin
+Source0:        https://github.com/reposerf/tracCGit/archive/v%{version}.tar.gz
+Patch:          %{name}-fixshebang.patch
+
+BuildArch:      noarch
+BuildRequires:  python2-devel, python-setuptools
+Requires:       trac >= 0.12
+
+%description
+Replace the trac browser by cgit.
+
+Configure the url in the cgit ini panel and TracCGit
+will replace the trac source browser (provided you
+have a working cgit installation setup).
+
+Plain and simple. 
+
+%prep
+%setup -q -n tracCGit-%{version}
+%patch
+
+%build
+cd %{trac_version}
+%{__python} setup.py build
+
+%install
+cd %{trac_version}
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+%files
+%doc LICENSE
+# For noarch packages: sitelib
+%{python_sitelib}/*
+
+
+%changelog
+* Thu Jan 03 2013 Patrick Uiterwijk <puiterwijk at gmail.com> - 1.0.5-1
+- Initial packaging effort
+


More information about the scm-commits mailing list