Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package flac
      3 #
      4 # Copyright (c) 2003 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner: yippi
      9 #
     10 Name:         flac
     11 License:      Xiph
     12 Group:        Application/Devel
     13 Version:      1.1.2
     14 Release:      2
     15 Distribution: Java Desktop System
     16 Vendor:       Sun Microsystems, Inc.
     17 Summary:      An Open Source Lossless Audio Codec
     18 Source:       http://easynews.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
     19 Patch1:       flac-01-forte.diff
     20 URL:          http://flac.sourceforge.net/
     21 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     22 Docdir:       %{_docdir}/%{name}
     23 Autoreqprov:  on
     24 Prereq:       /sbin/ldconfig
     25 
     26 %description
     27 FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, 
     28 FLAC is similar to MP3, but lossless, meaning that audio is compressed 
     29 in FLAC without any loss in quality. This is similar to how Zip works, 
     30 except with FLAC you will get much better compression because it is 
     31 designed specifically for audio, and you can play back compressed FLAC 
     32 files in your favorite player (or your car or home stereo, see supported 
     33 devices) just like you would an MP3 file.
     34 
     35 %package devel
     36 Summary:	flac development files
     37 Group:		Development/Libraries
     38 Requires:	%{name} = %{version}
     39 
     40 %description devel
     41 flac development files.
     42 
     43 %prep
     44 %setup -q
     45 perl -pi -e 's/^M$//' src/share/replaygain_analysis/replaygain_analysis.c
     46 %ifos solaris
     47 %patch1 -p1
     48 %endif
     49 
     50 %build
     51 %ifos linux
     52 if [ -x /usr/bin/getconf ]; then
     53   CPUS=`getconf _NPROCESSORS_ONLN`
     54 fi
     55 %else
     56   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     57 %endif
     58 if test "x$CPUS" = "x" -o $CPUS = 0; then
     59   CPUS=1
     60 fi
     61 
     62 autoconf
     63 CFLAGS="$RPM_OPT_FLAGS" \
     64 ./configure --prefix=%{_prefix} \
     65             --sysconfdir=%{_sysconfdir} \
     66             --mandir=%{_mandir}
     67 
     68 make -j $CPUS
     69 
     70 %install
     71 make DESTDIR=$RPM_BUILD_ROOT install
     72 
     73 #Clean up unpackaged files
     74 rm $RPM_BUILD_ROOT%{_libdir}/*.a
     75 rm $RPM_BUILD_ROOT%{_libdir}/*la
     76 
     77 %clean
     78 rm -rf $RPM_BUILD_ROOT
     79 
     80 %post -p /sbin/ldconfig
     81 %postun -p /sbin/ldconfig
     82 
     83 %files
     84 %defattr(-,root,root)
     85 %{_datadir}/doc/*
     86 %{_datadir}/man/man1/flac*
     87 %{_datadir}/man/man1/metaflac*
     88 %attr(755,root,root) %{_bindir}/*
     89 %attr(755,root,root) %{_libdir}/libFLAC.so*
     90 %attr(755,root,root) %{_libdir}/libFLAC++.so*
     91 %attr(755,root,root) %{_libdir}/libOggFLAC.so*
     92 %attr(755,root,root) %{_libdir}/libOggFLAC++.so*
     93 
     94 %files devel
     95 %defattr(-,root,root)
     96 %{_includedir}/*
     97 %{_datadir}/aclocal/*.m4
     98 
     99 %changelog
    100 * Fri Aug 12 2005 - balamurali.viswanathan@wipro.com
    101 - Add patch flac-01-forte.diff
    102 * Tue Aug 02 2005 - balamurali.viswanathan@wipro.com
    103 - Initial spec file checkin
    104