openrc-settingsd-vl.spec 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. %define pkg_version 1.0.1
  2. %define pkg_release 1%{?_dist_release}
  3. %define libdaemon_version 0.14
  4. Summary: System settings D-Bus service for OpenRC
  5. Summary(ja): D-Busシステム設定サービス
  6. Name: openrc-settingsd
  7. Version: %{pkg_version}
  8. Release: %{pkg_release}
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. License: GPL2+
  12. Group: System Environment/Base
  13. URL: https://gitweb.gentoo.org/proj/openrc-settingsd.git/
  14. Source0: https://dev.gentoo.org/~tetromino/distfiles/openrc-settingsd/openrc-settingsd-%{version}.tar.xz
  15. Source1: libdaemon-%{libdaemon_version}.tar.gz
  16. Patch0: openrc-settingsd-vine.patch
  17. BuildRequires: glib2-devel
  18. BuildRequires: dbus-devel
  19. BuildRequires: polkit-devel
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. %description
  22. Implementation of systemd's settings interface (hostnamed, localed, timedated) for OpenRC
  23. %prep
  24. %setup -q -a 1
  25. %patch0 -p1 -b .vine
  26. ln -sf libdaemon-%{libdaemon_version} libdaemon
  27. %build
  28. autoreconf -ivf
  29. pushd libdaemon-%{libdaemon_version}
  30. %configure
  31. %{__make} %{?_smp_mflags}
  32. popd
  33. ln -sf libdaemon-%{libdaemon_version}/libdaemon/.libs/libdaemon.a ./
  34. %configure
  35. %{__make} %{?_smp_mflags}
  36. %install
  37. %{__rm} -rf %{buildroot}
  38. %{__make} install DESTDIR=%{buildroot}
  39. rm -rf %{buildroot}%{_sysconfdir}/conf.d
  40. rm -rf %{buildroot}%{_sysconfdir}/init.d
  41. %clean
  42. %{__rm} -rf ${RPM_BUILD_ROOT}
  43. %files
  44. %defattr(-,root,root)
  45. %license COPYING libdaemon/LICENSE
  46. %doc AUTHORS NEWS README
  47. %{_sysconfdir}/dbus-1/system.d/*
  48. %{_libexecdir}/*
  49. %{_datadir}/openrc-settingsd
  50. %{_datadir}/polkit-1/actions/*
  51. %{_datadir}/dbus-1/interfaces/*
  52. %{_datadir}/dbus-1/system-services/*
  53. %{_mandir}/man8/*
  54. %changelog
  55. * Fri Jan 04 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.1-1
  56. - initial build for Vine Linux.