libmilter-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Summary: A shared libraries for milters
  2. Summary(ja): milterのための共有ライブラリ
  3. Name: libmilter
  4. Version: 8.16.1
  5. Release: 1%{?_dist_release}
  6. Group: system
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: Sendmail
  10. URL: https://www.proofpoint.com/us/open-source-email-solution
  11. Source0: ftp://ftp.sendmail.org/pub/sendmail/sendmail.%{version}.tar.gz
  12. Patch0: sendmail-8.14.3-sharedmilter.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. %global objdir obj.Linux.%(uname -r).%(uname -m)
  15. %description
  16. The %{name} package provides a shared library for milters.
  17. %description -l ja
  18. %{name} パッケージは、milterに必要な共有ライブラリを提供します。
  19. %package devel
  20. Summary: headers and libraries to develop milters
  21. Summary(ja): milter開発に必要なヘッダ・ライブラリ
  22. Group: programming
  23. Requires: %{name} = %{version}-%{release}
  24. Conflicts: sendmail-devel
  25. %description devel
  26. This package contains headers and libraries to develop milters.
  27. %description devel -l ja
  28. このパッケージは、milter開発に必要なヘッダ・ライブラリを含んでいます。
  29. %debug_package
  30. %prep
  31. %setup -q -n sendmail-%{version}
  32. cp devtools/M4/UNIX/{,shared}library.m4
  33. %patch0 -p1 -b .sharedmilter
  34. %build
  35. cd libmilter
  36. ./Build -c
  37. %install
  38. rm -rf %{buildroot}
  39. mkdir -p %{buildroot}%{_libdir}
  40. mkdir -p %{buildroot}%{_includedir}/libmilter
  41. install -m644 include/libmilter/mfapi.h %{buildroot}%{_includedir}/libmilter/
  42. install -m644 include/libmilter/mfdef.h %{buildroot}%{_includedir}/libmilter/
  43. install -m755 %{objdir}/libmilter/libmilter.so.* %{buildroot}%{_libdir}/
  44. pushd %{buildroot}%{_libdir}
  45. for f in libmilter.so.*; do
  46. ln -sf $f $(echo $f | sed -e 's/\.[0-9]*$//')
  47. ln -sf $f libmilter.so
  48. done
  49. popd
  50. %clean
  51. rm -rf %{buildroot}
  52. %post
  53. /sbin/ldconfig
  54. %postun
  55. /sbin/ldconfig
  56. %files
  57. %{_libdir}/libmilter.so.*
  58. %files devel
  59. %{_libdir}/libmilter.so
  60. %{_includedir}/libmilter
  61. %changelog
  62. * Tue Sep 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.16.1-1
  63. - new upstream release.
  64. * Sat Oct 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.15.2-1
  65. - initial build.