libbsd-vl.spec 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. Name: libbsd
  2. Version: 0.4.2
  3. Release: 1%{?_dist_release}
  4. Summary: Library providing BSD-compatible functions for portability
  5. URL: http://libbsd.freedesktop.org/
  6. Source0: http://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.gz
  7. License: BSD and ISC and Copyright only and Public Domain
  8. Group: System Environment/Libraries
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. Packager: tomop
  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. %prep
  25. %setup -q
  26. # fix encoding of flopen.3 man page
  27. for f in man/flopen.3; do
  28. iconv -f iso8859-1 -t utf-8 $f >$f.conv
  29. touch -r $f $f.conv
  30. mv $f.conv $f
  31. done
  32. %build
  33. %configure
  34. make CFLAGS="%{optflags}" %{?_smp_mflags} \
  35. libdir=%{_libdir} \
  36. usrlibdir=%{_libdir} \
  37. exec_prefix=%{_prefix}
  38. %install
  39. make libdir=%{_libdir} \
  40. usrlibdir=%{_libdir} \
  41. exec_prefix=%{_prefix} \
  42. DESTDIR=%{buildroot} \
  43. install
  44. # don't want static library
  45. rm -f %{buildroot}%{_libdir}/%{name}.a
  46. rm -f %{buildroot}%{_libdir}/%{name}.la
  47. %post
  48. /sbin/ldconfig
  49. %postun
  50. /sbin/ldconfig
  51. %files
  52. %doc COPYING README TODO ChangeLog
  53. %{_libdir}/%{name}.so.*
  54. %files devel
  55. %{_mandir}/man3/*.3.gz
  56. %{_mandir}/man3/*.3bsd.gz
  57. %{_includedir}/bsd
  58. %{_libdir}/%{name}.so
  59. %{_libdir}/pkgconfig/%{name}.pc
  60. %{_libdir}/pkgconfig/%{name}-overlay.pc
  61. %changelog
  62. * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4.2-1
  63. - new upstream release.
  64. - initial build for Vine Linux.
  65. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
  66. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  67. * Sat Oct 08 2011 Eric Smith <eric@brouhaha.com> - 0.3.0-1
  68. - Update to latest upstream release.
  69. - Removed Patch0, fixed upstream.
  70. - Removed BuildRoot, clean, defattr.
  71. * Fri Jan 29 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-3
  72. - changes based on review by Sebastian Dziallas
  73. * Fri Jan 29 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-2
  74. - changes based on review comments by Jussi Lehtola and Ralf Corsepious
  75. * Thu Jan 28 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-1
  76. - initial version