p11-kit-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define pkg_version 0.6
  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. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. Packager: Takemikaduchi
  16. %description
  17. Provides a way to load and enumerate PKCS#11 modules. Provides a standard
  18. configuration setup for installing PKCS#11 modules in such a way that
  19. they're discoverable.
  20. Also solves problems with coordinating the use of PKCS#11 by different
  21. components or libraries living in the same process.
  22. %package devel
  23. Summary: Development tools for p11-kit
  24. Summary(ja): p11-kit の開発環境
  25. Group: Development/Libraries
  26. Requires: %{name} = %{version}-%{release}
  27. Requires: pkgconfig
  28. %description devel
  29. Header files and libraries for building a extension library for the
  30. p11-kit.
  31. %package doc
  32. Summary: Documentation for p11-kit
  33. Summary(ja): p11-kit 用のドキュメント
  34. Group: Documentation
  35. Requires: %{name} = %{version}-%{release}
  36. BuildArch: noarch
  37. %description doc
  38. This package contains documentation for p11-kit.
  39. # compat32
  40. %package -n compat32-%{name}
  41. Summary: Provides a way to load and enumerate PKCS#11 modules
  42. Group: System Environment/Libraries
  43. Requires: %{name} = %{version}-%{release}
  44. %description -n compat32-%{name}
  45. Provides a way to load and enumerate PKCS#11 modules. Provides a standard
  46. configuration setup for installing PKCS#11 modules in such a way that
  47. they're discoverable.
  48. Also solves problems with coordinating the use of PKCS#11 by different
  49. components or libraries living in the same process.
  50. %package -n compat32-%{name}-devel
  51. Summary: Development tools for p11-kit
  52. Summary(ja): p11-kit の開発環境
  53. Group: Development/Libraries
  54. Requires: compat32-%{name} = %{version}-%{release}
  55. Requires: %{name}-devel = %{version}-%{release}
  56. Requires: pkgconfig
  57. %description -n compat32-%{name}-devel
  58. Header files and libraries for building a extension library for the
  59. p11-kit.
  60. %prep
  61. %setup -q
  62. %build
  63. %configure \
  64. --disable-static \
  65. make V=0
  66. %install
  67. rm -rf $RPM_BUILD_ROOT
  68. make DESTDIR=$RPM_BUILD_ROOT install INSTALL="%{__install} -p -c"
  69. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  70. %clean
  71. rm -rf $RPM_BUILD_ROOT
  72. %post -p /sbin/ldconfig
  73. %postun -p /sbin/ldconfig
  74. %post -n compat32-%{name} -p /sbin/ldconfig
  75. %postun -n compat32-%{name} -p /sbin/ldconfig
  76. %files
  77. %defattr(-,root,root,-)
  78. %doc ChangeLog AUTHORS COPYING NEWS README
  79. %{_sysconfdir}/pkcs11/pkcs11.conf.example
  80. %{_bindir}/p11-kit
  81. %{_libdir}/libp11-kit.so.*
  82. %{_libdir}/p11-kit-proxy.so
  83. %files devel
  84. %defattr(-, root, root,-)
  85. %{_includedir}/p11-kit-1
  86. %{_libdir}/libp11-kit.so
  87. %{_libdir}/pkgconfig/p11-kit-1.pc
  88. %files doc
  89. %defattr(-, root, root,-)
  90. %{_datadir}/gtk-doc/html/p11-kit
  91. # compat32
  92. %if %{build_compat32}
  93. %files -n compat32-%{name}
  94. %defattr(-, root, root)
  95. %{_libdir}/lib*.so.*
  96. %files -n compat32-%{name}-devel
  97. %defattr(-, root, root)
  98. %{_libdir}/lib*.so
  99. %{_libdir}/pkgconfig/p11-kit-1.pc
  100. %endif
  101. %changelog
  102. * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6-1
  103. - new upstream release
  104. - create compat32 sub packages
  105. * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3-1
  106. - initial build for Vine Linux