commit 5d1f12a8787721e6d036fc406c69c95f0e5a9e08
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Mon Aug 26 11:51:59 2019 +0200
Initial import for vlc-bittorrent
.gitignore | 1 +
sources | 1 +
vlc-bittorrent.spec | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 75 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1ecd4ba 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+vlc-bittorrent-*.tar.gz
diff --git a/sources b/sources
index e69de29..34119cb 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+033b3b4c17841923a428cbb8e8398f2d vlc-bittorrent-2.7.tar.gz
diff --git a/vlc-bittorrent.spec b/vlc-bittorrent.spec
new file mode 100644
index 0000000..96f1d7e
--- /dev/null
+++ b/vlc-bittorrent.spec
@@ -0,0 +1,73 @@
+Name: vlc-bittorrent
+Version: 2.7
+Release: 1%{?dist}
+Summary: Bittorrent plugin for VLC
+
+License: GPLv3+
+URL:
https://github.com/johang/vlc-bittorrent
+Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+
+BuildRequires: gcc-c++
+BuildRequires: libtool
+BuildRequires: desktop-file-utils
+
+BuildRequires: boost-devel
+BuildRequires: rb_libtorrent-devel
+BuildRequires: vlc-devel >= 3.0.0
+
+Requires: vlc-core%{_isa}
+
+# for compatibility
+Provides: vlc-plugin-bittorrent = %{version}-%{release}
+
+
+%description
+With vlc-bittorrent, you can open a .torrent file or magnet link with
+VLC and stream any media that it contains.
+
+
+%prep
+%autosetup
+autoreconf -vif
+
+%build
+%configure \
+ --disable-static \
+ --libdir=%{_libdir}/vlc/plugins/access
+
+%make_build
+
+
+%install
+%make_install
+find %{buildroot}%{_libdir} -name "*.la" -delete
+
+# desktop validation
+desktop-file-validate \
+ %{buildroot}%{_datadir}/applications/vlc-plugin-bittorrent.desktop
+
+
+%post
+if [ $1 == 1 ] ; then
+ %{_libdir}/vlc/vlc-cache-gen %{_libdir}/vlc/plugins &>/dev/null
+fi || :
+
+%postun
+if [ $1 == 1 ] ; then
+ %{_libdir}/vlc/vlc-cache-gen %{_libdir}/vlc/plugins &>/dev/null
+fi || :
+
+
+%files
+%license LICENSE
+%doc README.md
+%{_libdir}/vlc/plugins/access/libaccess_bittorrent_plugin.so
+%{_datadir}/applications/vlc-plugin-bittorrent.desktop
+
+
+%changelog
+* Wed Aug 21 2019 Nicolas Chauvet <kwizart(a)gmail.com> - 2.7-1
+- Update to 2.7
+
+* Mon Jun 17 2019 Nicolas Chauvet <kwizart(a)gmail.com> - 2.6-1
+- Initial spec file