• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Simple RSS Reader inspired by Gxxgle Reader


Commit MetaInfo

Revisióndae3564c642aacbce18124cde8ac8466a53969b0 (tree)
Tiempo2013-07-16 02:11:29
Autorhylom <hylom@hylo...>
Commiterhylom

Log Message

Merge branch 'live'

Cambiar Resumen

Diferencia incremental

--- /dev/null
+++ b/dist/Makefile
@@ -0,0 +1,31 @@
1+SPEC=grrreader.spec
2+VERSION=0.0.5
3+DIST_DIR=dist
4+TGZ_NAME=grrreader-$(VERSION).tar.gz
5+
6+all: rpm
7+tarball: $(TGZ_NAME)
8+
9+rpm: rpmbuild/SPECS/$(SPEC) rpmbuild/SOURCES/$(TGZ_NAME)
10+ rpmbuild --define "_topdir ${PWD}/rpmbuild" -ba $(SPEC)
11+ cp rpmbuild/RPMS/noarch/grrreader-$(VERSION)-*.rpm .
12+
13+rpmbuild/SPECS/$(SPEC): $(SPEC) rpmbuild/SPECS
14+ cp $< $@
15+
16+rpmbuild/SOURCES/$(TGZ_NAME): $(TGZ_NAME)
17+ cp $< $@
18+
19+rpmbuild:
20+ mkdir -p rpmbuild
21+
22+rpmbuild/%: rpmbuild
23+ mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
24+
25+$(TGZ_NAME):
26+ cd ..; git archive --prefix=grrreader-$(VERSION)/ --format=tar release | gzip > $(DIST_DIR)/$(TGZ_NAME)
27+
28+clean:
29+ rm -rf rpmbuild
30+ rm -f $(TGZ_NAME)
31+ rm -f grrreader-$(VERSION)-*.rpm
--- /dev/null
+++ b/dist/grrreader.spec
@@ -0,0 +1,57 @@
1+# grreader.spec
2+
3+Summary: HTML-Based RSS Reader inspired by widely known discontinued reader
4+URL: http://hylom.net/grrreader
5+Name: grrreader
6+Version: 0.0.5
7+Group: Applications/Internet
8+Release: 1
9+License: GPLv2
10+Source0: http://hylom.net/%{name}-%{version}.tar.gz
11+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12+BuildArch: noarch
13+
14+Requires: nodejs >= 0.8.0
15+Requires: python >= 2.6.6
16+Requires: python-dateutil >= 1.4.1
17+Requires: python-feedparser >= 5.1.2
18+#Requires: /usr/bin/forever
19+Requires: bash
20+
21+%description
22+Grrreader is HTML and Ajax based RSS Reader application based on Node.js and Python.
23+
24+%prep
25+%setup
26+sed -i -e 's/^TARGET_SCRIPT.*$/TARGET_SCRIPT=\/usr\/share\/grrreader\/client\/app.js/' initscript
27+
28+
29+%build
30+cd client; npm install
31+
32+%install
33+mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/grrreader
34+cp -pr backend ${RPM_BUILD_ROOT}%{_datadir}/grrreader/
35+cp -pr client ${RPM_BUILD_ROOT}%{_datadir}/grrreader/
36+mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/init.d
37+install -m 755 initscript ${RPM_BUILD_ROOT}%{_sysconfdir}/init.d/grrreader
38+
39+
40+%clean
41+rm -rf ${RPM_BUILD_ROOT}
42+
43+%preun
44+/etc/init.d/grrreader stop
45+
46+%files
47+%defattr(-, root, root, -)
48+%doc README.md
49+%doc license.txt
50+%{_datadir}/grrreader/backend
51+%{_datadir}/grrreader/client
52+%{_sysconfdir}/init.d/grrreader
53+
54+%changelog
55+* Tue Jul 16 2013 Hiromichi Matsushima <hylom at hylom.net> - 0.0.5-1
56+- Create RPM package
57+
--- a/initscript
+++ b/initscript
@@ -8,7 +8,7 @@
88
99
1010 DAEMON_NAME=grrreader
11-TARGET_SCRIPT=/var/grrreader/app.js
11+TARGET_SCRIPT=/var/grrreader/client/app.js
1212 LOGFILE=/var/log/${DAEMON_NAME}.log
1313 STDOUTFILE=/var/log/${DAEMON_NAME}.out
1414 ERRORFILE=/var/log/${DAEMON_NAME}.err