summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-12-26 02:22:14 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-12-26 02:22:14 +0100
commitd5d358838e91fb4da5236328b3273233e515c0b3 (patch)
treeb1bb76a2496eae22b7c86816c277324e21566ecb
parent038888bb273c29b8839bdfac4fdc774cffd8f17c (diff)
remove tmp file
-rw-r--r--bin/updater/owncloud-news-updater.spec50
-rw-r--r--bin/updater/packaging/rpm/owncloud-news-updater.spec34
2 files changed, 25 insertions, 59 deletions
diff --git a/bin/updater/owncloud-news-updater.spec b/bin/updater/owncloud-news-updater.spec
deleted file mode 100644
index 1f5634a00..000000000
--- a/bin/updater/owncloud-news-updater.spec
+++ /dev/null
@@ -1,50 +0,0 @@
-# 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: pkgconfig(systemd)
-BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-Requires: python3 >= 3.2
-Requires: python3-requests
-Requires: python3-argparse
-Requires: python3-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 %{_unitdir}
-
-%pre
-%service_add_pre %{name}.service
-
-%post
-%service_add_post %{name}.service
-
-%preun
-%service_del_preun %{name}.service
-
-%postun
-%service_del_postun %{name}.service
-
-%files
-%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
index 2ba7c5ff2..1f5634a00 100644
--- a/bin/updater/packaging/rpm/owncloud-news-updater.spec
+++ b/bin/updater/packaging/rpm/owncloud-news-updater.spec
@@ -1,4 +1,4 @@
-# Copyright (c) Bernhard Posselt <dev@bernhard-posselt.com>
+# Copyright (c) 2014 Bernhard Posselt <dev@bernhard-posselt.com>
Name: owncloud-news-updater
Version: 4.3.2
Release: 0
@@ -8,27 +8,43 @@ 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
+BuildRequires: pkgconfig(systemd)
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+Requires: python3 >= 3.2
+Requires: python3-requests
+Requires: python3-argparse
+Requires: python3-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}/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
+install -D -m 0644 %{buildroot}/systemd/owncloud-news-updater.service %{_unitdir}
+
+%pre
+%service_add_pre %{name}.service
+
+%post
+%service_add_post %{name}.service
+
+%preun
+%service_del_preun %{name}.service
+
+%postun
+%service_del_postun %{name}.service
+%files
%config %attr(0644,root,root) /etc/owncloud/news/updater.ini