[packagers] updated very old spec

Dominik 'Rathann' Mierzejewski dominik at greysector.net
Thu Jun 21 08:08:05 CEST 2007


On Thursday, 21 June 2007 at 07:21, Who Knows wrote:
> I don't know why this was installed on my workstation but it was quite 
> outdated.
> 
> ===================================================================
> --- amrnb.spec  (revision 5529)
> +++ amrnb.spec  (working copy)
> @@ -3,13 +3,13 @@
> 
> Summary: AMR NarrowBand speech codec
> Name: amrnb
> -Version: 0.0.1
> -Release: 2
> +Version: 6.1.0.4
> +Release: 1
> License: LGPL

This is not true. The wrapper may be LGPL, but the AMR*B sources from 3GPP are NOT
LGPL. In fact, they're not redistributable without explicit permission.

FWIW, I'm attaching my two specfiles for both libraries.

Regards,
R.

-- 
Fedora contributor http://fedoraproject.org/wiki/DominikMierzejewski
Livna contributor http://rpm.livna.org MPlayer developer http://mplayerhq.hu
"Faith manages."
        -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"
-------------- next part --------------
Name:           amrnb
Version:        6.1.0.3
Release:        1
URL:            http://www.penguin.cz/~utx/amr
Group:          System Environment/Libraries
License:        Commercial
Summary:        Adaptive Multi-Rate (AMR) Speech Codec
Source0:        http://ftp.penguin.cz/pub/users/utx/amr/%{name}-%{version}.tar.bz2
Source1:        http://www.3gpp.org/ftp/Specs/latest/Rel-6/26_series/26104-610.zip
NoSource:       1
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
BuildRequires:  unzip

%description
Adaptive Multi-Rate Narrow-Band decoder and encoder library.
(3GPP TS 26.104 V 6.1.0)

http://www.3gpp.org/ftp/Specs/html-info/26104.htm

%package tools
Group:          Applications/Multimedia
Summary:        Adaptive Multi-Rate (AMR) Speech Codec tools

%description tools
Adaptive Multi-Rate Narrow-Band decoder and encoder library.
(3GPP TS 26.104 V 6.1.0)

http://www.3gpp.org/ftp/Specs/html-info/26104.htm

%package devel
Group:          System/Libraries
Summary:        Adaptive Multi-Rate (AMR) Speech Codec development files
Requires:       %{name} = %{version} glibc-devel

%description devel
Adaptive Multi-Rate Narrow-Band decoder and encoder library.
(3GPP TS 26.104 V 6.1.0)

http://www.3gpp.org/ftp/Specs/html-info/26104.htm

%prep
%setup -q
%{__cp} -p %{SOURCE1} .

%build
%configure --disable-static
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__make} DESTDIR=$RPM_BUILD_ROOT install
%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr (-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO readme.txt
%{_libdir}/*.so.*

%files tools
%defattr (-, root, root)
%{_bindir}/*

%files devel
%defattr (-, root, root)
%{_includedir}/amrnb
%{_libdir}/*.so

%changelog
* Sun May 13 2007 Dominik Mierzejewski <rpm at greysector.net> 6.1.0.3-1
- adapted bundled specfile
- fixed rpaths
-------------- next part --------------
Name:           amrwb
Version:        7.0.0.0
Release:        1
URL:            http://www.penguin.cz/~utx/amr
Group:          System Environment/Libraries
License:        Commercial
Summary:        Adaptive Multi-Rate - Wideband (AMR-WB) Speech Codec
Source0:        http://ftp.penguin.cz/pub/users/utx/amr/%{name}-%{version}.tar.bz2
Source1:        http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-700.zip
NoSource:       1
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)

%description
Adaptive Multi-Rate Wideband decoder and encoder library.
(3GPP TS 26.204 V7.0.0)

http://www.3gpp.org/ftp/Specs/html-info/26204.htm

%package tools
Group:          Applications/Multimedia
Summary:        Adaptive Multi-Rate - Wideband (AMR-WB) Speech Codec tools

%description tools
Adaptive Multi-Rate Wideband decoder and encoder library.
(3GPP TS 26.204 V7.0.0)

http://www.3gpp.org/ftp/Specs/html-info/26204.htm

%package devel
Group:          System/Libraries
Summary:        Adaptive Multi-Rate - Wideband (AMR-WB) Speech Codec
Requires:       %{name} = %{version} glibc-devel

%description devel
Adaptive Multi-Rate Wideband decoder and encoder library.
(3GPP TS 26.204 V7.0.0)

http://www.3gpp.org/ftp/Specs/html-info/26204.htm

%prep
%setup -q
%{__cp} -p %{SOURCE1} .

%build
%configure --disable-static
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__make} DESTDIR=$RPM_BUILD_ROOT install
%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr (-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO readme.txt
%{_libdir}/*.so.*

%files tools
%defattr (-, root, root)
%{_bindir}/*

%files devel
%defattr (-, root, root)
%{_includedir}/amrwb
%{_libdir}/*.so

%changelog
* Sun May 13 2007 Dominik Mierzejewski <rpm at greysector.net> 7.0.0.0-1
- adapted bundled specfile
- fixed rpaths


More information about the packagers mailing list