]> git.pld-linux.org Git - packages/plib.git/blob - plib.spec
- added gcc4 patch
[packages/plib.git] / plib.spec
1 Summary:        Portable game library
2 Summary(pl):    Przeno¶na biblioteka do programowania gier
3 Name:           plib
4 Version:        1.8.4
5 Release:        1
6 License:        LGPL
7 Group:          X11/Libraries
8 Source0:        http://plib.sourceforge.net/dist/%{name}-%{version}.tar.gz
9 # Source0-md5:  5e3f289a9d1c5de0b1cfdec76bf139e6
10 Patch0:         %{name}-shared.patch
11 Patch1:         %{name}-js_fix.patch
12 Patch2:         %{name}-gcc4.patch
13 URL:            http://plib.sourceforge.net/
14 BuildRequires:  OpenGL-devel
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  libstdc++-devel
18 BuildRequires:  libtool
19 BuildRequires:  xorg-lib-libXi-devel
20 BuildRequires:  xorg-lib-libXmu-devel
21 Requires:       OpenGL
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         _noautoreqdep   libGL.so.1 libGLU.so.1
25
26 %description
27 Portable game library.
28
29 %description -l pl
30 Przeno¶na biblioteka do programowania gier.
31
32 %package devel
33 Summary:        Header files for plib library
34 Summary(pl):    Pliki nag³ówkowe biblioteki plib
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37 Requires:       OpenGL-devel
38 Requires:       libstdc++-devel
39 Requires:       xorg-lib-libXi-devel
40 Requires:       xorg-lib-libXmu-devel
41
42 %description devel
43 Header files for plib library.
44
45 %description devel -l pl
46 Pliki nag³ówkowe biblioteki plib.
47
48 %package static
49 Summary:        Static plib libraries
50 Summary(pl):    Statyczne biblioteki plib
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 Static plib libraries.
56
57 %description static -l pl
58 Statyczne biblioteki plib.
59
60 %prep
61 %setup -q
62 %patch0 -p1
63 %patch1 -p1
64 %patch2 -p1
65
66 %build
67 rm -f config.cache missing
68 %{__libtoolize}
69 %{__aclocal}
70 %{__autoconf}
71 %{__automake}
72 %configure
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %post   -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
86
87 %files
88 %defattr(644,root,root,755)
89 %doc AUTHORS README* NOTICE NEWS ChangeLog
90 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
91
92 %files devel
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_libdir}/lib*.so
95 %{_libdir}/*.la
96 %{_includedir}/%{name}
97
98 %files static
99 %defattr(644,root,root,755)
100 %{_libdir}/*.a
This page took 0.062211 seconds and 4 git commands to generate.