source: projects/specs/trunk/m/mesa-libGLU/mesa-libGLU-vl.spec @ 7125

Revision 7125, 2.7 KB checked in by daisuke, 12 years ago (diff)

mesa-libGLU: new package splitted from mesa

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3Name:           mesa-libGLU
4Version:        9.0.0
5Release:        1%{?_dist_release}
6Summary:        Mesa libGLU library
7Summary(ja):    Mesa libGLU ライブラリ
8
9License:        MIT
10URL:            http://mesa3d.org/
11Source0:        ftp://ftp.freedesktop.org/pub/mesa/glu/glu-%{version}.tar.bz2
12Source2:        make-git-snapshot.sh
13
14BuildRequires:  mesa-libGL-devel
15Provides:       libGLU = %{version}-%{release}
16
17%description
18Mesa implementation of the standard GLU OpenGL utility API.
19
20%package        devel
21Summary:        Development files for %{name}
22Summary(ja):    %{name} の開発ファイル
23Requires:       %{name} = %{version}-%{release}
24Provides:       libGLU-devel = %{version}-%{release}
25
26%description    devel
27The %{name}-devel package contains libraries and header files for
28developing applications that use %{name}.
29
30
31# compat32
32%package -n compat32-%{name}
33Summary: Mesa libGLU runtime library
34Summary(ja): Mesa libGLU ランタイムライブラリ
35Group: System Environment/Libraries
36Requires(post): /sbin/ldconfig
37Requires(postun): /sbin/ldconfig
38Requires: %{name} = %{version}-%{release}
39
40%description -n compat32-%{name}
41Mesa libGLU runtime library
42
43
44%package -n compat32-%{name}-devel
45Summary: Mesa libGLU development package
46Summary(ja): Mesa libGLU 開発パッケージ
47Group: Development/Libraries
48Requires: compat32-mesa-libGL = %{version}
49Requires: compat32-%{name} = %{version}-%{release}
50Requires: mesa-libGL-devel = %{version}
51Requires: %{name}-devel = %{version}-%{release}
52
53%description -n compat32-%{name}-devel
54Mesa libGLU development package
55
56
57%prep
58%setup -q -n glu-%{version}
59
60%build
61%configure --disable-static
62make %{?_smp_mflags}
63
64%install
65rm -rf $RPM_BUILD_ROOT
66make install DESTDIR=$RPM_BUILD_ROOT
67find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
68rm -rf $RPM_BUILD_ROOT%{_datadir}/man/man3/gl[A-Z]*
69
70%post -p /sbin/ldconfig
71%post -n compat32-%{name} -p /sbin/ldconfig
72
73%postun -p /sbin/ldconfig
74%postun -n compat32-%{name} -p /sbin/ldconfig
75
76%files
77%{_libdir}/libGLU.so.1
78%{_libdir}/libGLU.so.1.3.*
79
80%files devel
81%{_includedir}/GL/glu*.h
82%{_libdir}/libGLU.so
83%{_libdir}/pkgconfig/glu.pc
84
85%if %{build_compat32}
86%files -n compat32-%{name}
87%{_libdir}/libGLU.so.1
88%{_libdir}/libGLU.so.1.3.*
89
90%files -n compat32-%{name}-devel
91%{_includedir}/GL/glu*.h
92%{_libdir}/libGLU.so
93%{_libdir}/pkgconfig/glu.pc
94%endif
95
96%changelog
97* Sat Nov 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 9.0.0-1
98- initial build for Vine Linux
99
100* Tue Sep 18 2012 Adam Jackson <ajax@redhat.com> 9.0.0-1
101- libGLU 9.0
102
103* Mon Sep 10 2012 Dave Airlie <airlied@redhat.com> 9.0-0.2
104- add back libGLU provides for now
105
106* Tue Sep 04 2012 Adam Jackson <ajax@redhat.com> 9.0-0.1
107- Initial packaging for split libGLU
108
Note: See TracBrowser for help on using the repository browser.