libepoxy-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: A library for handling OpenGL function pointer management
  3. Name: libepoxy
  4. Version: 1.2
  5. Release: 1%{?_dist_release}
  6. License: MIT
  7. Group: System Environment/Libraries
  8. URL: https://github.com/anholt/libepoxy
  9. Source0: %{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  11. BuildRequires: mesa-libGL-devel
  12. BuildRequires: mesa-libEGL-devel
  13. BuildRequires: mesa-libGLES-devel
  14. BuildRequires: xorg-x11-util-macros
  15. BuildRequires: python
  16. BuildRequires: autoconf
  17. BuildRequires: libtool
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. Packager: Takemikaduchi
  21. %description
  22. Epoxy is a library for handling OpenGL function pointer management for you.
  23. %package devel
  24. Summary: Development tools for %{name}
  25. Summary(ja): %{name} の開発環境
  26. Group: Development/Libraries
  27. Requires: %{name} = %{version}-%{release}
  28. Requires: pkgconfig
  29. %description devel
  30. Header files and libraries for building a extension library for the %{name}.
  31. # compat32
  32. %package -n compat32-%{name}
  33. Summary: A library for handling OpenGL function pointer management
  34. Group: System Environment/Libraries
  35. Requires: %{name} = %{version}-%{release}
  36. %description -n compat32-%{name}
  37. Epoxy is a library for handling OpenGL function pointer management for you.
  38. %package -n compat32-%{name}-devel
  39. Summary: Development tools for compat32-%{name}
  40. Summary(ja): compat32-%{name} の開発環境
  41. Group: Development/Libraries
  42. Requires: compat32-%{name} = %{version}-%{release}
  43. Requires: %{name}-devel = %{version}-%{release}
  44. %description -n compat32-%{name}-devel
  45. Header files and libraries for building a extension library for the compat32-%{name}.
  46. %prep
  47. %setup -q
  48. sed -i "s|python3||g" configure.ac
  49. %build
  50. autoreconf -if
  51. %configure --disable-static
  52. make %{?smp_mflags}
  53. %install
  54. rm -rf $RPM_BUILD_ROOT
  55. make install DESTDIR=$RPM_BUILD_ROOT
  56. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  57. %clean
  58. rm -rf $RPM_BUILD_ROOT
  59. %check
  60. make check
  61. %post -p /sbin/ldconfig
  62. %postun -p /sbin/ldconfig
  63. %post -n compat32-%{name} -p /sbin/ldconfig
  64. %postun -n compat32-%{name} -p /sbin/ldconfig
  65. %files
  66. %defattr(-,root,root,-)
  67. %doc README.md
  68. %{_libdir}/libepoxy.so.*
  69. %files devel
  70. %defattr(-,root,root,-)
  71. %{_includedir}/epoxy
  72. %{_libdir}/libepoxy.so
  73. %{_libdir}/pkgconfig/epoxy.pc
  74. # compat32
  75. %if %{build_compat32}
  76. %files -n compat32-%{name}
  77. %defattr(-,root,root,-)
  78. %{_libdir}/libepoxy.so.*
  79. %files -n compat32-%{name}-devel
  80. %defattr(-,root,root,-)
  81. %{_libdir}/libepoxy.so
  82. %endif
  83. %changelog
  84. * Sat Nov 22 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2-1
  85. - initial build