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