]> git.pld-linux.org Git - packages/ogre.git/blob - ogre.spec
- converted to UTF-8
[packages/ogre.git] / ogre.spec
1 %define         _rc     RC1
2 %define         _rel    1
3 Summary:        Object-oriented Graphics Rendering Engine
4 Summary(pl.UTF-8):   OGRE - zorientowany obiektowo silnik renderowania grafiki
5 Name:           ogre
6 Version:        1.2.0
7 Release:        0.%{_rc}.%{_rel}
8 License:        LGPL
9 Group:          Applications
10 Source0:        http://dl.sourceforge.net/ogre/%{name}-linux_osx-v1-2-0%{_rc}.tar.bz2
11 # Source0-md5:  23e17ef81f1d7e159c0ba626a27c7681
12 URL:            http://www.ogre3d.org/
13 BuildRequires:  DevIL-devel >= 1.6.7
14 BuildRequires:  OpenEXR-devel
15 BuildRequires:  OpenGL-GLU-devel
16 BuildRequires:  XFree86-devel
17 BuildRequires:  autoconf >= 2.50
18 BuildRequires:  automake
19 BuildRequires:  cppunit-devel >= 1.10.0
20 BuildRequires:  freetype-devel >= 2.1.0
21 BuildRequires:  libstdc++-devel
22 BuildRequires:  libtool >= 2:1.5
23 BuildRequires:  pkgconfig
24 BuildRequires:  sed >= 4.0
25 # X11R7: xorg-lib-libXt-devel xorg-lib-libXaw-devel xorg-lib-libXrandr-devel
26 BuildRequires:  zlib-devel
27 BuildRequires:  zziplib-devel
28 # CEGUI >= 0.3.0, http://www.cegui.org.uk/
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 Object-oriented Graphics Rendering Engine.
33
34 %description -l pl.UTF-8
35 OGRE - zorientowany obiektowo silnik renderowania grafiki
36
37 %package devel
38 Summary:        Header files for OGRE library
39 Summary(pl.UTF-8):   Pliki nagłówkowe biblioteki OGRE
40 Group:          Development/Libraries
41 Requires:       %{name} = %{version}-%{release}
42 Requires:       DevIL-devel >= 1.6.7
43 Requires:       freetype-devel >= 2.1.0
44 Requires:       libstdc++-devel
45 Requires:       zlib-devel
46 Requires:       zziplib-devel
47 # libOgrePlatform additionally: XFree86-devel/xorg-lib-libX11-devel OpenGL-GLU-devel
48
49 %description devel
50 This is the package containing the header files for OGRE library.
51
52 %description devel -l pl.UTF-8
53 Ten pakiet zawiera pliki nagłówkowe biblioteki OGRE.
54
55 %package examples
56 Summary:        OGRE samples
57 Summary(pl.UTF-8):   Przykłady do OGRE
58 Group:          Applications
59
60 %description examples
61 OGRE samples.
62
63 %description examples -l pl.UTF-8
64 Przykłady do OGRE.
65
66 %prep
67 %setup -q -n %{name}new
68
69 find -name CVS -print0 | xargs -0 rm -rf
70
71 sed -i -e 's,"-L/usr/X11R6/lib ,"-L/usr/X11R6/%{_lib} ,' acinclude.m4
72 # X11R7
73 #sed -i -e 's,"-L/usr/X11R6/lib ,",' acinclude.m4
74 #sed -i -e 's,="-I/usr/X11R6/include",=,' acinclude.m4
75
76 %build
77 %{__libtoolize}
78 %{__aclocal}
79 %{__autoconf}
80 %{__autoheader}
81 %{__automake}
82 %configure \
83         --disable-cg \
84         --enable-openexr
85
86 %{__make}
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
91 cp -pr Samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
92
93 %{__make} install \
94         DESTDIR=$RPM_BUILD_ROOT
95
96 rm -f $RPM_BUILD_ROOT%{_libdir}/OGRE/*.la
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %post   -p /sbin/ldconfig
102 %postun -p /sbin/ldconfig
103
104 %files
105 %defattr(644,root,root,755)
106 %doc AUTHORS BUGS README INSTALL
107 %attr(755,root,root) %{_bindir}/Ogre*
108 %attr(755,root,root) %{_libdir}/libOgre*.so.*.*.*
109 %dir %{_libdir}/OGRE
110 %attr(755,root,root) %{_libdir}/OGRE/*.so
111
112 %files devel
113 %defattr(644,root,root,755)
114 %doc Docs/*
115 %attr(755,root,root) %{_libdir}/libOgre*.so
116 %{_libdir}/libOgre*.la
117 %{_includedir}/OGRE
118 %{_pkgconfigdir}/OGRE.pc
119
120 %files examples
121 %defattr(644,root,root,755)
122 %{_examplesdir}/%{name}-%{version}
This page took 0.027899 seconds and 3 git commands to generate.