diff --git a/res/miraclecast.spec b/res/miraclecast.spec new file mode 100644 index 0000000..e199155 --- /dev/null +++ b/res/miraclecast.spec @@ -0,0 +1,60 @@ +%global commit c3c868e523f450ad4f0d77f5484a3b61f08120b7 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: miraclecast +Version: 1.0 +Release: 1.git%{shortcommit}%{?dist} +Summary: Connect external monitors to your system via Wifi-Display +License: LGPL +URL: https://github.com/albfan/miraclecast +Source0: https://github.com/albfan/miraclecast/archive/%{commit}/%{name}-%{shortcommit}.tar.gz +BuildRequires: autoconf, automake, libtool +BuildRequires: readline-devel, glib2-devel, systemd-devel + +%description +The MiracleCast project provides software to connect external monitors to your system via Wi-Fi. It is compatible to the Wifi-Display specification also known as Miracast. MiracleCast implements the Display-Source as well as Display-Sink side. + +The Display-Source side allows you to connect external displays to your system and stream local content to the device. A lot of effort is put into making this as easy as connecting external displays via HDMI. + +On the other hand, the Display-Sink side allows you to create wifi-capable external displays yourself. You can use it on your embedded devices or even on full desktops to allow other systems to use your device as external display. + + +%prep +%autosetup -n %{name}-%{shortcommit} + + +%build +mkdir build +cd build +../autogen.sh g --prefix=%{_prefix} +%make_build + + +%install +rm -rf $RPM_BUILD_ROOT +cd build +%make_install + + +%files +%license COPYING LICENSE_gdhcp LICENSE_htable LICENSE_lgpl +%doc README.md +%{_sysconfdir}/dbus-1/system.d/org.freedesktop.miracle.conf +%{_bindir}/miracle-wifictl +%{_bindir}/miracle-omxplayer +%{_bindir}/miracle-gst +%{_bindir}/miracle-sinkctl +%{_bindir}/miracled +%{_bindir}/miracle-dhcp +%{_bindir}/miracle-uibcctl +%{_bindir}/miracle-wifid +%{_bindir}/gstplayer +%{_bindir}/uibc-viewer +%{_datadir}/bash-completion/completions/miracle-wifictl +%{_datadir}/bash-completion/completions/miracle-sinkctl +%{_datadir}/bash-completion/completions/miracle-wifid + + +%changelog +* Wed Nov 21 2018 Graham White +- first build diff --git a/res/miraclecast.spec-README.md b/res/miraclecast.spec-README.md new file mode 100644 index 0000000..4fc60b6 --- /dev/null +++ b/res/miraclecast.spec-README.md @@ -0,0 +1,24 @@ +This file can be used with the rpmbuild or mock commands to create a binary RPM. Tested and working on Fedora 28 x86\_64. + +Example usage (for Fedora 28 systems): +1. Create a tar.gz file of the source code and add the short name of the commit to the tar file, for the most recent commit at the time of writing this would be: + * `git clone https://github.com/albfan/miraclecast.git miraclecast-c3c868e` + * `tar -zcf miraclecast-c3c868e.tar.gz miraclecast-c3c868e` + +2. Create a Source RPM + * `rpmbuild -bs miraclecast.spec --define "_sourcedir $PWD"` + +Then build the RPM with one of the following: + +* Using mock (assuming you're in the dir where the .src.rpm file is): + * `mock --arch=x86_64 -r fedora-28-x86_64 --resultdir=results miraclecast-1.0-1.gitc3c868e.fc28.src.rpm` + +OR + +* Using rpmbuild (assuming you're in the dir where the .src.rpm file is): + * `rpmbuild -ra miraclecast-1.0-1.gitc3c868e.fc28.src.rpm` + +OR + +* Using rpmbuild (assuming you're in the dir where the .spec and .tar.gz files are): + * `rpmbuild -bs miraclecast.spec --define "_sourcedir $PWD"``