libbsd-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. Name: libbsd
  2. Version: 0.6.0
  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.xz
  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. * Sun Jan 12 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.6.0-1
  63. - new upstream release.
  64. * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4.2-1
  65. - new upstream release.
  66. - initial build for Vine Linux.
  67. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  69. * Sat Oct 08 2011 Eric Smith <eric@brouhaha.com> - 0.3.0-1
  70. - Update to latest upstream release.
  71. - Removed Patch0, fixed upstream.
  72. - Removed BuildRoot, clean, defattr.
  73. * Fri Jan 29 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-3
  74. - changes based on review by Sebastian Dziallas
  75. * Fri Jan 29 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-2
  76. - changes based on review comments by Jussi Lehtola and Ralf Corsepious
  77. * Thu Jan 28 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-1
  78. - initial version