commit c5d4969cac4090b929d50fd1e5c01a3697384191
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Wed Sep 6 13:59:56 2017 +0200
Initial import
.gitignore | 1 +
libvlcpp-snapshot.sh | 22 ++++++++++++++++++++++
libvlcpp.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 76 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6cdaa46 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+libvlcpp-*.tar.xz
diff --git a/libvlcpp-snapshot.sh b/libvlcpp-snapshot.sh
new file mode 100755
index 0000000..f3fcd63
--- /dev/null
+++ b/libvlcpp-snapshot.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+set -e
+
+tmp=$(mktemp -d)
+
+trap cleanup EXIT
+cleanup() {
+ set +e
+ [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
+}
+
+unset CDPATH
+pwd=$(pwd)
+date=$(date +%Y%m%d)
+package=libvlcpp
+
+pushd "$tmp"
+git clone
https://code.videolan.org/videolan/libvlcpp.git
+cd $package
+git archive --prefix="${package}-${date}/" --format=tar master | xz >
"$pwd"/${package}-${date}.tar.xz
+popd
diff --git a/libvlcpp.spec b/libvlcpp.spec
new file mode 100644
index 0000000..8b76d4b
--- /dev/null
+++ b/libvlcpp.spec
@@ -0,0 +1,52 @@
+%global date 20170905
+
+Name: libvlcpp
+Version: 0.1.0
+Release: 1.%{?date}git%{?dist}
+Summary: C++ bindings for libvlc
+
+License: LGPLv2+
+URL:
https://code.videolan.org/videolan/libvlcpp
+Source0: libvlcpp-%{date}.tar.xz
+Source9: libvlcpp-snapshot.sh
+Patch0: libvlcpp-%{version}-pkgconfig.patch
+
+BuildArch: noarch
+
+
+%description
+C++ bindings for libvlc.
+
+%package devel
+Summary: Development files for %{name}
+
+%description devel
+C++ bindings for libvlc.
+
+
+%prep
+%autosetup -p1 -n %{name}-%{date}
+./bootstrap
+
+
+%build
+%configure
+%make_build
+
+
+%install
+%make_install INSTALL="install -p"
+find %{buildroot} -name '*.la' -exec rm -f {} ';'
+
+
+
+%files devel
+%doc AUTHORS NEWS
+%license COPYING
+%{_includedir}/vlcpp/
+%{_datadir}/pkgconfig/libvlcpp.pc
+
+
+%changelog
+* Mon Sep 04 2017 Nicolas Chauvet <kwizart(a)gmail.com> - 0.1.0-1
+- Initial spec file
diff --git a/sources b/sources
index e69de29..b1e326b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+39b17d49e1832f7625b2c2569ef10847 libvlcpp-20170905.tar.xz