libgpg-error-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: common error codes for GnuPG related projects
  3. Summary(ja): GnuPG 関連プロジェクトで共通のエラーコード
  4. Name: libgpg-error
  5. Version: 1.22
  6. Release: 1%{?_dist_release}
  7. URL: ftp://ftp.gnupg.org/gcrypt/libgpg-error/
  8. Source0: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2
  9. Source1: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2.sig
  10. Group: System Environment/Libraries
  11. License: LGPL
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. %description
  16. This is a library that defines common error values for all GnuPG
  17. components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
  18. pinentry, SmartCard Daemon and possibly more in the future.
  19. %package devel
  20. Summary: Development files for the %{name} package
  21. Summary(ja): %{name} パッケージの開発用ファイル
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}-%{release}
  24. %description devel
  25. This is a library that defines common error values for all GnuPG
  26. components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
  27. pinentry, SmartCard Daemon and possibly more in the future. This package
  28. contains files necessary to develop applications using libgpg-error.
  29. %package -n compat32-%{name}
  30. Summary: common error codes for GnuPG related projects
  31. Summary(ja): GnuPG 関連プロジェクトで共通のエラーコード
  32. Group: System Environment/Libraries
  33. Requires: %{name} = %{version}-%{release}
  34. %description -n compat32-%{name}
  35. This is a library that defines common error values for all GnuPG
  36. components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
  37. pinentry, SmartCard Daemon and possibly more in the future.
  38. %package -n compat32-%{name}-devel
  39. Summary: Development files for the %{name} package
  40. Summary(ja): %{name} パッケージの開発用ファイル
  41. Group: Development/Libraries
  42. Requires: compat32-%{name} = %{version}-%{release}
  43. Requires: %{name}-devel = %{version}-%{release}
  44. %description -n compat32-%{name}-devel
  45. This is a library that defines common error values for all GnuPG
  46. components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
  47. pinentry, SmartCard Daemon and possibly more in the future. This package
  48. contains files necessary to develop applications using libgpg-error.
  49. %prep
  50. %setup -q
  51. %build
  52. %configure --disable-static
  53. make %{?_smp_mflags}
  54. %install
  55. rm -rf $RPM_BUILD_ROOT
  56. %makeinstall
  57. # remove unneeded files
  58. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  59. rm -rf $RPM_BUILD_ROOT%{_datadir}/common-lisp
  60. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  61. %find_lang %{name}
  62. %clean
  63. rm -rf $RPM_BUILD_ROOT
  64. %post -p /sbin/ldconfig
  65. %postun -p /sbin/ldconfig
  66. %post devel
  67. /sbin/install-info %{_infodir}/gpgrt.info %{_infodir}/dir &>/dev/null || :
  68. %preun devel
  69. if [ $1 -eq 0 ]; then
  70. /sbin/install-info --delete %{_infodir}/gpgrt.info %{_infodir}/dir &>/dev/null || :
  71. fi
  72. %post -n compat32-%{name} -p /sbin/ldconfig
  73. %postun -n compat32-%{name} -p /sbin/ldconfig
  74. %files -f %{name}.lang
  75. %defattr(-,root,root)
  76. %doc COPYING COPYING.LIB AUTHORS README INSTALL NEWS ChangeLog
  77. %{_bindir}/gpg-error
  78. %{_libdir}/libgpg-error.so.*
  79. %files devel
  80. %defattr(-,root,root)
  81. %{_bindir}/gpg-error-config
  82. %{_libdir}/libgpg-error.so
  83. %{_includedir}/gpg-error.h
  84. %{_datadir}/aclocal/gpg-error.m4
  85. %{_infodir}/gpgrt.info*
  86. %{_mandir}/man1/gpg-error-config.1*
  87. # compat32
  88. %if %{build_compat32}
  89. %files -n compat32-%{name}
  90. %defattr(-,root,root)
  91. %{_libdir}/libgpg-error.so.*
  92. %files -n compat32-%{name}-devel
  93. %defattr(-,root,root)
  94. %{_libdir}/libgpg-error.so
  95. %endif
  96. %changelog
  97. * Sat May 21 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.22-1
  98. - new upstream release
  99. * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12-1
  100. - new upstream release
  101. * Mon Apr 4 2011 IWAI, Masaharu <iwai@alib.jp> 1.10-1
  102. - new upstream release
  103. * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.9-1
  104. - new upstream release
  105. * Thu Apr 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.7-1
  106. - new upstream release
  107. - added --disable-static to %%configure
  108. - built with new toolchain
  109. * Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.6-3
  110. - added compat32 package for x86_64 arch support
  111. * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6-2
  112. - spec in utf-8
  113. - remove static lib
  114. * Tue Mar 18 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6-1vl5
  115. - new upstream release
  116. - used _dist_release macro
  117. * Fri Mar 09 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.4-0vl1
  118. - new upstream release
  119. - add Vendor/Distribution tag
  120. * Sun Apr 09 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.3-0vl1
  121. - new upstream release
  122. * Tue Nov 30 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl1
  123. - initial build for Vine Linux
  124. * Tue Aug 31 2004 Bill Nottingham <notting@redhat.com> - 1.0-1
  125. - update to 1.0
  126. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  127. - rebuilt
  128. * Fri Apr 16 2004 Bill Nottingham <notting@redhat.com> - 0.7-1
  129. - adapt upstream specfile