| 1 |
Name: FlightGear-data
|
| 2 |
Summary: FlightGear base scenery and data files
|
| 3 |
Version: 1.9.0
|
| 4 |
Release: 3%{?dist}
|
| 5 |
|
| 6 |
License: GPLv2+
|
| 7 |
Group: Amusements/Games
|
| 8 |
Source0: ftp://ftp.flightgear.org/pub/fgfs/Shared/FlightGear-data-%{version}.tar.bz2
|
| 9 |
URL: http://www.flightgear.org/
|
| 10 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 11 |
BuildArch: noarch
|
| 12 |
Obsoletes: fgfs-base < 1.9.0-1
|
| 13 |
|
| 14 |
%description
|
| 15 |
This package contains the base scenery for FlightGear and must be
|
| 16 |
installed
|
| 17 |
|
| 18 |
%prep
|
| 19 |
|
| 20 |
%build
|
| 21 |
|
| 22 |
%install
|
| 23 |
rm -rf $RPM_BUILD_ROOT
|
| 24 |
install -d $RPM_BUILD_ROOT%{_datadir}/FlightGear
|
| 25 |
tar jxf %{SOURCE0} --strip-components 1 \
|
| 26 |
-C $RPM_BUILD_ROOT/%{_datadir}/FlightGear
|
| 27 |
|
| 28 |
# cleanup temporary files and fix permissions
|
| 29 |
find $RPM_BUILD_ROOT/%{_datadir}/FlightGear -name '*#*' -exec rm {} \;
|
| 30 |
find $RPM_BUILD_ROOT/%{_datadir}/FlightGear -type f -exec chmod 644 {} \;
|
| 31 |
|
| 32 |
# fix wrong eol encoding on some doc files
|
| 33 |
for f in Docs/FGShortRef.css Docs/README.kln89.html Docs/FGShortRef.html \
|
| 34 |
Docs/README.submodels Docs/README.yasim Docs/README.xmlparticles
|
| 35 |
do
|
| 36 |
sed -i 's/\r//' $RPM_BUILD_ROOT/%{_datadir}/FlightGear/$f
|
| 37 |
done
|
| 38 |
|
| 39 |
# remove hidden dirs
|
| 40 |
for d in Aircraft/c172/Panels/Textures/.xvpics \
|
| 41 |
Textures/Runway/.xvpics
|
| 42 |
do
|
| 43 |
rm -rf $RPM_BUILD_ROOT/%{_datadir}/FlightGear/$d
|
| 44 |
done
|
| 45 |
|
| 46 |
# fix files not in utf-8
|
| 47 |
for f in Thanks Docs/README.xmlparticles
|
| 48 |
do
|
| 49 |
path=$RPM_BUILD_ROOT/%{_datadir}/FlightGear/$f
|
| 50 |
iconv -f iso-8859-1 -t utf-8 -o ${path}.utf8 $path
|
| 51 |
mv -f ${path}.utf8 ${path}
|
| 52 |
done
|
| 53 |
|
| 54 |
# put documentation and license in the proper location
|
| 55 |
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
|
| 56 |
for f in COPYING AUTHORS NEWS README Thanks Docs
|
| 57 |
do
|
| 58 |
mv $RPM_BUILD_ROOT/%{_datadir}/FlightGear/$f \
|
| 59 |
$RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
|
| 60 |
done
|
| 61 |
|
| 62 |
%clean
|
| 63 |
rm -rf $RPM_BUILD_ROOT
|
| 64 |
|
| 65 |
%files
|
| 66 |
%defattr(-, root, root, 0755)
|
| 67 |
%doc %{_docdir}/%{name}-%{version}
|
| 68 |
%{_datadir}/FlightGear
|
| 69 |
|
| 70 |
%changelog
|
| 71 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-3
|
| 72 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 73 |
|
| 74 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-2
|
| 75 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 76 |
|
| 77 |
* Tue Jan 06 2009 Fabrice Bellet <fabrice@bellet.info> 1.9.0-1
|
| 78 |
- new upstream release
|
| 79 |
|
| 80 |
* Mon Jan 7 2008 Fabrice Bellet <fabrice@bellet.info> 1.0.0-1
|
| 81 |
- new upstream release
|
| 82 |
|
| 83 |
* Sun Sep 23 2007 Fabrice Bellet <fabrice@bellet.info> 0.9.11-0.2.pre1
|
| 84 |
- update License tag
|
| 85 |
|
| 86 |
* Wed Jun 27 2007 Fabrice Bellet <fabrice@bellet.info> 0.9.11-0.1.pre1
|
| 87 |
- new upstream (pre-)release
|
| 88 |
|
| 89 |
* Sat Apr 7 2007 Fabrice Bellet <fabrice@bellet.info> 0.9.10-3
|
| 90 |
- use sed instead of dos2unix to correct end-of-line encoding
|
| 91 |
|
| 92 |
* Mon Apr 2 2007 Fabrice Bellet <fabrice@bellet.info> 0.9.10-2
|
| 93 |
- Move documentation and license to a better place and mark it as %%doc
|
| 94 |
- Fix wrong end-of-line encoding in some doc files
|
| 95 |
|
| 96 |
* Tue Mar 20 2007 Fabrice Bellet <fabrice@bellet.info> 0.9.10-1
|
| 97 |
- Initial packaging
|