[packages/kallithea] - initial; unfinished
arekm
arekm at pld-linux.org
Tue Oct 27 10:49:57 CET 2015
commit 39ca397683d1d81ec55df4dfc164470d77ebcbb2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Oct 27 10:49:40 2015 +0100
- initial; unfinished
kallithea-build.patch | 21 ++++++++++++++++
kallithea.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 90 insertions(+)
---
diff --git a/kallithea.spec b/kallithea.spec
new file mode 100644
index 0000000..a15851d
--- /dev/null
+++ b/kallithea.spec
@@ -0,0 +1,69 @@
+# TODO: everything
+#
+# Conditional build:
+%bcond_without doc # don't build doc
+%bcond_without tests # do not perform "make test"
+
+Summary: Source code management system for git and mercurial
+Name: kallithea
+Version: 0.3
+Release: 0.1
+License: GPL v3
+Group: Libraries/Python
+Source0: https://pypi.python.org/packages/source/K/Kallithea/Kallithea-%{version}.tar.gz
+# Source0-md5: bd65fcc49585a6debf0a9cdca5189a5e
+Patch0: %{name}-build.patch
+URL: https://kallithea-scm.org/
+BuildRequires: docutils
+BuildRequires: mercurial >= 2.9
+BuildRequires: python-Paste
+BuildRequires: python-PasteDeploy
+BuildRequires: python-Routes >= 1.13
+BuildRequires: python-WebOb
+BuildRequires: python-bcrypt >= 1.1.1
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.612
+Requires: python-modules
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Kallithea, a member project of Software Freedom Conservancy, is a
+GPLv3'd, Free Software source code management system that supports two
+leading version control systems, Mercurial and Git, and has a web
+interface that is easy to use for users and admins.
+
+%prep
+%setup -q -n Kallithea-%{version}
+%patch0 -p1
+
+%build
+%{__python} setup.py build %{?with_tests:test}
+
+%if %{with doc}
+cd docs
+%{__make} -j1 html
+rm -rf _build/html/_sources
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__python} setup.py \
+ build
+ install --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{py_sitedir}/*.py[co]
+%attr(755,root,root) %{py_sitedir}/*.so
+%{py_sitedir}/Kallithea-%{version}-py*.egg-info
diff --git a/kallithea-build.patch b/kallithea-build.patch
new file mode 100644
index 0000000..e46ac44
--- /dev/null
+++ b/kallithea-build.patch
@@ -0,0 +1,21 @@
+diff -ur Kallithea-0.3.org/setup.py Kallithea-0.3/setup.py
+--- Kallithea-0.3.org/setup.py 2015-10-02 21:53:02.000000000 +0200
++++ Kallithea-0.3/setup.py 2015-10-27 10:36:19.060654069 +0100
+@@ -50,7 +50,7 @@
+ "babel>=0.9.6,<=1.3",
+ "python-dateutil>=1.5.0,<2.0.0",
+ "markdown==2.2.1",
+- "docutils>=0.8.1,<=0.11",
++ "docutils>=0.8.1",
+ "mock",
+ "URLObject==2.3.4",
+ "Routes==1.13",
+@@ -64,7 +64,7 @@
+ requirements.append("argparse")
+
+ if not is_windows:
+- requirements.append("py-bcrypt>=0.3.0,<=0.4")
++ requirements.append("bcrypt>=1.1.1")
+
+
+ dependency_links = [
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kallithea.git/commitdiff/39ca397683d1d81ec55df4dfc164470d77ebcbb2
More information about the pld-cvs-commit
mailing list