Compare commits

..

51 Commits
f12 ... master

Author SHA1 Message Date
Fedora Release Engineering
8d9e24e84a - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-25 18:35:55 +00:00
Fedora Release Engineering
445425bbaf - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-01 12:17:12 +00:00
Igor Gnatenko
cc87786908 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:18 +01:00
Igor Gnatenko
f4c7a8f032 add BuildRequires: gcc-c++
Reference: https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot
2018-07-19 20:56:42 +02:00
Fedora Release Engineering
d0ea54192e - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 11:33:53 +00:00
Björn Esser
9a0961b907
Rebuilt for libjson-c.so.4 (json-c v0.13.1) 2018-03-06 15:16:11 +01:00
Fedora Release Engineering
a5f019143c - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-08 04:08:38 +00:00
Björn Esser
4d9fd75609
Rebuilt for libjson-c.so.3 2017-12-10 23:35:17 +01:00
Björn Esser
1682488a36
Fix build by adding BR: perl-interpreter 2017-12-10 20:41:32 +01:00
Fedora Release Engineering
29cf712789 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 03:56:34 +00:00
Fedora Release Engineering
e4dee2c0cd - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 22:53:34 +00:00
Fedora Release Engineering
f5d89d4110 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 22:15:40 +00:00
Ben Boeckel
a48df2426a ignore ncurses6 patch in f23 2016-07-23 23:51:36 -04:00
Fedora Release Engineering
3cc879e27a - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 09:18:18 +00:00
Ben Boeckel
64692385eb add patch for ncurses6 2015-08-23 10:40:43 -04:00
Ben Boeckel
b6fe55d36f update to 2.9
- use %license macro
- backup patched files
2015-08-23 10:31:19 -04:00
Ben Boeckel
c8d98a94f3 use %make_install 2015-08-02 12:58:49 -04:00
Dennis Gilmore
366e8990c9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-17 21:45:33 +00:00
Kalev Lember
43c0b328bf Rebuilt for GCC 5 C++11 ABI change 2015-05-02 16:11:48 +02:00
Jamie Nguyen
f80d661275 Import patch 2014-12-05 16:13:12 +00:00
Jamie Nguyen
75a500e6b8 Add solarized-light colorscheme 2014-12-05 15:46:02 +00:00
Jamie Nguyen
92e53aa36a Improve solarized dark colorscheme 2014-12-04 18:07:40 +00:00
Jamie Nguyen
67e5659d0b Remove executable permissions from contrib/ scripts 2014-12-04 17:58:51 +00:00
Jamie Nguyen
b9a88e69e5 Include contrib/ folder 2014-12-04 16:39:44 +00:00
Peter Robinson
ff80b3ee1d - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-17 11:44:07 +00:00
Dennis Gilmore
083e005a76 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 07:41:47 -05:00
Jamie Nguyen
ce9470bb9f Update to upstrem release 2.8 2014-03-26 17:28:07 +00:00
Jamie Nguyen
c786dcb58d Update to upstream release 2.7 2013-09-03 21:54:57 +01:00
Dennis Gilmore
bd0c72301d - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-03 08:14:36 -05:00
Jamie Nguyen
333a48b790 Update to upstream release 2.6 2013-03-19 22:58:13 +00:00
Jamie Nguyen
2eceee827e Apply newsbeuter-2.5-json-boolean-include.patch 2013-02-22 10:01:05 +00:00
Dennis Gilmore
527559cfee - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 02:14:37 -06:00
Dennis Gilmore
50a2da0b32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-19 23:42:39 -05:00
Dennis Gilmore
4c324657a5 - Rebuilt for c++ ABI breakage 2012-02-28 13:20:49 -06:00
Ben Boeckel
35739b1133 Add remaining missing includes 2012-02-18 15:58:28 -05:00
Ben Boeckel
cf6bfe5c02 And another... 2012-02-18 15:28:41 -05:00
Ben Boeckel
d1df30cce9 Another missing include 2012-02-18 15:21:32 -05:00
Ben Boeckel
8abd48a6e8 Add a patch for missing unistd.h include 2012-02-18 15:03:16 -05:00
Ben Boeckel
d161ff6c55 Add json-c-devel BR 2012-02-18 14:09:05 -05:00
Ben Boeckel
b81d18317e Spec cleanups 2012-02-18 13:53:40 -05:00
Ben Boeckel
414366219a Update to 2.5 2012-01-13 14:31:27 -05:00
Dennis Gilmore
81a2c430db - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-13 05:06:11 -06:00
Ben Boeckel
bcbe42a97e Update to 2.4 2011-03-10 09:21:14 -05:00
Dennis Gilmore
03cc3c187b - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 18:17:56 -06:00
Thomas Janssen
f95494a362 rebuild for new libxml2 2010-11-05 10:50:23 +01:00
Jesse Keating
26c8f83b3a - Rebuilt for gcc bug 634757 2010-09-29 14:52:10 -07:00
Thomas Janssen
ab1e936b50 update to 2.3 2010-09-20 13:01:07 +02:00
Fedora Release Engineering
ee52e0262c dist-git conversion 2010-07-29 04:21:39 +00:00
thomasj
042c14d5b2 bugfix release 2.2 plus added google reader support 2010-05-18 14:20:13 +00:00
thomasj
1e20ebb79e New upstream source 2.1 2010-01-25 12:12:01 +00:00
thomasj
2816d9120f - Added BR ncurses-devel
Fri Oct 02 2009 Thomas Janssen <thomasj@fedoraproject.org> 2.0-7
- Minor spec changes
Sun Jun 28 2009 Byron Clark <byron@theclarkfamily.name> 2.0-6
- Correct changelog version numbers
- Generate config.mk
- Removed executable bits on manpages
Wed Jun 10 2009 Byron Clark <byron@theclarkfamily.name> 2.0-5
- Better summary
Sat Jun 6 2009 Byron Clark <byron@theclarkfamily.name> 2.0-4
- Use find_lang macro for translations
- Remove explicit library requires
- Use _prefix macro instead of an explicit prefix
- Install documentation with doc
Sun May 31 2009 Byron Clark <byron@theclarkfamily.name> 2.0-3
- Add a description
Thu May 21 2009 Byron Clark <byron@theclarkfamily.name> 2.0-2
- Fix libxml2 dependency
Thu May 21 2009 Byron Clark <byron@theclarkfamily.name> 2.0-1
- Initial release
2009-11-14 16:12:58 +00:00
7 changed files with 293 additions and 23 deletions

6
.gitignore vendored
View File

@ -1,2 +1,8 @@
newsbeuter-2.2.tar.gz
/newsbeuter-2.3.tar.gz
/newsbeuter-2.4.tar.gz
/newsbeuter-2.5.tar.gz
/newsbeuter-2.6.tar.gz
/newsbeuter-2.7.tar.gz
/newsbeuter-2.8.tar.gz
/newsbeuter-2.9.tar.gz

View File

@ -0,0 +1,33 @@
From dca71f9bc1c48bfdef339a9c27fada9882b2c10c Mon Sep 17 00:00:00 2001
From: Jamie Nguyen <j@jamielinux.com>
Date: Fri, 5 Dec 2014 15:22:31 +0000
Subject: [PATCH 2/2] Add solarized-light colorscheme
---
contrib/colorschemes/solarized-light | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 contrib/colorschemes/solarized-light
diff --git a/contrib/colorschemes/solarized-light b/contrib/colorschemes/solarized-light
new file mode 100644
index 0000000..52b88ea
--- /dev/null
+++ b/contrib/colorschemes/solarized-light
@@ -0,0 +1,14 @@
+# solarized color scheme for newsbeuter <http://www.newsbeuter.org/>
+# more on solarized: http://ethanschoonover.com/solarized
+
+color article default default
+color background default default
+color info default white
+color listfocus white yellow
+color listfocus_unread default yellow
+color listnormal default default
+color listnormal_unread black default
+
+highlight article "^(Title):.*$" blue default
+highlight article "https?://[^ ]+" red default
+highlight article "\\[image\\ [0-9]+\\]" green default
--
2.1.0

View File

@ -0,0 +1,36 @@
From 26701fe66aa7d2efc17042e2ec7004e4b0aee233 Mon Sep 17 00:00:00 2001
From: Jamie Nguyen <j@jamielinux.com>
Date: Fri, 5 Dec 2014 15:22:13 +0000
Subject: [PATCH 1/2] Improve solarized-dark colorscheme
---
contrib/colorschemes/solarized-dark | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/contrib/colorschemes/solarized-dark b/contrib/colorschemes/solarized-dark
index d6cbb0d..4e9dc57 100644
--- a/contrib/colorschemes/solarized-dark
+++ b/contrib/colorschemes/solarized-dark
@@ -1,8 +1,14 @@
# solarized color scheme for newsbeuter <http://www.newsbeuter.org/>
# more on solarized: http://ethanschoonover.com/solarized
-color listnormal color244 color234
-color listfocus color166 color235
-color info color136 color235
-color background color244 color234
-color article color244 color234
+color article default default
+color background default default
+color info default black
+color listfocus black yellow
+color listfocus_unread default yellow
+color listnormal default default
+color listnormal_unread white default
+
+highlight article "^(Title):.*$" blue default
+highlight article "https?://[^ ]+" red default
+highlight article "\\[image\\ [0-9]+\\]" green default
--
2.1.0

View File

@ -0,0 +1,14 @@
diff -u -r -U5 --no-dereference newsbeuter-2.9/config.sh newsbeuter-2.9.ncurses6/config.sh
--- newsbeuter-2.9/config.sh 2015-08-23 10:38:43.468631663 -0400
+++ newsbeuter-2.9.ncurses6/config.sh 2015-08-23 10:38:01.000000000 -0400
@@ -108,9 +108,9 @@
( check_pkg "json" "" 0.11 || check_pkg "json-c" "" 0.11 ) || fail "json-c"
if [ `uname -s` = "Darwin" ]; then
check_custom "ncurses5.4" "ncurses5.4-config" || fail "ncurses5.4"
elif [ `uname -s` != "OpenBSD" ]; then
- check_custom "ncursesw5" "ncursesw5-config" || fail "ncursesw"
+ check_custom "ncursesw6" "ncursesw6-config" || fail "ncursesw"
fi
check_ssl_implementation
all_aboard_the_fail_boat

View File

@ -0,0 +1,53 @@
Index: newsbeuter-2.9/src/feedhq_api.cpp
===================================================================
--- newsbeuter-2.9.orig/src/feedhq_api.cpp
+++ newsbeuter-2.9/src/feedhq_api.cpp
@@ -132,7 +132,7 @@ std::vector<tagged_feedurl> feedhq_api::
// TODO: parse result
struct json_object * reply = json_tokener_parse(result.c_str());
- if (is_error(reply)) {
+ if (reply == NULL) {
LOG(LOG_ERROR, "feedhq_api::get_subscribed_urls: failed to parse response as JSON.");
return urls;
}
Index: newsbeuter-2.9/src/oldreader_api.cpp
===================================================================
--- newsbeuter-2.9.orig/src/oldreader_api.cpp
+++ newsbeuter-2.9/src/oldreader_api.cpp
@@ -134,7 +134,7 @@ std::vector<tagged_feedurl> oldreader_ap
// TODO: parse result
struct json_object * reply = json_tokener_parse(result.c_str());
- if (is_error(reply)) {
+ if (reply == NULL) {
LOG(LOG_ERROR, "oldreader_api::get_subscribed_urls: failed to parse response as JSON.");
return urls;
}
Index: newsbeuter-2.9/src/ttrss_api.cpp
===================================================================
--- newsbeuter-2.9.orig/src/ttrss_api.cpp
+++ newsbeuter-2.9/src/ttrss_api.cpp
@@ -113,19 +113,19 @@ struct json_object * ttrss_api::run_op(c
LOG(LOG_DEBUG, "ttrss_api::run_op(%s,...): post=%s reply = %s", op.c_str(), req_data.c_str(), result.c_str());
struct json_object * reply = json_tokener_parse(result.c_str());
- if (is_error(reply)) {
+ if (reply == NULL) {
LOG(LOG_ERROR, "ttrss_api::run_op: reply failed to parse: %s", result.c_str());
return NULL;
}
struct json_object * status = json_object_object_get(reply, "status");
- if (is_error(status)) {
+ if (status == NULL) {
LOG(LOG_ERROR, "ttrss_api::run_op: no status code");
return NULL;
}
struct json_object * content = json_object_object_get(reply, "content");
- if (is_error(content)) {
+ if (content == NULL) {
LOG(LOG_ERROR, "ttrss_api::run_op: no content part in answer from server");
return NULL;
}

View File

@ -1,16 +1,31 @@
Name: newsbeuter
Version: 2.3
Release: 1%{?dist}
Summary: Configurable text-based feed reader
Name: newsbeuter
Version: 2.9
Release: 12%{?dist}
Summary: Configurable text-based feed reader
Group: Applications/Internet
License: MIT
URL: http://newsbeuter.org/
Source0: http://newsbeuter.org/downloads/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: MIT
URL: http://newsbeuter.org/
Source0: http://newsbeuter.org/downloads/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig, gettext, stfl-devel, sqlite-devel, libcurl-devel, libxml2-devel, ncurses-devel
Requires: stfl
# https://github.com/akrennmair/newsbeuter/pull/157
# The included colorscheme is suboptimal.
Patch0: %{name}-2.8-Improve-solarized-dark-colorscheme.patch
Patch1: %{name}-2.8-Add-solarized-light-colorscheme.patch
Patch2: %{name}-2.9-ncurses6.patch
Patch3: %{name}-2.9_json-c_013.patch
BuildRequires: gcc-c++
BuildRequires: gettext
BuildRequires: json-c-devel
BuildRequires: libcurl-devel
BuildRequires: libxml2-devel
BuildRequires: ncurses-devel
BuildRequires: perl-interpreter
BuildRequires: pkgconfig
BuildRequires: sqlite-devel
BuildRequires: stfl-devel
Requires: stfl
%description
Newsbeuter is a feed reader for text terminals. Newsbeuter's great
@ -21,37 +36,150 @@ keyboard.
%prep
%setup -q
%patch0 -p1 -b .improve-solarized-dark
%patch1 -p1 -b .add-solarized-light
%if 0%{?fedora} > 23
%patch2 -p1 -b .ncurses6
%endif
%if 0%{?fedora} >= 28
%patch3 -p1 -b .json-c_013
%endif
%build
export CXXFLAGS="%{optflags}"
export LDFLAGS="%{?__global_ldflags}"
./config.sh
make %{?_smp_mflags} prefix=%{_prefix}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} prefix=%{_prefix}
# %doc will be used in %files to pull in the documentation
rm -rf %{buildroot}/%{_prefix}/share/doc/%{name}
%make_install prefix=%{_prefix}
# %%doc will be used in %%files to pull in the documentation
rm -rf %{buildroot}/%{_datadir}/doc/%{name}
# remove executable permissions on man pages
find %{buildroot}/%{_prefix}/share/man -type f -exec chmod -x {} ';'
find %{buildroot}/%{_mandir} -type f -exec chmod -x '{}' ';'
# remove exectuable permissions on contrib/ scripts
find contrib/ -type f -exec chmod -x '{}' ';'
%find_lang %{name}
%clean
rm -rf %{buildroot}
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc README LICENSE doc/xhtml/newsbeuter.html doc/example-config
%doc README doc/xhtml/newsbeuter.html doc/example-config
%doc contrib/
%license LICENSE
%{_mandir}/man1/*
%{_bindir}/*
%changelog
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.9-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.9-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.9-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Mar 06 2018 Björn Esser <besser82@fedoraproject.org> - 2.9-9
- Rebuilt for libjson-c.so.4 (json-c v0.13.1)
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.9-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sun Dec 10 2017 Björn Esser <besser82@fedoraproject.org> - 2.9-7
- Rebuilt for libjson-c.so.3
* Sun Dec 10 2017 Björn Esser <besser82@fedoraproject.org> - 2.9-6
- Fix build by adding BR: perl-interpreter
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.9-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.9-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Sun Aug 23 2015 Ben Boeckel <mathstuf@gmail.com> - 2.9-1
- update to 2.9
- use %%license macro
- backup patched files
- use ncurses6
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.8-7
- Rebuilt for GCC 5 C++11 ABI change
* Fri Dec 05 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.8-6
- add solarized-light colorscheme
* Thu Dec 04 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.8-5
- remove executable permissions from contrib/ scripts
- improve solarized dark colorscheme
* Thu Dec 04 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.8-4
- include contrib/ folder
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed Mar 26 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.8-1
- update to upstream release 2.8
- remove redundant patch (merged upstream)
* Tue Sep 03 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.7-1
- update to upstream release 2.7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Tue Mar 19 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.6-1
- update to upstream release 2.6
- remove redundant patch
* Fri Feb 22 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.5-5
- apply newsbeuter-2.5-json-boolean-include.patch
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-2
- Rebuilt for c++ ABI breakage
* Fri Jan 13 2012 Ben Boeckel <mathstuf@gmail.com> - 2.5-1
- Update to 2.5
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Thu Mar 10 2011 Ben Boeckel <mathstuf@gmail.com> - 2.4-1
- Update to 2.4
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Fri Nov 05 2010 Thomas Janssen <thomasj@fedoraproject.org> 2.3-3
- rebuild for new libxml2
* Wed Sep 29 2010 jkeating - 2.3-2
- Rebuilt for gcc bug 634757
* Mon Sep 20 2010 Thomas Janssen <thomasj@fedoraproject.org> 2.3-1
- update to 2.3
- newsbeuter 2.3
* Tue May 18 2010 Thomas Janssen <thomasj@fedoraproject.org> 2.2-1
- bugfix release

View File

@ -1 +1 @@
b007488876c8dc63114bc626d33799b5 newsbeuter-2.3.tar.gz
9cf332dc7e591023147bda7add430835 newsbeuter-2.9.tar.gz