/[pkgs]/devel/FlightGear/FlightGear.spec
ViewVC logotype

Contents of /devel/FlightGear/FlightGear.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Sun Aug 16 09:18:35 2009 UTC (3 months, 1 week ago) by bellet
Branch: MAIN
CVS Tags: F-12-split, FlightGear-1_9_1-6_fc12, HEAD
Changes since 1.15: +5 -2 lines
* Sun Aug 16 2009 Fabrice Bellet <fabrice@bellet.info> 1.9.1-6
- Switch to openal-soft
1 Name: FlightGear
2 Summary: The FlightGear Flight Simulator
3 Version: 1.9.1
4 Release: 6%{?dist}
5
6 License: GPLv2+
7 Group: Amusements/Games
8 Source: ftp://ftp.flightgear.org/pub/fgfs/Source/FlightGear-%{version}.tar.gz
9 Source1: %{name}.desktop
10 Source2: http://jrbabcock.home.comcast.net/flightgear/icons/fg-16.png
11 Source3: http://jrbabcock.home.comcast.net/flightgear/icons/fg-32.png
12 Source4: http://jrbabcock.home.comcast.net/flightgear/icons/fg-48.png
13 Source5: http://jrbabcock.home.comcast.net/flightgear/icons/fg-64.png
14 Source6: http://jrbabcock.home.comcast.net/flightgear/icons/fg-128.png
15 Source7: http://jrbabcock.home.comcast.net/flightgear/icons/COPYING
16 Patch0: FlightGear-0.9.10-no-automake-in-configure.patch
17 Patch1: FlightGear-1.9.1-gcc44.patch
18 URL: http://www.flightgear.org/
19 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
20 BuildRequires: openal-soft-devel, SimGear-devel >= %{version}, freeglut-devel
21 BuildRequires: OpenSceneGraph-devel >= 2.6.0, boost-devel >= 1.34.0
22 BuildRequires: desktop-file-utils
23 Requires: FlightGear-data >= 1.9.0, opengl-games-utils
24
25 %description
26 The Flight Gear project is working to create a sophisticated flight
27 simulator framework for the development and pursuit of interesting
28 flight simulator ideas. We are developing a solid basic sim that can be
29 expanded and improved upon by anyone interested in contributing
30
31 %prep
32 %setup -q
33 # automake shouldn't be called in configure Summary page
34 %patch0 -p1 -b .no-automake-in-configure
35 # fix for gcc44
36 %patch1 -p1 -b .gcc44
37
38 # make rpmlint happy
39 find -name \*.h -o -name \*.cpp -o -name \*.cxx -o -name \*.hxx \
40 -o -name \*.hpp |xargs chmod -x
41 rm -f docs-mini/README.electrical.~1.5.~ \
42 docs-mini/README.xmlsound.~1.1.1.1.~
43 for f in docs-mini/README.xmlparticles Thanks
44 do
45 iconv -f iso-8859-1 -t utf-8 -o ${f}.utf8 ${f}
46 mv -f ${f}.utf8 ${f}
47 done
48 sed -i 's/\r//' docs-mini/AptNavFAQ.FlightGear.html
49 # remove some unneeded files for %doc
50 for ext in Cygwin IRIX Joystick Linux MSVC MSVC8 MacOS SimGear Unix \
51 Win32-X autoconf mingw plib src xmlsyntax
52 do
53 rm -f docs-mini/README.${ext}
54 done
55 # icons license file
56 cp %{SOURCE7} COPYING.icons
57
58 %build
59 %configure
60 # the application doesn't build with _smp_mflags.
61 make
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 make install DESTDIR=$RPM_BUILD_ROOT
66 ln -s opengl-game-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/fgfs-wrapper
67
68 desktop-file-install --vendor="fedora" \
69 --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
70 %{SOURCE1}
71
72 # install icons
73 mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps
74 mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
75 mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
76 mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps
77 mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
78
79 install -m 0644 %{SOURCE2} \
80 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
81 install -m 0644 %{SOURCE3} \
82 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
83 install -m 0644 %{SOURCE4} \
84 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
85 install -m 0644 %{SOURCE5} \
86 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
87 install -m 0644 %{SOURCE6} \
88 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
89
90 %post
91 update-desktop-database &> /dev/null ||:
92 touch --no-create %{_datadir}/icons/hicolor || :
93 if [ -x %{_bindir}/gtk-update-icon-cache ]; then
94 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
95 fi
96
97 %postun
98 update-desktop-database &> /dev/null ||:
99 touch --no-create %{_datadir}/icons/hicolor || :
100 if [ -x %{_bindir}/gtk-update-icon-cache ]; then
101 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
102 fi
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %files
108 %defattr(-, root, root, -)
109 %doc AUTHORS COPYING COPYING.icons NEWS README Thanks docs-mini/*
110 %{_bindir}/*
111 %{_mandir}/*/*
112 %{_datadir}/applications/*.desktop
113 %{_datadir}/icons/hicolor/*/apps/*
114
115 %changelog
116 * Sun Aug 16 2009 Fabrice Bellet <fabrice@bellet.info> 1.9.1-6
117 - Switch to openal-soft
118
119 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-5
120 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
121
122 * Mon May 11 2009 Fabrice Bellet <fabrice@bellet.info> 1.9.1-4
123 - Rebuilt to fix bz#498584
124
125 * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-3
126 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
127
128 * Sun Feb 15 2009 Fabrice Bellet <fabrice@bellet.info> 1.9.1-2
129 - rebuild for newer OSG
130 - gcc44 compilation fix
131
132 * Tue Feb 03 2009 Fabrice Bellet <fabrice@bellet.info> 1.9.1-1
133 - new upstream release
134
135 * Tue Jan 06 2009 Fabrice Bellet <fabrice@bellet.info> 1.9.0-1
136 - new upstream release
137
138 * Sun Oct 5 2008 Fabrice Bellet <fabrice@bellet.info> 1.0.0-4
139 - fixed category of the menu entry (rh#465698)
140
141 * Tue May 13 2008 Fabrice Bellet <fabrice@bellet.info> 1.0.0-3
142 - rebuild with newer plib
143
144 * Sun Feb 10 2008 Fabrice Bellet <fabrice@bellet.info> 1.0.0-2
145 - rebuild with gcc43
146
147 * Mon Jan 7 2008 Fabrice Bellet <fabrice@bellet.info> 1.0.0-1
148 - new upstream release
149
150 * Tue Oct 2 2007 Fabrice Bellet <fabrice@bellet.info> 0.9.11-0.4.pre1
151 - use opengl-games-utils wrapper to show error dialog when DRI is missing
152
153 * Sun Sep 23 2007 Fabrice Bellet <fabrice@bellet.info> 0.9.11-0.3.pre1
154 - update icon cache handling to current guidelines/drafts
155 - update License tag
156
157 * Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.9.11-0.2.pre1
158 - Rebuild for selinux ppc32 issue.
159
160 * Wed Jun 27 2007 Fabrice Bellet <fabrice@bellet.info> 0.9.11-0.1.pre1
161 - new upstream (pre-)release
162
163 * Wed Apr 18 2007 Fabrice Bellet <fabrice@bellet.info> 0.9.10-6
164 - desktop-database update
165 - add icons from Josh Babcock
166
167 * Mon Apr 16 2007 Fabrice Bellet <fabrice@bellet.info> 0.9.10-5
168 - doc files cleanup
169 - remove -fPIC from CXXFLAGS
170 - add a desktop file (but no dedicated icon is available)
171 - spec file cleanup
172
173 * Sun Apr 08 2007 Fabrice Bellet <fabrice@bellet.info> 0.9.10-4
174 - disable parallel build, as it is currently broken. A typo in
175 _smp_mflags macro in previous builds prevented the problem from
176 showing up
177 - fixed duplicate BuildRequires
178
179 * Sat Apr 07 2007 Fabrice Bellet <fabrice@bellet.info> 0.9.10-3
180 - use sed instead of dos2unix to correct end-of-line encoding
181 - configure should not call automake (BZ#234826)
182
183 * Sun Apr 01 2007 Fabrice Bellet <fabrice@bellet.info> 0.9.10-2
184 - rebuild against new SimGear
185
186 * Tue Mar 20 2007 Fabrice Bellet <fabrice@bellet.info> 0.9.10-1
187 - initial packaging

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2