summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-12-26 01:57:47 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-12-26 01:57:47 +0100
commitc3637bde6dfe6224f6508321ab739352982636a6 (patch)
treee063956864f31b888a9f2d0ec99a1ad18038d3c5
parentf88f8fcb7f7451babc8aa20ecc0dad06dd27e1ed (diff)
first stab at rpm spec file
-rw-r--r--bin/updater/owncloud-news-updater.spec44
-rw-r--r--bin/updater/packaging/rpm/owncloud-news-updater.spec34
-rw-r--r--bin/updater/requirements.txt2
3 files changed, 79 insertions, 1 deletions
diff --git a/bin/updater/owncloud-news-updater.spec b/bin/updater/owncloud-news-updater.spec
new file mode 100644
index 000000000..52198efe5
--- /dev/null
+++ b/bin/updater/owncloud-news-updater.spec
@@ -0,0 +1,44 @@
+# Copyright (c) 2014 Bernhard Posselt <dev@bernhard-posselt.com>
+Name: owncloud-news-updater
+Version: 4.3.2
+Release: 0
+Url: https://github.com/owncloud/news/tree/master/bin/updater
+Summary: A fast, deadlock free ownCloud News feed updater
+License: AGPL-3.0
+Group: Productivity/Networking/Web/Utilities
+Source: https://github.com/owncloud/news/tree/master/bin/updater
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+Requires: python > 3.2
+Requires: python-requests
+Requires: python-argparse
+Requires: python-xml
+BuildArch: noarch
+
+%description
+ownCloud does not require people to install threading or multiprocessing libraries. Because the feed update process is mainly limited by I/O, parallell fetching of RSS feed updates can speed up the updating process significantly. In addition the cronjob can get into a deadlock (https://github.com/owncloud/core/issues/3221) which will cause the updater to get stuck resulting in your feeds not to being updated anymore. This can be solved by using a script that uses the updater API: https://github.com/owncloud/news/wiki/Cron-1.2
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+python setup.py build
+
+%install
+python setup.py install --prefix=%{_prefix} --install-scripts=/usr/bin --root=%{buildroot}
+mkdir -p /etc/owncloud/news
+install -D -m 0644 %{buildroot}/example-config.ini /etc/owncloud/news/updater.ini
+install -D -m 0644 %{buildroot}/systemd/owncloud-news-updater.service /etc/systemd/system/
+
+%post
+systemctl enable owncloud-news-updater.service
+systemctl start owncloud-news-updater.service
+
+%preun
+systemctl disable owncloud-news-updater.service
+systemctl stop owncloud-news-updater.service
+
+%config %attr(0644,root,root) /etc/owncloud/news/updater.ini
+
+
diff --git a/bin/updater/packaging/rpm/owncloud-news-updater.spec b/bin/updater/packaging/rpm/owncloud-news-updater.spec
new file mode 100644
index 000000000..2ba7c5ff2
--- /dev/null
+++ b/bin/updater/packaging/rpm/owncloud-news-updater.spec
@@ -0,0 +1,34 @@
+# Copyright (c) Bernhard Posselt <dev@bernhard-posselt.com>
+Name: owncloud-news-updater
+Version: 4.3.2
+Release: 0
+Url: https://github.com/owncloud/news/tree/master/bin/updater
+Summary: A fast, deadlock free ownCloud News feed updater
+License: AGPL-3.0
+Group: Productivity/Networking/Web/Utilities
+Source: https://github.com/owncloud/news/tree/master/bin/updater
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+Requires: python > 3.2
+Requires: python-requests
+Requires: python-argparse
+Requires: python-xml
+BuildArch: noarch
+
+%description
+ownCloud does not require people to install threading or multiprocessing libraries. Because the feed update process is mainly limited by I/O, parallell fetching of RSS feed updates can speed up the updating process significantly. In addition the cronjob can get into a deadlock (https://github.com/owncloud/core/issues/3221) which will cause the updater to get stuck resulting in your feeds not to being updated anymore. This can be solved by using a script that uses the updater API: https://github.com/owncloud/news/wiki/Cron-1.2
+
+%build
+python setup.py build
+
+%install
+python setup.py install --prefix=%{_prefix} --install-scripts=/usr/bin --root=%{buildroot}
+mkdir -p /etc/owncloud/news
+install -D -m 0644 %{buildroot}/systemd/owncloud-news-updater.service /etc/systemd/system/
+install -D -m 0644 %{buildroot}/example-config.ini /etc/owncloud/news/updater.ini
+systemctl enable owncloud-news-updater.service
+
+%config %attr(0644,root,root) /etc/owncloud/news/updater.ini
+
+
diff --git a/bin/updater/requirements.txt b/bin/updater/requirements.txt
index 8e9709c5b..f2293605c 100644
--- a/bin/updater/requirements.txt
+++ b/bin/updater/requirements.txt
@@ -1 +1 @@
-requests==2.5.0 \ No newline at end of file
+requests