lame/lame.spec

changeset 0
4f133201e207
child 1
4667f24fe848
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lame/lame.spec	Fri Mar 11 21:30:26 2011 +0100
     1.3 @@ -0,0 +1,126 @@
     1.4 +Name:           lame
     1.5 +Version:        3.98.4
     1.6 +Release:        1.4
     1.7 +Summary:        Free MP3 audio compressor
     1.8 +
     1.9 +Group:          Applications/Multimedia
    1.10 +License:        GPLv2+
    1.11 +URL:            http://lame.sourceforge.net/
    1.12 +Source0:        http://downloads.sourceforge.net/sourceforge/lame/%{name}-%{version}.tar.gz
    1.13 +Patch1:         %{name}-noexecstack.patch
    1.14 +Patch2:         %{name}-pmake.patch
    1.15 +BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    1.16 +
    1.17 +BuildRequires:  ncurses-devel
    1.18 +BuildRequires:  gtk+-devel
    1.19 +# pkg-config should be pulled in by gtk+-devel but is not in EL-5
    1.20 +BuildRequires:  pkgconfig
    1.21 +%ifarch %{ix86}
    1.22 +BuildRequires:  nasm
    1.23 +%endif
    1.24 +Requires:       %{name}-libs = %{version}-%{release}
    1.25 +
    1.26 +%description
    1.27 +LAME is an open source MP3 encoder whose quality and speed matches
    1.28 +commercial encoders. LAME handles MPEG1,2 and 2.5 layer III encoding
    1.29 +with both constant and variable bitrates.
    1.30 +
    1.31 +%package        libs
    1.32 +Summary:        LAME MP3 encoding library
    1.33 +Group:          System Environment/Libraries
    1.34 +
    1.35 +%description    libs
    1.36 +LAME MP3 encoding library.
    1.37 +
    1.38 +%package        devel
    1.39 +Summary:        Development files for %{name}
    1.40 +Group:          Development/Libraries
    1.41 +Requires:       %{name}-libs = %{version}-%{release}
    1.42 +
    1.43 +%description    devel
    1.44 +This package development files for %{name}.
    1.45 +
    1.46 +%package        mp3x
    1.47 +Summary:        MP3 frame analyzer
    1.48 +Group:          Applications/Multimedia
    1.49 +Requires:       %{name} = %{version}-%{release}
    1.50 +
    1.51 +%description    mp3x
    1.52 +This package contains the mp3x frame analyzer.
    1.53 +
    1.54 +
    1.55 +%prep
    1.56 +%setup -q
    1.57 +%patch1 -p1 -b .noexec
    1.58 +%patch2 -p1 -b .pmake
    1.59 +iconv -f ISO-8859-1 -t UTF8 ChangeLog > ChangeLog.tmp && touch -r ChangeLog ChangeLog.tmp && mv ChangeLog.tmp ChangeLog
    1.60 +
    1.61 +
    1.62 +%build
    1.63 +#sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure
    1.64 +#export CFLAGS="$RPM_OPT_FLAGS -ffast-math"
    1.65 +unset CFLAGS
    1.66 +unset CXXFLAGS
    1.67 +unset FFLAGS
    1.68 +unset LD_AS_NEEDED
    1.69 +%configure \
    1.70 +  --disable-dependency-tracking \
    1.71 +  --disable-static \
    1.72 +%ifarch %{ix86}
    1.73 +  --enable-nasm \
    1.74 +%endif
    1.75 +  --enable-mp3x \
    1.76 +  --enable-mp3rtp \
    1.77 +  --enable-decode-layer1
    1.78 +
    1.79 +make
    1.80 +echo $CFLAGS
    1.81 +
    1.82 +%install
    1.83 +rm -rf $RPM_BUILD_ROOT
    1.84 +make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT
    1.85 +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
    1.86 +# Some apps still expect to find <lame.h>
    1.87 +ln -sf lame/lame.h $RPM_BUILD_ROOT%{_includedir}/lame.h
    1.88 +rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
    1.89 +
    1.90 +
    1.91 +%check
    1.92 +make test
    1.93 +
    1.94 +
    1.95 +%post libs -p /sbin/ldconfig
    1.96 +
    1.97 +%postun libs -p /sbin/ldconfig
    1.98 +
    1.99 +
   1.100 +%clean
   1.101 +rm -rf $RPM_BUILD_ROOT
   1.102 +
   1.103 +
   1.104 +%files
   1.105 +%defattr (-,root,root,-)
   1.106 +%doc README TODO USAGE doc/html/*.html doc/html/*.css
   1.107 +%{_bindir}/lame
   1.108 +%{_bindir}/mp3rtp
   1.109 +%{_mandir}/man1/lame.1*
   1.110 +
   1.111 +%files libs
   1.112 +%defattr(-,root,root,-)
   1.113 +%doc ChangeLog COPYING LICENSE
   1.114 +%{_libdir}/libmp3lame.so.*
   1.115 +
   1.116 +%files devel
   1.117 +%defattr (-,root,root,-)
   1.118 +%doc API HACKING STYLEGUIDE
   1.119 +%{_libdir}/libmp3lame.so
   1.120 +%{_includedir}/lame/
   1.121 +%{_includedir}/lame.h
   1.122 +
   1.123 +%files mp3x
   1.124 +%defattr (-,root,root,-)
   1.125 +%{_bindir}/mp3x
   1.126 +
   1.127 +%changelog
   1.128 +* Fri Oct 29 2010 Kozinov Ivan <kozinov@gmail.com> - 3.98.4-1
   1.129 +- Build for 1.1

mercurial