Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37433623
en ru br
ALT Linux repos
S:0.0.675-alt1_11
5.0: 0.0-alt0.505.1
4.1: 0.0-alt0.505.1
4.0: 0.0-alt0.282.2

Group :: System/Libraries
RPM: libnut

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%define major 0
%define libname libnut%{major}
%define devname libnut-devel

Name: libnut
%define svnrev 675
Version: 0.0.%{svnrev}
Release: alt1_11
Url: http://wiki.multimedia.cx/index.php?title=NUT
License: MIT
Group: System/Libraries
Summary: NUT Multimedia Container Library
# svn checkout svn://svn.mplayerhq.hu/nut/src/trunk libnut ; tar -Jcf libnut-r$(LC_ALL=C svn info libnut | sed -n 's/Revision: //p').tar.xz libnut
Source0: %{name}-r%{svnrev}.tar.xz
Patch0: libnut-libdir.patch
Patch1: libnut-shared.patch
Patch2: libnut-r675-ldflags.patch
Source44: import.info

%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.

%package -n %{libname}
Group: System/Libraries
Summary: NUT Multimedia Container Library
Conflicts: libnut < 0.0.675
Obsoletes: libnut < 0.0.675
Provides: libnut = %version

%description -n %{libname}
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.

%package -n %{devname}
Group: Development/C
Summary: Development files for NUT Multimedia Container Library
Requires: %{libname} = %{version}-%{release}
# package was not libified a long long time ago and an obsolete was forgotten
# at the time, causing file conflicts on upgrade (Anssi 03/2012):

%description -n %{devname}
This package contains development files for the NUT Multimedia Container
Library.

%package utils
Group: Video
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.

%prep
%setup -q -n %{name}
%patch0 -p0 -b .libdir~
%patch1 -p1 -b .shared~
%patch2 -p1 -b .ldflags~

%build

%make_build prefix=%{_prefix} libdir=%{_libdir}

%install
%makeinstall

%files utils
%{_bindir}/*

%files -n %{libname}
%doc COPYING README
%{_libdir}/libnut.so.%{major}*

%files -n %{devname}
%{_includedir}/libnut.h
%{_libdir}/libnut.so
%exclude %{_libdir}/libnut.a

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin