| 1 |
Name: AllegroOGG
|
| 2 |
Version: 1.0.3
|
| 3 |
Release: 6%{?dist}
|
| 4 |
Summary: Ogg library for use with the Allegro game library
|
| 5 |
Group: System Environment/Libraries
|
| 6 |
License: BSD
|
| 7 |
URL: http://nekros.freeshell.org/delirium/alogg.html
|
| 8 |
Source0: http://www.hero6.com/filereviver/alogg.zip
|
| 9 |
Source1: AllegroOGG.pc.in
|
| 10 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 11 |
BuildRequires: allegro-devel libvorbis-devel
|
| 12 |
|
| 13 |
%description
|
| 14 |
%{name} is an Allegro wrapper for the Ogg Vorbis decoder from the Xiph.org
|
| 15 |
foundation. This lib lets you play OGGs and convert OGGs to Allegro SAMPLEs
|
| 16 |
amongst a lot of other capabilites.
|
| 17 |
|
| 18 |
|
| 19 |
%package devel
|
| 20 |
Summary: Developmental libraries and include files for AllegroOgg
|
| 21 |
Group: Development/Libraries
|
| 22 |
Requires: %{name} = %{version}
|
| 23 |
Requires: allegro-devel pkgconfig
|
| 24 |
|
| 25 |
%description devel
|
| 26 |
Development libraries and include files for developing applications using
|
| 27 |
the %{name} library.
|
| 28 |
|
| 29 |
|
| 30 |
%prep
|
| 31 |
%setup -q -c
|
| 32 |
%{__sed} -i 's/\r//' docs/A*.txt
|
| 33 |
%{__sed} -e "s#@prefix@#%{_prefix}#g" -e "s#@libdir@#%{_libdir}#g" \
|
| 34 |
-e "s#@includedir@#%{_includedir}#g" -e "s#@version@#%{version}#g" \
|
| 35 |
-e "s#@name@#%{name}#" %{SOURCE1} > %{name}.pc
|
| 36 |
|
| 37 |
%build
|
| 38 |
# makefile doesn't support creating an .so, and wants to use its own version
|
| 39 |
# of libogg and libvorbis and there is only one source file so lets DIY
|
| 40 |
gcc $RPM_OPT_FLAGS -fPIC -DPIC -Iinclude -c src/alogg.c -o src/alogg.o
|
| 41 |
gcc -g -shared -Wl,-soname=lib%{name}.so.0 -o lib%{name}.so.0 \
|
| 42 |
src/alogg.o -logg -lvorbis -lvorbisfile \
|
| 43 |
`allegro-config --libs | sed 's/-lalleg_unsharable//'`
|
| 44 |
|
| 45 |
|
| 46 |
%install
|
| 47 |
rm -rf $RPM_BUILD_ROOT
|
| 48 |
|
| 49 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
|
| 50 |
install -m 755 lib%{name}.so.0 $RPM_BUILD_ROOT%{_libdir}
|
| 51 |
ln -s lib%{name}.so.0 $RPM_BUILD_ROOT%{_libdir}/lib%{name}.so
|
| 52 |
install -m 644 %{name}.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
|
| 53 |
|
| 54 |
mkdir -p $RPM_BUILD_ROOT%{_includedir}/%{name}
|
| 55 |
install -m 644 include/* $RPM_BUILD_ROOT%{_includedir}/%{name}
|
| 56 |
|
| 57 |
|
| 58 |
%post -p /sbin/ldconfig
|
| 59 |
|
| 60 |
%postun -p /sbin/ldconfig
|
| 61 |
|
| 62 |
|
| 63 |
%clean
|
| 64 |
rm -rf $RPM_BUILD_ROOT
|
| 65 |
|
| 66 |
|
| 67 |
%files
|
| 68 |
%defattr(-,root,root,-)
|
| 69 |
%doc docs/*.txt
|
| 70 |
%{_libdir}/*.so.*
|
| 71 |
|
| 72 |
%files devel
|
| 73 |
%{_includedir}/%{name}
|
| 74 |
%{_libdir}/*.so
|
| 75 |
%{_libdir}/pkgconfig/%{name}.pc
|
| 76 |
|
| 77 |
|
| 78 |
%changelog
|
| 79 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-6
|
| 80 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 81 |
|
| 82 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-5
|
| 83 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 84 |
|
| 85 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.3-4
|
| 86 |
- Autorebuild for GCC 4.3
|
| 87 |
|
| 88 |
* Mon Aug 28 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.3-3
|
| 89 |
- FE6 Rebuild
|
| 90 |
|
| 91 |
* Sat Apr 20 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.3-2
|
| 92 |
- Rename .so file from liballog.so(.0) to libAllegroOGG.so(.0) and put the
|
| 93 |
headers in /usr/include/AllegroOGG to avoid any future conflicts with the
|
| 94 |
(unpackaged) alogg library which unsurprisingly installs libalogg.so too.
|
| 95 |
- Add a pkgconfig file to allow apps to get the proper CFLAGS and LIBS for
|
| 96 |
this change. (bz 188625)
|
| 97 |
|
| 98 |
* Tue Apr 11 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0.3-1
|
| 99 |
- Initial spec file
|