libbsd-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: libbsd
  3. Version: 0.7.0
  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. # compat32
  26. %package -n compat32-%{name}
  27. Summary: Library providing BSD-compatible functions for portability
  28. Group: System Environment/Libraries
  29. Requires: libbsd = %{version}-%{release}
  30. %description -n compat32-%{name}
  31. libbsd provides useful functions commonly found on BSD systems, and
  32. lacking on others like GNU systems, thus making it easier to port
  33. projects with strong BSD origins, without needing to embed the same
  34. code over and over again on each project.
  35. %package -n compat32-%{name}-devel
  36. Summary: Development files for libbsd
  37. Group: Development/Libraries
  38. Requires: compat32-%{name} = %{version}-%{release}
  39. Requires: compat32-pkgconfig
  40. Requires: %{name}-devel = %{version}-%{release}
  41. %description -n compat32-%{name}-devel
  42. Development files for the libbsd library.
  43. %prep
  44. %setup -q
  45. # fix encoding of flopen.3 man page
  46. for f in man/flopen.3; do
  47. iconv -f iso8859-1 -t utf-8 $f >$f.conv
  48. touch -r $f $f.conv
  49. mv $f.conv $f
  50. done
  51. %build
  52. %configure
  53. make CFLAGS="%{optflags}" %{?_smp_mflags} \
  54. libdir=%{_libdir} \
  55. usrlibdir=%{_libdir} \
  56. exec_prefix=%{_prefix}
  57. %install
  58. rm -rf %{buildroot}
  59. make libdir=%{_libdir} \
  60. usrlibdir=%{_libdir} \
  61. exec_prefix=%{_prefix} \
  62. DESTDIR=%{buildroot} \
  63. install
  64. # don't want static library
  65. rm -f %{buildroot}%{_libdir}/lib*.a
  66. rm -f %{buildroot}%{_libdir}/lib*.la
  67. %clean
  68. rm -rf %{buildroot}
  69. %post -p /sbin/ldconfig
  70. %postun -p /sbin/ldconfig
  71. %if %{build_compat32}
  72. %post -n compat32-%{name} -p /sbin/ldconfig
  73. %postun -n compat32-%{name} -p /sbin/ldconfig
  74. %endif
  75. %files
  76. %doc COPYING README TODO ChangeLog
  77. %{_libdir}/%{name}.so.*
  78. %files devel
  79. %{_mandir}/man3/*.3.gz
  80. %{_mandir}/man3/*.3bsd.gz
  81. %{_includedir}/bsd
  82. %{_libdir}/%{name}.so
  83. %{_libdir}/pkgconfig/%{name}.pc
  84. %{_libdir}/pkgconfig/%{name}-ctor.pc
  85. %{_libdir}/pkgconfig/%{name}-overlay.pc
  86. # compat32
  87. %if %{build_compat32}
  88. %files -n compat32-%{name}
  89. %defattr(-,root,root)
  90. %{_libdir}/%{name}.so.*
  91. %files -n compat32-%{name}-devel
  92. %defattr(-,root,root)
  93. %{_libdir}/%{name}.so
  94. %{_libdir}/pkgconfig/%{name}.pc
  95. %{_libdir}/pkgconfig/%{name}-ctor.pc
  96. %{_libdir}/pkgconfig/%{name}-overlay.pc
  97. %endif
  98. %changelog
  99. * Sun Feb 1 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.7.0-1
  100. - new upstream release.
  101. - added compat32 subpackages
  102. * Sun Jan 12 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.6.0-1
  103. - new upstream release.
  104. * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4.2-1
  105. - new upstream release.
  106. - initial build for Vine Linux.
  107. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
  108. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  109. * Sat Oct 08 2011 Eric Smith <eric@brouhaha.com> - 0.3.0-1
  110. - Update to latest upstream release.
  111. - Removed Patch0, fixed upstream.
  112. - Removed BuildRoot, clean, defattr.
  113. * Fri Jan 29 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-3
  114. - changes based on review by Sebastian Dziallas
  115. * Fri Jan 29 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-2
  116. - changes based on review comments by Jussi Lehtola and Ralf Corsepious
  117. * Thu Jan 28 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-1
  118. - initial version