SUNWlibtheora.spec
author krish_p
Mon, 16 Nov 2009 05:30:39 +0000
branchopensolaris-2009-06
changeset 14347 513efb5e2b38
parent 14083 f03a46b0b1e7
permissions -rw-r--r--
6883034 OpenSolaris 0906 Nautilus 2.24.2 Drag and Drop issue copy/move

#
# spec file for package SUNWlibtheora
#
# includes module(s): libtheora 
#
# Copyright (c) 2008 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: jerrytan
#
%include Solaris.inc
%use theora = libtheora.spec

Name:                    SUNWlibtheora
Summary:                 Theora video compression codec
Version:                 %{theora.version}
SUNW_BaseDir:            %{_basedir}
SUNW_Copyright:          %{name}.copyright
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
Autoreqprov: on
                                                                                
%include default-depend.inc
BuildRequires: SUNWgnome-common-devel
BuildRequires: SUNWogg-vorbis-devel
Requires: SUNWogg-vorbis

%package devel
Summary:      %{summary} - development files
SUNW_BaseDir: %{_basedir}
%include default-depend.inc

%prep
rm -rf %name-%version
mkdir %name-%version
%theora.prep -d %name-%version

%build
export ACLOCAL_FLAGS="-I /usr/share/aclocal"
export LDFLAGS="%_ldflags"
export CFLAGS="%optflags"
%theora.build -d %name-%version

%install
%theora.install -d %name-%version

%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/*.so*
%dir %attr (0755, root, sys) %{_datadir}
%doc -d libtheora-%{theora.tarball_version} AUTHORS README
%doc(bzip2) -d libtheora-%{theora.tarball_version} COPYING CHANGES
%dir %attr (0755, root, other) %{_datadir}/doc
 
%files devel
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/*
%dir %attr (0755, root, bin) %{_includedir}
%{_includedir}/*
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/doc
%dir %attr (0755, root, other) %{_datadir}/doc/libtheora-1.0
%{_datadir}/doc/libtheora-1.0/*

%changelog
* Fri Sep 12 2008 - [email protected]
- Add new copyright files.
* Wed Apr 02 2008 - [email protected]
- Add SUNW_Copyright.
* Sun Jun 11 2006 - [email protected]
- change group from other to bin/sys
* Tue Sep 13 2005 - [email protected]
- Now use theora version number.
* Tue Jul 26 2005 - [email protected]
- Add ogg and vorbis dependency
* Tue Jul 26 2005 - [email protected]
- Initial spec-file created