1.1 --- a/faac/faac.spec Fri Mar 11 21:30:26 2011 +0100 1.2 +++ b/faac/faac.spec Fri Mar 11 21:36:51 2011 +0100 1.3 @@ -1,19 +1,17 @@ 1.4 Name: faac 1.5 +Summary: Encoder and encoding library for MPEG2/4 AAC 1.6 +Vendor: Europalab Software 1.7 +Packager: Michael Schloh von Bennewitz 1.8 +Distribution: MeeGo Thirdparty 1.9 Version: 1.28 1.10 -Release: 1%{?dist} 1.11 -Summary: Encoder and encoding library for MPEG2/4 AAC 1.12 - 1.13 +Release: 20101201 1.14 Group: Applications/Multimedia 1.15 License: LGPLv2+ 1.16 -URL: http://www.audiocoding.com/ 1.17 +URL: http://www.audiocoding.com/faac.html 1.18 Source0: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2 1.19 -Patch0: %{name}-libmp4v2.patch 1.20 - 1.21 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 1.22 - 1.23 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root 1.24 BuildRequires: libmp4v2-devel 1.25 1.26 - 1.27 %description 1.28 FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW 1.29 COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports 1.30 @@ -21,6 +19,9 @@ 1.31 1.32 %package devel 1.33 Summary: Development libraries of the FAAC AAC encoder 1.34 +Vendor: Europalab Software 1.35 +Packager: Michael Schloh von Bennewitz 1.36 +Distribution: MeeGo Thirdparty 1.37 Group: Development/Libraries 1.38 Requires: %{name} = %{version}-%{release} 1.39 1.40 @@ -33,38 +34,30 @@ 1.41 1.42 %prep 1.43 %setup -q 1.44 -%patch0 -p1 -b .mp4v2 1.45 -touch -r configure.in.mp4v2 configure.in 1.46 -#fix permissions 1.47 +touch configure.in 1.48 find . -type f \( -name \*.h -or -name \*.c \) -exec chmod 644 {} \; 1.49 chmod 644 AUTHORS COPYING ChangeLog NEWS README TODO docs/* 1.50 1.51 -#fix encoding 1.52 -/usr/bin/iconv -f iso8859-1 -t utf-8 AUTHORS > AUTHORS.conv && touch -r AUTHORS AUTHORS.conv && /bin/mv -f AUTHORS.conv AUTHORS 1.53 +%build 1.54 +%configure 1.55 1.56 -%build 1.57 -%configure --disable-static 1.58 # remove rpath from libtool 1.59 sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool 1.60 sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool 1.61 make %{?_smp_mflags} 1.62 1.63 - 1.64 %install 1.65 rm -rf $RPM_BUILD_ROOT 1.66 -make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" 1.67 - 1.68 +make install DESTDIR=$RPM_BUILD_ROOT 1.69 1.70 %clean 1.71 rm -rf $RPM_BUILD_ROOT 1.72 1.73 - 1.74 %post -p /sbin/ldconfig 1.75 1.76 %postun -p /sbin/ldconfig 1.77 1.78 - 1.79 -%files 1.80 +%files 1.81 %defattr(-,root,root,-) 1.82 %doc AUTHORS COPYING ChangeLog NEWS README TODO docs/* 1.83 %{_bindir}/* 1.84 @@ -73,10 +66,14 @@ 1.85 1.86 %files devel 1.87 %defattr(-,root,root,-) 1.88 -%exclude %{_libdir}/*.la 1.89 +%{_libdir}/*.a 1.90 +%{_libdir}/*.la 1.91 %{_libdir}/*.so 1.92 %{_includedir}/*.h 1.93 1.94 %changelog 1.95 +* Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 1.28-20101201 1.96 +- Adjust packaging and patch logic 1.97 + 1.98 * Fri Oct 29 2010 Kozinov Ivan - 1.25-1 1.99 -- Build for 1.1 1.100 +- Package for MeeGo 1.1