%install
rm -rf %{buildroot}
%make_install
-mkdir -p %{buildroot}/%{_datadir}/license
-cp -rf %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/%{_datadir}/license/%{name}
-cp -rf %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/%{_datadir}/license/mediacontroller
# Daemon & socket activation
mkdir -p %{buildroot}%{_unitdir}
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_libdir}/*.so.*
-%{_datadir}/license/%{name}
+%license LICENSE.APLv2.0
%files -n mediacontroller
+%manifest media-controller-service.manifest
%defattr(-,root,root,-)
%{_bindir}/mediacontroller
-%manifest media-controller-service.manifest
%{_unitdir}/mediacontroller.service
%{_unitdir}/mediacontroller.socket
%{_unitdir}/sockets.target.wants/mediacontroller.socket
-%{_datadir}/license/mediacontroller
%{upgrade_script_path}/500.media-controller.upgrade.sh
+%license LICENSE.APLv2.0
%files devel
%{_libdir}/*.so