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