p11-kit-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define pkg_version 0.20.1
  3. %define pkg_release 1%{?_dist_release}
  4. Name: p11-kit
  5. Version: %{pkg_version}
  6. Release: %{pkg_release}
  7. Summary: Provides a way to load and enumerate PKCS#11 modules
  8. Group: System Environment/Libraries
  9. License: LGPLv2+
  10. URL: http://p11-glue.freedesktop.org/p11-kit.html
  11. Source0: http://p11-glue.freedesktop.org/releases/%{name}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: libtasn1-devel
  14. BuildRequires: libffi-devel
  15. BuildRequires: ca-certificates
  16. Requires: ca-certificates
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: Takemikaduchi
  20. %description
  21. Provides a way to load and enumerate PKCS#11 modules. Provides a standard
  22. configuration setup for installing PKCS#11 modules in such a way that
  23. they're discoverable.
  24. Also solves problems with coordinating the use of PKCS#11 by different
  25. components or libraries living in the same process.
  26. %package devel
  27. Summary: Development tools for p11-kit
  28. Summary(ja): p11-kit の開発環境
  29. Group: Development/Libraries
  30. Requires: %{name} = %{version}-%{release}
  31. Requires: pkgconfig
  32. %description devel
  33. Header files and libraries for building a extension library for the
  34. p11-kit.
  35. %package docs
  36. Summary: Documentation for p11-kit
  37. Summary(ja): p11-kit 用のドキュメント
  38. Group: Documentation
  39. Requires: %{name} = %{version}-%{release}
  40. BuildArch: noarch
  41. %description docs
  42. This package contains documentation for p11-kit.
  43. # compat32
  44. %package -n compat32-%{name}
  45. Summary: Provides a way to load and enumerate PKCS#11 modules
  46. Group: System Environment/Libraries
  47. Requires: %{name} = %{version}-%{release}
  48. %description -n compat32-%{name}
  49. Provides a way to load and enumerate PKCS#11 modules. Provides a standard
  50. configuration setup for installing PKCS#11 modules in such a way that
  51. they're discoverable.
  52. Also solves problems with coordinating the use of PKCS#11 by different
  53. components or libraries living in the same process.
  54. %package -n compat32-%{name}-devel
  55. Summary: Development tools for p11-kit
  56. Summary(ja): p11-kit の開発環境
  57. Group: Development/Libraries
  58. Requires: compat32-%{name} = %{version}-%{release}
  59. Requires: %{name}-devel = %{version}-%{release}
  60. Requires: pkgconfig
  61. %description -n compat32-%{name}-devel
  62. Header files and libraries for building a extension library for the
  63. p11-kit.
  64. %prep
  65. %setup -q
  66. %build
  67. %configure \
  68. --disable-static \
  69. make V=0
  70. %install
  71. rm -rf $RPM_BUILD_ROOT
  72. make DESTDIR=$RPM_BUILD_ROOT install INSTALL="%{__install} -p -c"
  73. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  74. %clean
  75. rm -rf $RPM_BUILD_ROOT
  76. %post -p /sbin/ldconfig
  77. %postun -p /sbin/ldconfig
  78. %post -n compat32-%{name} -p /sbin/ldconfig
  79. %postun -n compat32-%{name} -p /sbin/ldconfig
  80. %files
  81. %defattr(-,root,root,-)
  82. %doc ChangeLog AUTHORS COPYING NEWS README
  83. %{_sysconfdir}/pkcs11/pkcs11.conf.example
  84. %{_bindir}/p11-kit
  85. %{_bindir}/trust
  86. %{_libdir}/libp11-kit.so.*
  87. %{_libdir}/p11-kit-proxy.so
  88. %{_libdir}/p11-kit/trust-extract-compat
  89. %{_libdir}/pkcs11/p11-kit-trust.so
  90. %{_datadir}/%{name}
  91. %files devel
  92. %defattr(-, root, root,-)
  93. %{_includedir}/p11-kit-1
  94. %{_libdir}/libp11-kit.so
  95. %{_libdir}/pkgconfig/p11-kit-1.pc
  96. %files docs
  97. %defattr(-, root, root,-)
  98. %{_datadir}/gtk-doc/html/p11-kit
  99. # compat32
  100. %if %{build_compat32}
  101. %files -n compat32-%{name}
  102. %defattr(-, root, root)
  103. %{_libdir}/lib*.so.*
  104. %files -n compat32-%{name}-devel
  105. %defattr(-, root, root)
  106. %{_libdir}/lib*.so
  107. %endif
  108. %changelog
  109. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.20.1-1
  110. - new upstream release
  111. - add BuildRequires: libffi-devel
  112. * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.18.1-1
  113. - new upstream release
  114. - add BuildRequires: libtasn1-devel, ca-certificates
  115. - add Requires: ca-certificates
  116. * Fri Sep 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.14-1
  117. - new upstream release
  118. * Fri Mar 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.12-1
  119. - new upstream release
  120. * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6-1
  121. - new upstream release
  122. - create compat32 sub packages
  123. * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3-1
  124. - initial build for Vine Linux