]> git.pld-linux.org Git - packages/SimGear.git/blob - SimGear.spec
- /sbin/ldconfig must be runed in %post, %postun in main package (not in devel),
[packages/SimGear.git] / SimGear.spec
1 Summary:        a set of libraries to build 3d simulations, games etc.
2 Summary(pl):    zestaw bibliotek do budowania trójwymiarowych symulacji, gier itp.
3 Name:           SimGear
4 Version:        0.0.14
5 Release:        2
6 License:        GPL
7 Group:          Libraries
8 Group(de):      Libraries
9 Group(es):      Bibliotecas
10 Group(fr):      Librairies
11 Group(pl):      Biblioteki
12 Source0:        ftp://ftp.simgear.org/pub/simgear/Source/%{name}-%{version}.tar.gz
13 Patch0:         %{name}-DESTDIR.patch
14 Patch1:         %{name}-shared.patch
15 Patch2:         %{name}-metakit.patch
16 URL:            http://www.simgear.org
17 Requires:       OpenGL
18 BuildRequires:  OpenGL-devel
19 BuildRequires:  XFree86-devel
20 BuildRequires:  libstdc++-devel
21 BuildRequires:  glut-devel
22 BuildRequires:  automake
23 BuildRequires:  autoconf
24 BuildRequires:  libtool
25 BuildRequires:  plib >= 1.2.0
26 BuildRequires:  zlib-devel
27 BuildRequires:  tcl-devel
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %define _noautoreqdep libGL.so.1 libGLU.so.1
31
32 %description
33 SimGear is a set of open-source libraries designed to be used as
34 building blocks for quickly assembling 3d simulations, games, and
35 visualization applications.
36
37 The term "Simulation Kernel" is a bit presumptuous for us at this
38 point, but this is the direction we are heading with SimGear.
39
40 %description -l pl
41 SimGear to zestaw bibliotek zaprojektowanych do wykorzystania jako
42 klocki do szybkiego zestawiania trójwymiarowych symulacji, gier...
43
44 W tej chwili jest jeszcze trochê za wcze¶nie na u¿ywanie terminu
45 "J±dro Symulacji", ale to jest kierunek w którym zmierza SimGear.
46
47 %package devel
48 Summary:        header files for SimGear
49 Summary(pl):    pliki nag³ówkowe dla SimGear
50 Group:          Development/Libraries
51 Group(de):      Entwicklung/Libraries
52 Group(fr):      Development/Librairies
53 Group(pl):      Programowanie/Biblioteki
54 Requires:       %{name} = %{version}
55
56 %description devel
57 Header files neccessary to build SimGear applications.
58
59 %description devel -l pl
60 Pliki nag³ówkowe potrzebne do budowania aplikacji z SimGearem.
61
62 %package static
63 Summary:        static SimGear libraries
64 Summary(pl):    statyczne biblioteki SimGear
65 Group:          Development/Libraries
66 Group(de):      Entwicklung/Libraries
67 Group(fr):      Development/Librairies
68 Group(pl):      Programowanie/Biblioteki
69 Requires:       %{name}-devel = %{version}
70
71 %description static
72 Static SimGear libraries.
73
74 %description static -l pl
75 Statyczne biblioteki SimGear.
76
77 %prep
78 %setup -q
79 %patch0 -p1
80 %patch1 -p1
81 %patch2 -p1
82
83 %build
84 libtoolize --force --copy
85 aclocal
86 autoconf
87 automake -a -c
88 %configure \
89         --with-x \
90         --with-tcl=/usr/lib
91 %{__make}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT
96
97 %{__make} install DESTDIR=$RPM_BUILD_ROOT
98
99 %post   -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %files
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/*.so.*.*
108
109 %files devel
110 %defattr(644,root,root,755)
111 %doc simgear/metakit/doc/*.html
112 %doc simgear/metakit/doc/api
113 %attr(755,root,root) %{_libdir}/lib*.so
114 %attr(755,root,root) %{_libdir}/lib*.la
115 %{_includedir}/*
116
117 %files static
118 %defattr(644,root,root,755)
119 %{_libdir}/lib*.a
This page took 0.063096 seconds and 3 git commands to generate.