%install
rm -rf %{buildroot}
%make_install
-mkdir -p %{buildroot}/usr/share/license
-cp %{_builddir}/%{buildsubdir}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
-cp %{_builddir}/%{buildsubdir}/LICENSE.GPLv2 %{buildroot}/usr/share/license/print-driver-data
-cat %{_builddir}/%{buildsubdir}/LICENSE.MIT >> %{buildroot}/usr/share/license/print-driver-data
%clean
rm -rf %{buildroot}
%manifest print-service.manifest
%defattr(-,root,root,-)
%attr(0755,root,root) %{_bindir}/getppd
-/usr/share/license/%{name}
%{_libdir}/*.so*
%exclude %{_libdir}/libopmap.so*
+%license LICENSE.APLv2
%files devel
%defattr(644,root,root,-)
%files -n print-driver-data
%manifest print-driver-data.manifest
%defattr(-,root,root,-)
-/usr/share/license/print-driver-data
%dir /usr/share/cups/ppd/
/usr/share/cups/ppd/*
%exclude %{TZ_SYS_ETC}/cups/ppd/hp_product.list
%exclude %{TZ_SYS_ETC}/cups/ppd/hp.list
%exclude %{TZ_SYS_ETC}/cups/ppd/epson.list
%exclude %{TZ_SYS_ETC}/cups/ppd/samsung.list
+%license LICENSE.GPLv2 LICENSE.MIT
%files -n print-service-tests
%manifest print-service-tests.manifest