libbsd-vl.spec 4.7 KB

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