elogind-vl.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. %define pkg_version 241.3
  2. %define pkg_release 1%{?_dist_release}
  3. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  4. Name: elogind
  5. Summary: The systemd project's "logind", extracted to a standalone package
  6. Summary(ja): systemdプロジェクトのlogindを単独で動作するようにしたソフトウェア
  7. Version: %{pkg_version}
  8. Release: %{pkg_release}
  9. License: GPL2/LGPL2.1
  10. Group: System Environment/Base
  11. URL: https://wiki.gentoo.org/wiki/Elogind
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. Packager: tomop
  15. Source0: https://github.com/elogind/elogind/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. Requires: util-linux
  18. Requires: polkit
  19. Requires: dbus
  20. Requires: elogind-libs = %{version}-%{release}
  21. BuildRequires: meson
  22. BuildRequires: ninja
  23. BuildRequires: gperf
  24. BuildRequires: audit-libs-devel
  25. BuildRequires: libacl-devel
  26. BuildRequires: libblkid-devel
  27. BuildRequires: libcap-devel
  28. BuildRequires: libmount-devel
  29. BuildRequires: libxcrypt-devel
  30. BuildRequires: dbus-devel
  31. BuildRequires: eudev-libudev-devel
  32. BuildRequires: glib2-devel
  33. BuildRequires: pam-devel
  34. BuildRequires: pkgconfig
  35. BuildRequires: python3-devel
  36. BuildRequires: libxslt
  37. BuildRequires: docbook-style-xsl
  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 libs
  45. Summary: shared libraries for elogind
  46. Summary(ja): eloginのための共有ライブラリファイル
  47. Group: System Environment/Libraries
  48. %description libs
  49. This package contains shared libraries for elogind
  50. %description libs -l ja
  51.  このパッケージにはeloginを用いた開発のための共有ライブラリファイル
  52. が含まれています。
  53. %package devel
  54. Summary: headers and libraries for elogind
  55. Summary(ja): eloginを用いた開発のためのヘッダ・ライブラリファイル
  56. Group: Development/Libraries
  57. Requires: elogind-libs = %{version}-%{release}
  58. %description devel
  59. This package contains headers and libraries for elogind
  60. %description devel -l ja
  61.  このパッケージにはeloginを用いた開発のためのヘッダ・ライブラリファイル
  62. が含まれています。
  63. %package -n compat32-elogind-libs
  64. Summary: shared libraries for elogind
  65. Summary(ja): eloginのための共有ライブラリファイル
  66. Group: System Environment/Libraries
  67. %description -n compat32-elogind-libs
  68. This package contains shared libraries for elogind
  69. %description -n compat32-elogind-libs -l ja
  70.  このパッケージにはeloginを用いた開発のための共有ライブラリファイル
  71. が含まれています。
  72. %prep
  73. %autosetup -p1
  74. %build
  75. export LANG=ja_JP.UTF-8
  76. %meson
  77. %meson_build
  78. %install
  79. export LANG=ja_JP.UTF-8
  80. %{__rm} -rf %{buildroot}
  81. %meson_install
  82. rm -f %{buildroot}/%{_lib}/libelogind.so
  83. ln -s ../../%{_lib}/libelogind.so.0 %{buildroot}%{_libdir}/libelogind.so
  84. perl -pi -e 's|^libdir=.*$|libdir=%{_libdir}|' %{buildroot}%{_libdir}/pkgconfig/libelogind.pc
  85. rm -rf %{buildroot}%{_datadir}/factory
  86. %find_lang %{name}
  87. %check
  88. export LANG=ja_JP.UTF-8
  89. %meson_test
  90. %clean
  91. %{__rm} -rf %{buildroot}
  92. %post libs
  93. /sbin/ldconfig
  94. %postun libs
  95. /sbin/ldconfig
  96. %files -f %{name}.lang
  97. %defattr(-,root,root)
  98. %license LICENSE*
  99. %doc NEWS README
  100. %config(noreplace) %{_sysconfdir}/elogind/logind.conf
  101. %config(noreplace) %{_sysconfdir}/pam.d/elogind-user
  102. /bin/*
  103. %{_bindir}/*
  104. /lib/elogind
  105. /lib/udev/rules.d/*
  106. /%{_lib}/security/*
  107. %{_datadir}/dbus-1/system-services/*
  108. %{_datadir}/dbus-1/system.d/*
  109. %{_datadir}/polkit-1/actions/*
  110. %dir %{_datadir}/zsh
  111. %{_datadir}/zsh/site-functions/*
  112. %dir %{_datadir}/bash-completion
  113. %dir %{_datadir}/bash-completion/completions
  114. %{_datadir}/bash-completion/completions/*
  115. %{_mandir}/man1/*
  116. %{_mandir}/man5/*
  117. %{_mandir}/man7/*
  118. %{_mandir}/man8/*
  119. %files libs
  120. /%{_lib}/*.so.*
  121. %files devel
  122. %defattr(-,root,root)
  123. %{_libdir}/libelogind.so
  124. %{_includedir}/elogind
  125. %{_libdir}/pkgconfig/libelogind.pc
  126. %{_mandir}/man3/*
  127. %if %{build_compat32}
  128. %files -n compat32-elogind-libs
  129. /%{_lib}/*.so.*
  130. %endif
  131. %changelog
  132. * Fri May 10 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 241.3-1
  133. - new upstream release.
  134. - dropped Patch0: fixed in upstream.
  135. - added BR:libxcrypt-devel.
  136. - fixed %%post and %%postun scripts.
  137. - added BR:audit-libs-devel.
  138. - added BR:dbus-devel.
  139. - added BR:glib2-devel.
  140. * Sun Jan 06 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 239.3-3
  141. - added compat32-elogind-libs.
  142. * Wed Jan 02 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 239.3-2
  143. - separated libs.
  144. - built manuals.
  145. * Sun Dec 16 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 239.3-1
  146. - initial build for Vine Linux.