Simple RSS Reader inspired by Gxxgle Reader
Revision | 2f3d81d04efd68f7a9c05e8e67e33e302f99f5bd (tree) |
---|---|
Zeit | 2013-07-16 02:11:19 |
Autor | hylom <hylom@hylo...> |
Commiter | hylom |
dist: fix spec and makefile
@@ -28,3 +28,4 @@ $(TGZ_NAME): | ||
28 | 28 | clean: |
29 | 29 | rm -rf rpmbuild |
30 | 30 | rm -f $(TGZ_NAME) |
31 | + rm -f grrreader-$(VERSION)-*.rpm |
@@ -11,11 +11,11 @@ Source0: http://hylom.net/%{name}-%{version}.tar.gz | ||
11 | 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
12 | 12 | BuildArch: noarch |
13 | 13 | |
14 | -Requires: nodejs >= 0.10.0 | |
14 | +Requires: nodejs >= 0.8.0 | |
15 | 15 | Requires: python >= 2.6.6 |
16 | 16 | Requires: python-dateutil >= 1.4.1 |
17 | 17 | Requires: python-feedparser >= 5.1.2 |
18 | -Requires: /usr/lib/node_modules/forever/bin/forever | |
18 | +#Requires: /usr/bin/forever | |
19 | 19 | Requires: bash |
20 | 20 | |
21 | 21 | %description |
@@ -23,7 +23,8 @@ Grrreader is HTML and Ajax based RSS Reader application based on Node.js and Pyt | ||
23 | 23 | |
24 | 24 | %prep |
25 | 25 | %setup |
26 | -sed -i -e 's/\/var\/grrreader\/app.js/\/usr\/share\/grrreader\/app.js/' initscript | |
26 | +sed -i -e 's/^TARGET_SCRIPT.*$/TARGET_SCRIPT=\/usr\/share\/grrreader\/client\/app.js/' initscript | |
27 | + | |
27 | 28 | |
28 | 29 | %build |
29 | 30 | cd client; npm install |
@@ -39,6 +40,9 @@ install -m 755 initscript ${RPM_BUILD_ROOT}%{_sysconfdir}/init.d/grrreader | ||
39 | 40 | %clean |
40 | 41 | rm -rf ${RPM_BUILD_ROOT} |
41 | 42 | |
43 | +%preun | |
44 | +/etc/init.d/grrreader stop | |
45 | + | |
42 | 46 | %files |
43 | 47 | %defattr(-, root, root, -) |
44 | 48 | %doc README.md |
@@ -8,7 +8,7 @@ | ||
8 | 8 | |
9 | 9 | |
10 | 10 | DAEMON_NAME=grrreader |
11 | -TARGET_SCRIPT=/var/grrreader/app.js | |
11 | +TARGET_SCRIPT=/var/grrreader/client/app.js | |
12 | 12 | LOGFILE=/var/log/${DAEMON_NAME}.log |
13 | 13 | STDOUTFILE=/var/log/${DAEMON_NAME}.out |
14 | 14 | ERRORFILE=/var/log/${DAEMON_NAME}.err |