{"action":"created","comment":{"url":"https://api.github.com/repos/ceph/calamari/pulls/comments/53860237","id":53860237,"diff_hunk":"@@ -0,0 +1,111 @@\n+#\n+# spec file for package calamari\n+#\n+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.\n+#\n+# All modifications and additions to the file contributed by third parties\n+# remain the property of their copyright owners, unless otherwise agreed\n+# upon. The license for this file, and modifications and additions to the\n+# file, is the same license as for the pristine package itself (unless the\n+# license for the pristine package is not an Open Source License, in which\n+# case the license is the MIT License). An \"Open Source License\" is a\n+# license that conforms to the Open Source Definition (Version 1.9)\n+# published by the Open Source Initiative.\n+\n+# Please submit bugfixes or comments via http://bugs.opensuse.org/\n+#\n+\n+\n+Name:           calamari\n+Summary:        Manage and monitor Ceph with a REST API\n+License:        LGPL-2.1+\n+Group:          System/Filesystems\n+Version:        1.3+git.1456160171.f7475e3\n+Release:        0\n+Url:            http://ceph.com/\n+Source0:        %{name}-%{version}.tar.gz\n+Provides:       calamari-server = %{version}\n+Obsoletes:      calamari-server < %{version}\n+# Force no database usage\n+Conflicts:      python-SQLAlchemy\n+Conflicts:      python-alembic\n+Requires:       logrotate\n+Requires:       python-django < 1.7\n+Requires:       python-djangorestframework\n+Requires:       python-dateutil\n+Requires:       python-zerorpc\n+Requires:       python-gevent >= 1.0\n+Requires:       python-pytz\n+Requires:       python-setuptools\n+%{?systemd_requires}\n+BuildRequires:  fdupes\n+BuildRequires:  python-devel\n+BuildRequires:  systemd\n+# For lsb_release binary\n+BuildRequires:  lsb-release\n+BuildRequires:  python-setuptools\n+# For /etc/*release files\n+%if 0%{?suse_version} == 1315 && (! 0%{?is_opensuse})\n+BuildRequires:  sles-release\n+%else\n+BuildRequires:  suse-release\n+%endif\n+BuildArch:      noarch\n+\n+%description\n+Calamari is a REST API for monitoring and controlling a Ceph cluster.\n+It is intended to be used by other frontent GUIs.\n+\n+%prep\n+%setup -q\n+\n+%build\n+echo \"VERSION =\\\"%{version}\\\"\" > rest-api/calamari_rest/version.py\n+\n+%install\n+make DESTDIR=%{buildroot} install-lsb\n+mkdir -p %{buildroot}%{_sbindir}\n+ln -s -f %{_sbindir}/service %{buildroot}%{_sbindir}/rccalamari\n+%fdupes %{buildroot}%{python_sitelib}\n+\n+%files\n+%defattr(-,root,root,-)\n+%doc COPYING*\n+%exclude /opt/calamari\n+%exclude %{_bindir}/calamari-ctl\n+%exclude %{_bindir}/cthulhu-manager\n+%exclude %{_sysconfdir}/calamari/alembic.ini\n+%exclude %{_sysconfdir}/graphite\n+%exclude %{_sysconfdir}/salt\n+%exclude %{_sysconfdir}/supervisor\n+%{python_sitelib}/calamari_*\n+%{python_sitelib}/cthulhu*\n+%{_bindir}/calamari-lite\n+%{_unitdir}/calamari.service\n+%{_sbindir}/rccalamari","path":"calamari.suse.spec","position":85,"original_position":85,"commit_id":"c854e570400e6cce00e659b0b258768caa3717b6","original_commit_id":"c854e570400e6cce00e659b0b258768caa3717b6","user":{"login":"GregMeno","id":290210,"avatar_url":"https://avatars.githubusercontent.com/u/290210?v=3","gravatar_id":"","url":"https://api.github.com/users/GregMeno","html_url":"https://github.com/GregMeno","followers_url":"https://api.github.com/users/GregMeno/followers","following_url":"https://api.github.com/users/GregMeno/following{/other_user}","gists_url":"https://api.github.com/users/GregMeno/gists{/gist_id}","starred_url":"https://api.github.com/users/GregMeno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GregMeno/subscriptions","organizations_url":"https://api.github.com/users/GregMeno/orgs","repos_url":"https://api.github.com/users/GregMeno/repos","events_url":"https://api.github.com/users/GregMeno/events{/privacy}","received_events_url":"https://api.github.com/users/GregMeno/received_events","type":"User","site_admin":false},"body":"I don't recognize this bit is that a SuSE-ism?","created_at":"2016-02-23T22:18:00Z","updated_at":"2016-02-23T22:18:00Z","html_url":"https://github.com/ceph/calamari/pull/397#discussion_r53860237","pull_request_url":"https://api.github.com/repos/ceph/calamari/pulls/397","_links":{"self":{"href":"https://api.github.com/repos/ceph/calamari/pulls/comments/53860237"},"html":{"href":"https://github.com/ceph/calamari/pull/397#discussion_r53860237"},"pull_request":{"href":"https://api.github.com/repos/ceph/calamari/pulls/397"}}},"pull_request":{"url":"https://api.github.com/repos/ceph/calamari/pulls/397","id":60207585,"html_url":"https://github.com/ceph/calamari/pull/397","diff_url":"https://github.com/ceph/calamari/pull/397.diff","patch_url":"https://github.com/ceph/calamari/pull/397.patch","issue_url":"https://api.github.com/repos/ceph/calamari/issues/397","number":397,"state":"open","locked":false,"title":"RFC: Add LSB build targets, systemd unit file, SUSE spec","user":{"login":"tserong","id":754700,"avatar_url":"https://avatars.githubusercontent.com/u/754700?v=3","gravatar_id":"","url":"https://api.github.com/users/tserong","html_url":"https://github.com/tserong","followers_url":"https://api.github.com/users/tserong/followers","following_url":"https://api.github.com/users/tserong/following{/other_user}","gists_url":"https://api.github.com/users/tserong/gists{/gist_id}","starred_url":"https://api.github.com/users/tserong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tserong/subscriptions","organizations_url":"https://api.github.com/users/tserong/orgs","repos_url":"https://api.github.com/users/tserong/repos","events_url":"https://api.github.com/users/tserong/events{/privacy}","received_events_url":"https://api.github.com/users/tserong/received_events","type":"User","site_admin":false},"body":"This is about the minimum amount necessary to create an RPM package for Calamari-on-MON which uses distro packaged dependencies (python-django etc.) rather than packing everything into a virtualenv. It also adds a systemd unit file for calamari lite, so we don't need supervisord. I've done the spec file as a SUSE-specific variant to make it easy to see what it looks like, rather than editing the existing calamari.spec. Comments appreciated ;-)","created_at":"2016-02-22T17:16:55Z","updated_at":"2016-02-23T22:18:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85f4aa99f688bf9fdf37312c137703013f4ca89d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ceph/calamari/pulls/397/commits","review_comments_url":"https://api.github.com/repos/ceph/calamari/pulls/397/comments","review_comment_url":"https://api.github.com/repos/ceph/calamari/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ceph/calamari/issues/397/comments","statuses_url":"https://api.github.com/repos/ceph/calamari/statuses/c854e570400e6cce00e659b0b258768caa3717b6","head":{"label":"SUSE:wip-rpm-fhs-packaging","ref":"wip-rpm-fhs-packaging","sha":"c854e570400e6cce00e659b0b258768caa3717b6","user":{"login":"SUSE","id":1067733,"avatar_url":"https://avatars.githubusercontent.com/u/1067733?v=3","gravatar_id":"","url":"https://api.github.com/users/SUSE","html_url":"https://github.com/SUSE","followers_url":"https://api.github.com/users/SUSE/followers","following_url":"https://api.github.com/users/SUSE/following{/other_user}","gists_url":"https://api.github.com/users/SUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE/subscriptions","organizations_url":"https://api.github.com/users/SUSE/orgs","repos_url":"https://api.github.com/users/SUSE/repos","events_url":"https://api.github.com/users/SUSE/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":22716827,"name":"calamari","full_name":"SUSE/calamari","owner":{"login":"SUSE","id":1067733,"avatar_url":"https://avatars.githubusercontent.com/u/1067733?v=3","gravatar_id":"","url":"https://api.github.com/users/SUSE","html_url":"https://github.com/SUSE","followers_url":"https://api.github.com/users/SUSE/followers","following_url":"https://api.github.com/users/SUSE/following{/other_user}","gists_url":"https://api.github.com/users/SUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE/subscriptions","organizations_url":"https://api.github.com/users/SUSE/orgs","repos_url":"https://api.github.com/users/SUSE/repos","events_url":"https://api.github.com/users/SUSE/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SUSE/calamari","description":"Web-based monitoring and management for Ceph","fork":true,"url":"https://api.github.com/repos/SUSE/calamari","forks_url":"https://api.github.com/repos/SUSE/calamari/forks","keys_url":"https://api.github.com/repos/SUSE/calamari/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SUSE/calamari/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SUSE/calamari/teams","hooks_url":"https://api.github.com/repos/SUSE/calamari/hooks","issue_events_url":"https://api.github.com/repos/SUSE/calamari/issues/events{/number}","events_url":"https://api.github.com/repos/SUSE/calamari/events","assignees_url":"https://api.github.com/repos/SUSE/calamari/assignees{/user}","branches_url":"https://api.github.com/repos/SUSE/calamari/branches{/branch}","tags_url":"https://api.github.com/repos/SUSE/calamari/tags","blobs_url":"https://api.github.com/repos/SUSE/calamari/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SUSE/calamari/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SUSE/calamari/git/refs{/sha}","trees_url":"https://api.github.com/repos/SUSE/calamari/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SUSE/calamari/statuses/{sha}","languages_url":"https://api.github.com/repos/SUSE/calamari/languages","stargazers_url":"https://api.github.com/repos/SUSE/calamari/stargazers","contributors_url":"https://api.github.com/repos/SUSE/calamari/contributors","subscribers_url":"https://api.github.com/repos/SUSE/calamari/subscribers","subscription_url":"https://api.github.com/repos/SUSE/calamari/subscription","commits_url":"https://api.github.com/repos/SUSE/calamari/commits{/sha}","git_commits_url":"https://api.github.com/repos/SUSE/calamari/git/commits{/sha}","comments_url":"https://api.github.com/repos/SUSE/calamari/comments{/number}","issue_comment_url":"https://api.github.com/repos/SUSE/calamari/issues/comments{/number}","contents_url":"https://api.github.com/repos/SUSE/calamari/contents/{+path}","compare_url":"https://api.github.com/repos/SUSE/calamari/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SUSE/calamari/merges","archive_url":"https://api.github.com/repos/SUSE/calamari/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SUSE/calamari/downloads","issues_url":"https://api.github.com/repos/SUSE/calamari/issues{/number}","pulls_url":"https://api.github.com/repos/SUSE/calamari/pulls{/number}","milestones_url":"https://api.github.com/repos/SUSE/calamari/milestones{/number}","notifications_url":"https://api.github.com/repos/SUSE/calamari/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SUSE/calamari/labels{/name}","releases_url":"https://api.github.com/repos/SUSE/calamari/releases{/id}","deployments_url":"https://api.github.com/repos/SUSE/calamari/deployments","created_at":"2014-08-07T10:06:01Z","updated_at":"2015-10-01T18:11:04Z","pushed_at":"2016-02-22T17:10:21Z","git_url":"git://github.com/SUSE/calamari.git","ssh_url":"git@github.com:SUSE/calamari.git","clone_url":"https://github.com/SUSE/calamari.git","svn_url":"https://github.com/SUSE/calamari","homepage":"","size":21438,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"ceph:calamari_on_monitor","ref":"calamari_on_monitor","sha":"27874f1d29005fe356aa838237d85a29f8bb0153","user":{"login":"ceph","id":1015767,"avatar_url":"https://avatars.githubusercontent.com/u/1015767?v=3","gravatar_id":"","url":"https://api.github.com/users/ceph","html_url":"https://github.com/ceph","followers_url":"https://api.github.com/users/ceph/followers","following_url":"https://api.github.com/users/ceph/following{/other_user}","gists_url":"https://api.github.com/users/ceph/gists{/gist_id}","starred_url":"https://api.github.com/users/ceph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceph/subscriptions","organizations_url":"https://api.github.com/users/ceph/orgs","repos_url":"https://api.github.com/users/ceph/repos","events_url":"https://api.github.com/users/ceph/events{/privacy}","received_events_url":"https://api.github.com/users/ceph/received_events","type":"Organization","site_admin":false},"repo":{"id":10654725,"name":"calamari","full_name":"ceph/calamari","owner":{"login":"ceph","id":1015767,"avatar_url":"https://avatars.githubusercontent.com/u/1015767?v=3","gravatar_id":"","url":"https://api.github.com/users/ceph","html_url":"https://github.com/ceph","followers_url":"https://api.github.com/users/ceph/followers","following_url":"https://api.github.com/users/ceph/following{/other_user}","gists_url":"https://api.github.com/users/ceph/gists{/gist_id}","starred_url":"https://api.github.com/users/ceph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceph/subscriptions","organizations_url":"https://api.github.com/users/ceph/orgs","repos_url":"https://api.github.com/users/ceph/repos","events_url":"https://api.github.com/users/ceph/events{/privacy}","received_events_url":"https://api.github.com/users/ceph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ceph/calamari","description":"Web-based monitoring and management for Ceph","fork":false,"url":"https://api.github.com/repos/ceph/calamari","forks_url":"https://api.github.com/repos/ceph/calamari/forks","keys_url":"https://api.github.com/repos/ceph/calamari/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ceph/calamari/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ceph/calamari/teams","hooks_url":"https://api.github.com/repos/ceph/calamari/hooks","issue_events_url":"https://api.github.com/repos/ceph/calamari/issues/events{/number}","events_url":"https://api.github.com/repos/ceph/calamari/events","assignees_url":"https://api.github.com/repos/ceph/calamari/assignees{/user}","branches_url":"https://api.github.com/repos/ceph/calamari/branches{/branch}","tags_url":"https://api.github.com/repos/ceph/calamari/tags","blobs_url":"https://api.github.com/repos/ceph/calamari/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ceph/calamari/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ceph/calamari/git/refs{/sha}","trees_url":"https://api.github.com/repos/ceph/calamari/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ceph/calamari/statuses/{sha}","languages_url":"https://api.github.com/repos/ceph/calamari/languages","stargazers_url":"https://api.github.com/repos/ceph/calamari/stargazers","contributors_url":"https://api.github.com/repos/ceph/calamari/contributors","subscribers_url":"https://api.github.com/repos/ceph/calamari/subscribers","subscription_url":"https://api.github.com/repos/ceph/calamari/subscription","commits_url":"https://api.github.com/repos/ceph/calamari/commits{/sha}","git_commits_url":"https://api.github.com/repos/ceph/calamari/git/commits{/sha}","comments_url":"https://api.github.com/repos/ceph/calamari/comments{/number}","issue_comment_url":"https://api.github.com/repos/ceph/calamari/issues/comments{/number}","contents_url":"https://api.github.com/repos/ceph/calamari/contents/{+path}","compare_url":"https://api.github.com/repos/ceph/calamari/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ceph/calamari/merges","archive_url":"https://api.github.com/repos/ceph/calamari/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ceph/calamari/downloads","issues_url":"https://api.github.com/repos/ceph/calamari/issues{/number}","pulls_url":"https://api.github.com/repos/ceph/calamari/pulls{/number}","milestones_url":"https://api.github.com/repos/ceph/calamari/milestones{/number}","notifications_url":"https://api.github.com/repos/ceph/calamari/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ceph/calamari/labels{/name}","releases_url":"https://api.github.com/repos/ceph/calamari/releases{/id}","deployments_url":"https://api.github.com/repos/ceph/calamari/deployments","created_at":"2013-06-12T23:32:33Z","updated_at":"2016-02-19T12:38:09Z","pushed_at":"2016-02-23T13:40:33Z","git_url":"git://github.com/ceph/calamari.git","ssh_url":"git@github.com:ceph/calamari.git","clone_url":"https://github.com/ceph/calamari.git","svn_url":"https://github.com/ceph/calamari","homepage":"","size":23220,"stargazers_count":174,"watchers_count":174,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":112,"mirror_url":null,"open_issues_count":19,"forks":112,"open_issues":19,"watchers":174,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ceph/calamari/pulls/397"},"html":{"href":"https://github.com/ceph/calamari/pull/397"},"issue":{"href":"https://api.github.com/repos/ceph/calamari/issues/397"},"comments":{"href":"https://api.github.com/repos/ceph/calamari/issues/397/comments"},"review_comments":{"href":"https://api.github.com/repos/ceph/calamari/pulls/397/comments"},"review_comment":{"href":"https://api.github.com/repos/ceph/calamari/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ceph/calamari/pulls/397/commits"},"statuses":{"href":"https://api.github.com/repos/ceph/calamari/statuses/c854e570400e6cce00e659b0b258768caa3717b6"}}}}