elogind-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. %define pkg_version 239.3
  2. %define pkg_release 1%{?_dist_release}
  3. %define _unpackaged_files_terminate_build 1
  4. %global _vpath_srcdir .
  5. %global _vpath_builddir build
  6. %global __global_cflags %{optflags}
  7. %global __global_ldflags ""
  8. Name: elogind
  9. Summary: The systemd project's "logind", extracted to a standalone package
  10. Summary(ja): systemdプロジェクトのlogindを単独で動作するようにしたソフトウェア
  11. Version: %{pkg_version}
  12. Release: %{pkg_release}
  13. License: GPL2/LGPL2.1
  14. Group: System Environment/Base
  15. URL: https://wiki.gentoo.org/wiki/Elogind
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: tomop
  19. Source0: https://github.com/elogind/elogind/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
  20. # derives from
  21. # https://github.com/systemd/systemd/commit/2675747f3cdd6f1e6236bbb2f79abfa53fb307f1
  22. Patch0: pam_elogind-reduce-log.patch
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  24. Requires: util-linux
  25. Requires: polkit
  26. Requires: dbus
  27. BuildRequires: meson
  28. BuildRequires: ninja
  29. BuildRequires: gperf
  30. BuildRequires: libacl-devel
  31. BuildRequires: libblkid-devel
  32. BuildRequires: libcap-devel
  33. BuildRequires: libmount-devel
  34. BuildRequires: eudev-libudev-devel
  35. BuildRequires: pam-devel
  36. BuildRequires: pkgconfig
  37. BuildRequires: python3-devel
  38. %description
  39. elogind is the systemd project's logind, extracted to a standalone package. It's designed for users who prefer a non-systemd init system, but still want to use popular software such as KDE/Wayland or GNOME that otherwise hard-depends on systemd.
  40. %description -l ja
  41.  eloginは、systemdプロジェクトのlogindを単体で抽出したものです。これは
  42. systemdを利用していないシステム上で、KDE、Wayland、GNOMEのようにsystemd
  43. に強く依存しているソフトウェアを使用したいユーザのために設計されています。
  44. %package devel
  45. Summary: headers and libraries for elogind
  46. Summary(ja): eloginを用いた開発のためのヘッダ・ライブラリファイル
  47. Group: Development/Libraries
  48. Requires: elogind = %{version}-%{release}
  49. %description devel
  50. This package contains headers and libraries for elogind
  51. %description devel -l ja
  52.  このパッケージにはeloginを用いた開発のためのヘッダ・ライブラリファイル
  53. が含まれています。
  54. %prep
  55. %autosetup -p1
  56. %build
  57. export LANG=ja_JP.UTF-8
  58. %meson
  59. %meson_build
  60. %install
  61. export LANG=ja_JP.UTF-8
  62. %{__rm} -rf %{buildroot}
  63. %meson_install
  64. rm -f %{buildroot}/%{_lib}/libelogind.so
  65. ln -s ../../%{_lib}/libelogind.so.0 %{buildroot}%{_libdir}/libelogind.so
  66. perl -pi -e 's|^libdir=.*$|libdir=%{_libdir}|' %{buildroot}%{_libdir}/pkgconfig/libelogind.pc
  67. rm -rf %{buildroot}%{_datadir}/factory
  68. %find_lang %{name}
  69. %check
  70. export LANG=ja_JP.UTF-8
  71. %meson_test
  72. %clean
  73. %{__rm} -rf %{buildroot}
  74. %post
  75. /sbin/ldconfig
  76. %postun
  77. /sbin/ldconfig
  78. %files -f %{name}.lang
  79. %defattr(-,root,root)
  80. %license LICENSE*
  81. %doc NEWS README
  82. %config(noreplace) %{_sysconfdir}/elogind/logind.conf
  83. %config(noreplace) %{_sysconfdir}/pam.d/elogind-user
  84. /bin/*
  85. %{_bindir}/*
  86. /lib/elogind
  87. /lib/udev/rules.d/*
  88. /%{_lib}/*.so.*
  89. /%{_lib}/security/*
  90. %{_datadir}/dbus-1/system-services/*
  91. %{_datadir}/dbus-1/system.d/*
  92. %{_datadir}/polkit-1/actions/*
  93. %dir %{_datadir}/zsh
  94. %{_datadir}/zsh/site-functions/*
  95. %dir %{_datadir}/bash-completion
  96. %dir %{_datadir}/bash-completion/completions
  97. %{_datadir}/bash-completion/completions/*
  98. %files devel
  99. %defattr(-,root,root)
  100. %{_libdir}/libelogind.so
  101. %{_includedir}/elogind
  102. %{_libdir}/pkgconfig/libelogind.pc
  103. %changelog
  104. * Sun Dec 16 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 239.3-1
  105. - initial build for Vine Linux.