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

Revision 7303, 2.9 KB checked in by Takemikaduchi, 11 years ago (diff)

mesa-libGLU: fix BR,
others: new upstream release

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3Name:           mesa-libGLU
4Version:        9.0.0
5Release:        2%{?_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}
24Requires:               mesa-libGL-devel >= 9.0.0
25Provides:       libGLU-devel = %{version}-%{release}
26
27%description    devel
28The %{name}-devel package contains libraries and header files for
29developing applications that use %{name}.
30
31
32# compat32
33%package -n compat32-%{name}
34Summary: Mesa libGLU runtime library
35Summary(ja): Mesa libGLU ランタイムライブラリ
36Group: System Environment/Libraries
37Requires(post): /sbin/ldconfig
38Requires(postun): /sbin/ldconfig
39Requires: %{name} = %{version}-%{release}
40
41%description -n compat32-%{name}
42Mesa libGLU runtime library
43
44
45%package -n compat32-%{name}-devel
46Summary: Mesa libGLU development package
47Summary(ja): Mesa libGLU 開発パッケージ
48Group: Development/Libraries
49Requires: compat32-mesa-libGL >= 9.0.0
50Requires: compat32-%{name} = %{version}-%{release}
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* Wed Jan 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 9.0.0-2
98- add Requires: mesa-libGL-devel to mesa-libGLU-devel package
99- remove Requires: mesa-libGL-devel from compat-mesa-libGLU-devel package
100
101* Sat Nov 17 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 9.0.0-1
102- initial build for Vine Linux
103
104* Tue Sep 18 2012 Adam Jackson <ajax@redhat.com> 9.0.0-1
105- libGLU 9.0
106
107* Mon Sep 10 2012 Dave Airlie <airlied@redhat.com> 9.0-0.2
108- add back libGLU provides for now
109
110* Tue Sep 04 2012 Adam Jackson <ajax@redhat.com> 9.0-0.1
111- Initial packaging for split libGLU
112
Note: See TracBrowser for help on using the repository browser.