liboil-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: Library of simple functions optimized for various CPUs
  3. Name: liboil
  4. Version: 0.3.17
  5. Release: 1%{?_dist_release}
  6. License: LGPL
  7. Group: System Environment/Libraries
  8. URL: http://liboil.freedesktop.org/
  9. Source: http://liboil.freedesktop.org/download/liboil-%{version}.tar.gz
  10. Patch10: %{name}-0.3.8-altivec.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: glib2-devel
  13. %description
  14. Liboil is a library of simple functions that are optimized for various CPUs.
  15. These functions are generally loops implementing simple algorithms, such as
  16. converting an array of N integers to floating-point numbers or multiplying
  17. and summing an array of N numbers. Such functions are candidates for
  18. significant optimization using various techniques, especially by using
  19. extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).
  20. %package devel
  21. Summary: Development files and static library for liboil
  22. Group: Development/Libraries
  23. Requires: %{name} = %{version}-%{release}
  24. %description devel
  25. Liboil is a library of simple functions that are optimized for various CPUs.
  26. These functions are generally loops implementing simple algorithms, such as
  27. converting an array of N integers to floating-point numbers or multiplying
  28. and summing an array of N numbers. Such functions are candidates for
  29. significant optimization using various techniques, especially by using
  30. extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).
  31. This package contains vevelopment files and static library for liboil.
  32. # compat32
  33. %package -n compat32-%{name}
  34. Summary: Library of simple functions optimized for various CPUs
  35. Group: System Environment/Libraries
  36. %description -n compat32-%{name}
  37. Liboil is a library of simple functions that are optimized for various CPUs.
  38. These functions are generally loops implementing simple algorithms, such as
  39. converting an array of N integers to floating-point numbers or multiplying
  40. and summing an array of N numbers. Such functions are candidates for
  41. significant optimization using various techniques, especially by using
  42. extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).
  43. %package -n compat32-%{name}-devel
  44. Summary: Development files and static library for liboil
  45. Group: Development/Libraries
  46. Requires: compat32-%{name} = %{version}-%{release}
  47. Requires: %{name}-devel = %{version}-%{release}
  48. %description -n compat32-%{name}-devel
  49. Liboil is a library of simple functions that are optimized for various CPUs.
  50. These functions are generally loops implementing simple algorithms, such as
  51. converting an array of N integers to floating-point numbers or multiplying
  52. and summing an array of N numbers. Such functions are candidates for
  53. significant optimization using various techniques, especially by using
  54. extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).
  55. This package contains vevelopment files and static library for liboil.
  56. %prep
  57. %setup -q
  58. %ifarch ppc
  59. %patch10 -p1
  60. %endif
  61. %build
  62. %configure
  63. %__make
  64. %install
  65. %__rm -rf %{buildroot}
  66. make install DESTDIR=$RPM_BUILD_ROOT
  67. rm -f $RPM_BUILD_ROOT%{_bindir}/oil-bugreport
  68. # remove .a and .la
  69. rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
  70. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  71. %clean
  72. %__rm -rf %{buildroot}
  73. %post -p /sbin/ldconfig
  74. %postun -p /sbin/ldconfig
  75. %post -n compat32-%{name} -p /sbin/ldconfig
  76. %postun -n compat32-%{name} -p /sbin/ldconfig
  77. %files
  78. %defattr(-,root,root)
  79. %doc AUTHORS COPYING NEWS README
  80. %{_libdir}/*.so.*
  81. %files devel
  82. %defattr(-,root,root)
  83. %{_datadir}/gtk-doc/html/liboil
  84. %{_includedir}/*
  85. %{_libdir}/*.so
  86. %{_libdir}/pkgconfig/*.pc
  87. # compat32
  88. %if %{build_compat32}
  89. %files -n compat32-%{name}
  90. %defattr(-,root,root)
  91. %{_libdir}/*.so.*
  92. %files -n compat32-%{name}-devel
  93. %defattr(-,root,root)
  94. %{_libdir}/*.so
  95. %endif
  96. %changelog
  97. * Sun Aug 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.17-1
  98. - update to 0.3.17
  99. * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.3.14-3
  100. - rebuilt with rpm-4.8.1 for pkg-config
  101. * Sun May 10 2009 NAKAMURA Kenta <kenta@vinelinux.org> 0.3.14-2vl5
  102. - added compat32 package for x86_64 arch support
  103. - removed static library from devel package
  104. * Fri Mar 21 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3.14-1vl5
  105. - new upstream release
  106. * Wed Sep 12 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3.12-0vl1
  107. - new upstream release
  108. * Sat Mar 25 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.3.8-0vl2
  109. - added Patch10 (ad-hoc) for ppc
  110. (this problem might be originally due to gcc-3.3.6's bug)
  111. * Fri Mar 24 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.8-0vl1
  112. - new upstream release
  113. - remove .la
  114. * Fri Jan 20 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.3.6-0vl1
  115. - initial build