From de61a631f297c33b2c0a5b8b17b62dd19e13a005 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:10:41 +0100 Subject: [PATCH] fix /sbin/ip path; add -DRELY_UDEV=ON [release 1.0.20200710git-2mamba;Fri Jul 10 2020] --- README.md | 4 +++ miraclecast.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 miraclecast.spec diff --git a/README.md b/README.md index b58020e..5c11bc0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # miraclecast +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. + diff --git a/miraclecast.spec b/miraclecast.spec new file mode 100644 index 0000000..6b7bd2d --- /dev/null +++ b/miraclecast.spec @@ -0,0 +1,71 @@ +Name: miraclecast +Version: 1.0.20200710git +Release: 2mamba +Summary: Wifi-Display/Miracast Implementation +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/albfan/miraclecast +## GITSOURCE https://github.com/albfan/miraclecast.git master +Source: https://github.com/albfan/miraclecast.git/master/miraclecast-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libglib-devel +BuildRequires: libncurses-devel +BuildRequires: libreadline-devel +BuildRequires: libsystemd-devel +BuildRequires: libudev-devel +## AUTOBUILDREQ-END +BuildRequires: meson +Requires: iproute +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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. + +%debug_package + +%prep +%setup -q +sed -i "s|/bin/ip|/sbin/ip|" src/dhcp/dhcp.c + +%build +%cmake -d build \ + -DRELY_UDEV=ON \ + -DCMAKE_C_FLAGS="-lncurses" + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_sysconfdir}/dbus-1/system.d/org.freedesktop.miracle.conf +%{_bindir}/gstplayer +%{_bindir}/miracle-dhcp +%{_bindir}/miracle-gst +%{_bindir}/miracle-sinkctl +%{_bindir}/miracle-uibcctl +%{_bindir}/miracle-wifictl +%{_bindir}/miracle-wifid +%{_bindir}/miracled +%{_bindir}/uibc-viewer +%{_datadir}/bash-completion/completions/miracle-* +%doc COPYING + +%changelog +* Fri Jul 10 2020 Silvan Calarco 1.0.20200710git-2mamba +- fix /sbin/ip path; add -DRELY_UDEV=ON + +* Fri Jul 10 2020 Silvan Calarco 1.0.20200710git-1mamba +- package created using the webbuild interface