File libnut.spec of Package libnut

#
# spec file for package libnut (Version 0.0.659)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libnut
# There is already package named nut: Network UPS Tools
%define _name nut
Version:        0.0.659
Release:        2
Url:            http://wiki.multimedia.cx/index.php?title=NUT
License:        X11/MIT
Group:          System/Libraries
Summary:        NUT Multimedia Container Library
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires libnut0 = %{version}-%{release}
# svn checkout svn://svn.mplayerhq.hu/nut/src/trunk nut ; tar -jcf nut-svn$(svn info nut | sed -n 's/Revision: //p').tar.bz2 nut
Source:         %{_name}-svn%(echo %{version} | sed 's/.*\.//').tar.bz2
Patch:          libnut-libdir.patch
Patch1:         libnut-shared.patch

%description
Library for manipulation with NUT multimedia streams.

Unlike many popular containers, a NUT file can largely be viewed as a
byte stream, opposed to having a global block structure. NUT files
consist of a sequence of packets, which can contain global headers,
file metadata, stream headers for the individual media streams,
optional index data to accelerate seeking, and, of course, the actual
encoded media frames.



Authors:
--------
    Oded Shimon <ods15@ods15.dyndns.org>

%package -n libnut0
License:        X11/MIT
Group:          System/Libraries
Summary:        NUT Multimedia Container Library

%description -n libnut0
Library for manipulation with NUT multimedia streams.

Unlike many popular containers, a NUT file can largely be viewed as a
byte stream, opposed to having a global block structure. NUT files
consist of a sequence of packets, which can contain global headers,
file metadata, stream headers for the individual media streams,
optional index data to accelerate seeking, and, of course, the actual
encoded media frames.



Authors:
--------
    Oded Shimon <ods15@ods15.dyndns.org>

%package devel
License:        X11/MIT
Group:          Development/Libraries/C and C++
Summary:        NUT Multimedia Container Library
Requires:       libnut0 = %{version}

%description devel
Library for manipulation with NUT multimedia streams.

Unlike many popular containers, a NUT file can largely be viewed as a
byte stream, opposed to having a global block structure. NUT files
consist of a sequence of packets, which can contain global headers,
file metadata, stream headers for the individual media streams,
optional index data to accelerate seeking, and, of course, the actual
encoded media frames.



Authors:
--------
    Oded Shimon <ods15@ods15.dyndns.org>

%package utils
License:        X11/MIT
Group:          Productivity/Multimedia/Other
Summary:        NUT Multimedia Container Utilites

%description utils
Utilities for manipulation with NUT multimedia streams.

Unlike many popular containers, a NUT file can largely be viewed as a
byte stream, opposed to having a global block structure. NUT files
consist of a sequence of packets, which can contain global headers,
file metadata, stream headers for the individual media streams,
optional index data to accelerate seeking, and, of course, the actual
encoded media frames.



Authors:
--------
    Oded Shimon <ods15@ods15.dyndns.org>

%prep
%setup -q -n %{_name}
%patch
%patch1
echo "CFLAGS += $RPM_OPT_FLAGS" >>config.mak

%build
make %{?jobs:-j%jobs} prefix=%{_prefix} libdir=%{_libdir}

%install
%makeinstall prefix=$RPM_BUILD_ROOT%{_prefix} libdir=$RPM_BUILD_ROOT%{_libdir} install-libnut-shared
%makeinstall prefix=$RPM_BUILD_ROOT%{_prefix} libdir=$RPM_BUILD_ROOT%{_libdir} install-libnut-headers
%makeinstall prefix=$RPM_BUILD_ROOT%{_prefix} libdir=$RPM_BUILD_ROOT%{_libdir} install-nututils
rm $RPM_BUILD_ROOT%{_libdir}/*.a

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libnut0 -p /sbin/ldconfig

%postun -n libnut0 -p /sbin/ldconfig

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

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

%files -n libnut0
%defattr(-,root,root)
%doc COPYING README
%{_libdir}/*.so.*

%changelog
* Wed Oct 22 2008 mrueckert@suse.de
- fix debug_packages_requires define
* Tue Aug 19 2008 sbrabec@suse.cz
- Updated to the latest SVN snapshot 659:
  * fixed libnut muxer creating of header_count_minus1 and
  main_flags
* Fri Aug 01 2008 ro@suse.de
- fix requires for debuginfo package
* Mon Apr 28 2008 sbrabec@suse.cz
- Updated to the latest SVN snapshot 658:
  * Documentation fixes.
  * Code cleanup.
  * Debugging messages cleanup.
- Enabled shared library support.
* Tue Jan 15 2008 sbrabec@suse.cz
- Minor spec file cleanup.
- Updated to the latest SVN snapshot 514 (no change).
- Install all tools.
* Wed Jul 25 2007 sbrabec@suse.cz
- Updated to the latest SVN snapshot 505:
  * Added nutparse.
  * Minor fixes.
* Wed Mar 21 2007 sbrabec@suse.cz
- New SuSE package, SVN snapshot 282.
openSUSE Build Service is sponsored by