Пакет libmad: Specfile

Name: libmad
Version: 0.15.1b
Release: alt4

Summary: High quality MPEG audio decoder library
Summary(ru_RU.CP1251): \xc1\xe8\xe1\xeb\xe8\xee\xf2\xe5\xea\xe0 \xe4\xe5\xea\xee\xe4\xe5\xf0\xe0 \xe0\xf3\xe4\xe8\xee\xf4\xe0\xe9\xeb\xee\xe2 MPEG
License: GPL
Group: Sound
Url: http://mad.sourceforge.net/

Packager: Pavlov Konstantin <thresh@altlinux.ru>

Source: http://download.sourceforge.net/%name/%name-%version.tar.bz2
Patch1: %name-0.15.1b-speedup.patch
Patch2: %name-0.15.0b-alt-pkgconfig.patch
Patch3: libmad-0.15.1b-no-force-mem-gcc43.patch

%def_disable static
%{?_enable_static:BuildPreReq: glibc-devel-static}

BuildRequires: gcc-c++ libstdc++-devel

%description
MAD is a high-quality MPEG audio decoder. It currently supports MPEG-1
and the MPEG-2 extension to Lower Sampling Frequencies, as well as the
so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II,
and Layer III a.k.a. MP3) are fully implemented.

%description -l ru_RU.CP1251
MAD - \xfd\xf2\xee \xe2\xfb\xf1\xee\xea\xe0\xf7\xe5\xf1\xf2\xe2\xe5\xed\xed\xfb\xe9 \xe4\xe5\xea\xee\xe4\xe5\xf0 \xe0\xf3\xe4\xe8\xee\xf4\xe0\xe9\xeb\xee\xe2 \xf4\xee\xf0\xec\xe0\xf2\xe0 MPEG.
\xd1\xe5\xe9\xf7\xe0\xf1 \xef\xee\xe4\xe4\xe5\xf0\xe6\xe8\xe2\xe0\xfe\xf2\xf1\xff MPEG-1, \xf0\xe0\xf1\xf8\xe8\xf0\xe5\xed\xe8\xe5 MPEG-2 \xe4\xeb\xff \xed\xe8\xe7\xea\xe8\xf5 \xe1\xe8\xf2\xf0\xe5\xe9\xf2\xee\xe2,
\xe0 \xf2\xe0\xea\xe6\xe5 \xf2\xe0\xea \xed\xe0\xe7\xfb\xe2\xe0\xe5\xec\xfb\xe9 \xf4\xee\xf0\xec\xe0\xf2 MPEG 2.5. \xcf\xee\xeb\xed\xee\xf1\xf2\xfc\xfe \xf0\xe5\xe0\xeb\xe8\xe7\xee\xe2\xe0\xed\xfb \xe2\xf1\xe5 \xf2\xf0\xe8
\xf3\xf0\xee\xe2\xed\xff \xf1\xe6\xe0\xf2\xe8\xff \xe7\xe2\xf3\xea\xe0 (Layer I, Layer II \xe8 Layer III, \xe8\xe7\xe2\xe5\xf1\xf2\xed\xfb\xe9 \xea\xe0\xea MP3).

%package devel
Summary: Development files for MAD
Group: Development/C
PreReq: %name = %version-%release
License: GPL

%description devel
This package contains development files required for packaging
MAD-based software.

%description devel -l ru_RU.CP1251
\xc2 \xfd\xf2\xee\xec \xef\xe0\xea\xe5\xf2\xe5 \xed\xe0\xf5\xee\xe4\xff\xf2\xf1\xff \xf4\xe0\xe9\xeb\xfb, \xed\xe5\xee\xe1\xf5\xee\xe4\xe8\xec\xfb\xe5 \xe4\xeb\xff \xe8\xf1\xef\xee\xeb\xfc\xe7\xee\xe2\xe0\xed\xe8\xff MAD
\xe2 \xf0\xe0\xe7\xf0\xe0\xe1\xee\xf2\xea\xe5 \xef\xf0\xe8\xeb\xee\xe6\xe5\xed\xe8\xe9.

%package devel-static
Summary: Static libraries for MAD
Group: Development/C
PreReq: %name-devel = %version-%release
License: GPL

%description devel-static
This package contains development libraries required for packaging
statically linked MAD-based software.

%description devel-static -l ru_RU.CP1251
\xc2 \xfd\xf2\xee\xec \xef\xe0\xea\xe5\xf2\xe5 \xed\xe0\xf5\xee\xe4\xff\xf2\xf1\xff \xf1\xf2\xe0\xf2\xe8\xf7\xe5\xf1\xea\xe8\xe5 \xe1\xe8\xe1\xeb\xe8\xee\xf2\xe5\xea\xe8, \xed\xe5\xee\xe1\xf5\xee\xe4\xe8\xec\xfb\xe5 \xe4\xeb\xff
\xe8\xf1\xef\xee\xeb\xfc\xe7\xee\xe2\xe0\xed\xe8\xff MAD \xe2 \xf0\xe0\xe7\xf0\xe0\xe1\xee\xf2\xea\xe5 \xf1\xf2\xe0\xf2\xe8\xf7\xe5\xf1\xea\xe8\xf5 \xef\xf0\xe8\xeb\xee\xe6\xe5\xed\xe8\xe9.

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p2

%build
%{?!_enable_static:export lt_cv_prog_cc_static_works=no}

touch AUTHORS NEWS ChangeLog
%__autoreconf

%configure \
	%{subst_enable static} \
	--enable-accuracy

# SMP-incompatiple build 
%make

%install
%makeinstall

%post -n %name -p %post_ldconfig
%postun -n %name -p %postun_ldconfig

%files
%doc CHANGES README INSTALL CREDITS COPYRIGHT TODO VERSION
%_libdir/%name.so.*

%files devel
%_libdir/%name.so
%_pkgconfigdir/*
%_includedir/mad.h

%if_enabled static
%files devel-static
%_libdir/%name.a
%endif

%changelog
* Mon Oct 27 2008 Pavlov Konstantin <thresh@altlinux.ru> 0.15.1b-alt4
- Fix build with gcc 4.3.

* Sat Jan 27 2007 Pavlov Konstantin <thresh@altlinux.ru> 0.15.1b-alt3
- Removed libtool/automake version kludges.
- Minor spec cleanup.

* Thu Mar 04 2004 Andrey Astafiev <andrei@altlinux.ru> 0.15.1b-alt2
- 0.15.1b
- Speedup patch updated.

* Fri Nov 21 2003 Andrey Astafiev <andrei@altlinux.ru> 0.15.0b-alt5
- Repaired changelog.

* Fri Nov 14 2003 Andrey Astafiev <andrei@altlinux.ru> 0.15.0b-alt4
- Fixed build for SMP systems.

* Mon Nov 03 2003 Andrey Astafiev <andrei@altlinux.ru> 0.15.0b-alt3
- Added patch for pkgconfig.

* Fri Jun 13 2003 Andrey Astafiev <andrei@altlinux.ru> 0.15.0b-alt2
- Added speedup patch.

* Fri Jun 06 2003 Andrey Astafiev <andrei@altlinux.ru> 0.15.0b-alt1
- libmad is now in separate tarball.

* Sat Mar 15 2003 Andrey Astafiev <andrei@altlinux.ru> 0.14.2b-alt4
- Library libid3tag moved to separate binary package.

* Sun Oct 13 2002 Yuri N. Sedunov <aris@altlinux.ru> 0.14.2b-alt3
- rebuild with gcc-3.2
- Packager tag added.

* Tue Feb 12 2002 Andrey Astafiev <andrei@altlinux.ru> 0.14.2b-alt2
- Packager field fixed.

* Fri Nov 09 2001 Andrey Astafiev <andrei@altlinux.ru> 0.14.2b-alt1
- 0.14.2b

* Tue Oct 23 2001 Andrey Astafiev <andrei@altlinux.ru> 0.14.1b-alt1
- 0.14.1b

* Fri Oct 19 2001 Andrey Astafiev <andrei@altlinux.ru> 0.14.0b-alt1
- 0.14.0b

* Mon Sep 03 2001 Dmitry V. Levin <ldv@altlinux.ru> 0.13.0b-alt2
- Blind minor specfile cleanup.

* Mon Sep 3 2001 Andrey Astafiev <andrei@altlinux.ru> 0.13.0b-alt1
- First version of RPM package.