[vdr-epg2vdr] Initial import (#1093410).
Martin Gansser
martinkg at fedoraproject.org
Mon May 5 17:06:42 UTC 2014
commit 76c8a07c6874d74348df5a0284859a2c0a0a36fd
Author: Martin Gansser <mgansser at alice.de>
Date: Mon May 5 19:06:43 2014 +0200
Initial import (#1093410).
.gitignore | 1 +
sources | 1 +
vdr-epg2vdr-makefile.patch | 25 +++++++++++++++
vdr-epg2vdr.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 98 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8fdc0c5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/vdr-plugin-epg2vdr-324f3928b068255f0c4bf6ed0a575485f5ead1c4.tar.bz2
diff --git a/sources b/sources
index e69de29..559f613 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+aa2b90eb3e1111957b63aa1a100685d2 vdr-plugin-epg2vdr-324f3928b068255f0c4bf6ed0a575485f5ead1c4.tar.bz2
diff --git a/vdr-epg2vdr-makefile.patch b/vdr-epg2vdr-makefile.patch
new file mode 100644
index 0000000..c8fad8b
--- /dev/null
+++ b/vdr-epg2vdr-makefile.patch
@@ -0,0 +1,25 @@
+diff -Naur vdr-plugin-epg2vdr-324f3928b068255f0c4bf6ed0a575485f5ead1c4/Makefile.pre-1.7.35 vdr-plugin-epg2vdr-324f3928b068255f0c4bf6ed0a575485f5ead1c4.new/Makefile.pre-1.7.35
+--- vdr-plugin-epg2vdr-324f3928b068255f0c4bf6ed0a575485f5ead1c4/Makefile.pre-1.7.35 2014-03-22 17:30:38.000000000 +0100
++++ vdr-plugin-epg2vdr-324f3928b068255f0c4bf6ed0a575485f5ead1c4.new/Makefile.pre-1.7.35 2014-05-01 14:03:28.829117545 +0200
+@@ -35,7 +35,7 @@
+
+ ### Libraries
+
+-LIBS = -lmysqlclient
++LIBS = $(shell mysql_config --libs)
+
+ ### Allow user defined options to overwrite defaults:
+
+diff -Naur vdr-plugin-epg2vdr-324f3928b068255f0c4bf6ed0a575485f5ead1c4/Makefile.since-1.7.35 vdr-plugin-epg2vdr-324f3928b068255f0c4bf6ed0a575485f5ead1c4.new/Makefile.since-1.7.35
+--- vdr-plugin-epg2vdr-324f3928b068255f0c4bf6ed0a575485f5ead1c4/Makefile.since-1.7.35 2014-03-22 17:30:38.000000000 +0100
++++ vdr-plugin-epg2vdr-324f3928b068255f0c4bf6ed0a575485f5ead1c4.new/Makefile.since-1.7.35 2014-05-01 14:04:54.242088490 +0200
+@@ -34,7 +34,8 @@
+
+ #DEFINES += -D_IMG_LINK
+
+-LIBS = -lmysqlclient_r -luuid
++LIBS = -luuid
++LIBS += $(shell mysql_config --libs)
+ EPG2VDR_DATA_DIR = "/var/cache/vdr"
+
+ ifdef EPG2VDR_DATA_DIR
diff --git a/vdr-epg2vdr.spec b/vdr-epg2vdr.spec
new file mode 100644
index 0000000..79201fc
--- /dev/null
+++ b/vdr-epg2vdr.spec
@@ -0,0 +1,71 @@
+%global commit 324f3928b068255f0c4bf6ed0a575485f5ead1c4
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global gitdate 20130322
+
+Name: vdr-epg2vdr
+Version: 0.1.0
+Release: 5.%{gitdate}git%{shortcommit}%{?dist}
+Summary: A plugin to retrieve EPG data from a mysql database into VDR
+
+Group: Applications/Multimedia
+License: GPL+
+# how to get the tarball
+# go to http://projects.vdr-developer.org/git/vdr-plugin-tvscraper.git/commit/
+# click the link behind commit, then select the download links below.
+URL: http://projects.vdr-developer.org/git/vdr-plugin-epg2vdr.git
+Source0: http://projects.vdr-developer.org/git/vdr-plugin-epg2vdr.git/snapshot/vdr-plugin-epg2vdr-%{commit}.tar.bz2
+# patch reported upstream: http://projects.vdr-developer.org/issues/1820
+Patch0: http://projects.vdr-developer.org/attachments/1692/vdr-epg2vdr-makefile.patch
+
+BuildRequires: sqlite-devel
+BuildRequires: openssl-devel
+BuildRequires: mariadb-devel
+BuildRequires: libuuid-devel
+BuildRequires: vdr-devel >= 1.7.36
+Requires: vdr(abi)%{?_isa} = %{vdr_apiversion}
+
+%description
+This plugin is used to retrieve EPG data into the VDR. The EPG data
+was loaded from a mysql database.
+
+
+%prep
+%setup -qn vdr-plugin-epg2vdr-%{commit}
+%patch0 -p1
+iconv -f iso-8859-1 -t utf-8 README > README.utf8 ; mv README.utf8 README
+
+%build
+make CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC" %{?_smp_mflags} all
+
+%install
+make install DESTDIR=%{buildroot}
+# fix the perm
+chmod 0755 %{buildroot}/%{vdr_plugindir}/libvdr-*.so.%{vdr_apiversion}
+
+%find_lang %{name}
+
+%files -f %{name}.lang
+%doc COPYING HISTORY* README*
+%{vdr_plugindir}/libvdr-*.so.%{vdr_apiversion}
+
+%changelog
+* Sat May 03 2014 Martin Gansser <martinkg at fedoraproject.org> - 0.1.0-5.20130322git324f392
+- fixed description
+
+* Fri May 02 2014 Martin Gansser <martinkg at fedoraproject.org> - 0.1.0-4.20130322git324f392
+- Fix patch path
+- Fix bogus date in %%changelog
+- Fix comments
+
+* Thu May 01 2014 Martin Gansser <martinkg at fedoraproject.org> - 0.1.0-3.20130322git324f392
+- added permission fix to solve unstripped-binary-or-object warning
+
+* Fri Apr 25 2014 Martin Gansser <martinkg at fedoraproject.org> - 0.1.0-2.20130322git324f392
+- corrected version numbering in %%changelog
+- added CXXFLAGS
+- added openssl-devel as requirement
+- added mariadb-devel as requirement
+- added libuuid-devel as requirement
+
+* Fri Apr 25 2014 Martin Gansser <martinkg at fedoraproject.org> - 0.1.0-1.20130322git324f392
+- rebuild for initial release
More information about the scm-commits
mailing list