libbsd-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: libbsd
  3. Version: 0.10.0
  4. Release: 1%{?_dist_release}
  5. Summary: Library providing BSD-compatible functions for portability
  6. Group: System Environment/Libraries
  7. License: BSD and ISC and Copyright only and Public Domain
  8. URL: https://libbsd.freedesktop.org/
  9. Source0: https://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. %description
  13. libbsd provides useful functions commonly found on BSD systems, and
  14. lacking on others like GNU systems, thus making it easier to port
  15. projects with strong BSD origins, without needing to embed the same
  16. code over and over again on each project.
  17. %package devel
  18. Summary: Development files for libbsd
  19. Group: Development/Libraries
  20. Requires: libbsd = %{version}-%{release}
  21. Requires: pkgconfig
  22. %description devel
  23. Development files for the libbsd library.
  24. %package ctor-static
  25. Summary: Development files for libbsd-ctor
  26. Group: Development/Libraries
  27. Requires: %{name}-devel = %{version}-%{release}
  28. Requires: pkgconfig
  29. %description ctor-static
  30. Development files for the libbsd-ctor library.
  31. # compat32
  32. %package -n compat32-%{name}
  33. Summary: Library providing BSD-compatible functions for portability
  34. Group: System Environment/Libraries
  35. Requires: libbsd = %{version}-%{release}
  36. %description -n compat32-%{name}
  37. libbsd provides useful functions commonly found on BSD systems, and
  38. lacking on others like GNU systems, thus making it easier to port
  39. projects with strong BSD origins, without needing to embed the same
  40. code over and over again on each project.
  41. %package -n compat32-%{name}-devel
  42. Summary: Development files for libbsd
  43. Group: Development/Libraries
  44. Requires: compat32-%{name} = %{version}-%{release}
  45. Requires: compat32-pkgconfig
  46. Requires: %{name}-devel = %{version}-%{release}
  47. %description -n compat32-%{name}-devel
  48. Development files for the libbsd library.
  49. %package -n compat32-%{name}-ctor-static
  50. Summary: Development files for libbsd-ctor
  51. Group: Development/Libraries
  52. Requires: compat32-%{name}-devel = %{version}-%{release}
  53. Requires: compat32-pkgconfig
  54. Requires: %{name}-devel = %{version}-%{release}
  55. %description -n compat32-%{name}-ctor-static
  56. Development files for the libbsd-ctor library.
  57. %prep
  58. %setup -q
  59. %build
  60. %configure
  61. make CFLAGS="%{optflags}" %{?_smp_mflags} \
  62. libdir=%{_libdir} \
  63. usrlibdir=%{_libdir} \
  64. exec_prefix=%{_prefix}
  65. %install
  66. rm -rf %{buildroot}
  67. make libdir=%{_libdir} \
  68. usrlibdir=%{_libdir} \
  69. exec_prefix=%{_prefix} \
  70. DESTDIR=%{buildroot} \
  71. install
  72. # don't want static library or libtool archive
  73. rm %{buildroot}%{_libdir}/%{name}.a
  74. rm %{buildroot}%{_libdir}/%{name}.la
  75. %clean
  76. rm -rf %{buildroot}
  77. %post -p /sbin/ldconfig
  78. %postun -p /sbin/ldconfig
  79. %if %{build_compat32}
  80. %post -n compat32-%{name} -p /sbin/ldconfig
  81. %postun -n compat32-%{name} -p /sbin/ldconfig
  82. %endif
  83. %files
  84. %license COPYING
  85. %doc README TODO ChangeLog
  86. %{_libdir}/%{name}.so.*
  87. %files devel
  88. %{_mandir}/man3/*.3bsd.*
  89. %{_mandir}/man7/%{name}.7.*
  90. %{_includedir}/bsd
  91. %{_libdir}/%{name}.so
  92. %{_libdir}/pkgconfig/%{name}.pc
  93. %{_libdir}/pkgconfig/%{name}-overlay.pc
  94. %files ctor-static
  95. %{_libdir}/pkgconfig/%{name}-ctor.pc
  96. %{_libdir}/%{name}-ctor.a
  97. # compat32
  98. %if %{build_compat32}
  99. %files -n compat32-%{name}
  100. %defattr(-,root,root)
  101. %{_libdir}/%{name}.so.*
  102. %files -n compat32-%{name}-devel
  103. %defattr(-,root,root)
  104. %{_libdir}/%{name}.so
  105. %{_libdir}/pkgconfig/%{name}.pc
  106. %{_libdir}/pkgconfig/%{name}-overlay.pc
  107. %files -n compat32-%{name}-ctor-static
  108. %{_libdir}/pkgconfig/%{name}-ctor.pc
  109. %{_libdir}/%{name}-ctor.a
  110. %endif
  111. %changelog
  112. * Sat Mar 28 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.10.0-1
  113. - new upstream release.
  114. * Thu Feb 22 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.7-1
  115. - new upstream release.
  116. - added ctor-static subpackage.
  117. * Sun Feb 1 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.7.0-1
  118. - new upstream release.
  119. - added compat32 subpackages
  120. * Sun Jan 12 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.6.0-1
  121. - new upstream release.
  122. * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4.2-1
  123. - new upstream release.
  124. - initial build for Vine Linux.
  125. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
  126. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  127. * Sat Oct 08 2011 Eric Smith <eric@brouhaha.com> - 0.3.0-1
  128. - Update to latest upstream release.
  129. - Removed Patch0, fixed upstream.
  130. - Removed BuildRoot, clean, defattr.
  131. * Fri Jan 29 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-3
  132. - changes based on review by Sebastian Dziallas
  133. * Fri Jan 29 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-2
  134. - changes based on review comments by Jussi Lehtola and Ralf Corsepious
  135. * Thu Jan 28 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-1
  136. - initial version