Source1: %{name}.manifest
Source2: libhal-api.conf
Source3: systemd-hal-firmware-generator
+Source4: macros.hal-api
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
mkdir -p %{buildroot}/hal
install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/ld.so.conf.d/libhal-api.conf
install -D -m 0755 %{SOURCE3} %{buildroot}%{_systemdgeneratordir}/systemd-hal-firmware-generator
+install -D -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/rpm/macros.hal-api
%clean
rm -rf %{buildroot}
%defattr(-,root,root,-)
%{_includedir}/hal/*.h
%{_libdir}/pkgconfig/*.pc
+%{_sysconfdir}/rpm/macros.hal-api
%files -n %{test_name}
%{_bindir}/hal/common-haltests
--- /dev/null
+# RPM macros for /hal directory
+
+%_hal_prefix /hal
+%_hal_bindir %{_hal_prefix}/bin
+%_hal_libdir %{_hal_prefix}/%{_lib}
+%_hal_includedir %{_hal_prefix}/include
+%_hal_sysconfdir %{_hal_prefix}%{_sysconfdir}
+%_hal_datadir %{_hal_prefix}/share
+%_hal_licensedir %{_hal_prefix}/share/licenses