SUNWclutter-gst.spec
author davelam
Wed, 24 Feb 2010 04:10:23 +0000
branchgnome-2-28
changeset 18642 478b5460cc36
parent 16434 f21f22550fe9
child 17264 0ded730c18f1
permissions -rw-r--r--
add new proto file for b133

#
#
# spec file for package SUNWclutter-gst
#
# includes module(s): clutter-gst
#
# Copyright 2008 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define owner lin

%include Solaris.inc
%use cluttergst = clutter-gst.spec

Name:                    SUNWclutter-gst
Summary:                 clutter-gst - gstreamer integration library for clutter
Version:                 %{cluttergst.version}
URL:                     http://www.clutter-project.org/
Source:                  %{name}-manpages-0.1.tar.gz
SUNW_BaseDir:            %{_basedir}
SUNW_Copyright:		 SUNWclutter-gst.copyright

%ifnarch sparc
#packages are only for x86

BuildRoot:               %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
Requires: SUNWgnome-media
Requires: SUNWclutter
BuildRequires: SUNWgnome-media-devel

%package devel
Summary:                 %{summary} - developer files
SUNW_BaseDir:            %{_basedir}
%include default-depend.inc
Requires: %name
Requires: SUNWclutter-devel


%prep
rm -rf %name-%version
mkdir %name-%version
%cluttergst.prep -d %name-%version
cd %{_builddir}/%name-%version
gzcat %SOURCE0 | tar -xf -

%build
export CFLAGS="%optflags -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0"
export LDFLAGS="%_ldflags -lgdk_pixbuf-2.0"
%cluttergst.build -d %name-%version

%install
%cluttergst.install -d %name-%version
rm $RPM_BUILD_ROOT%{_libdir}/lib*.la
cd %{_builddir}/%name-%version/sun-manpages
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%doc -d clutter-gst-%{cluttergst.version} AUTHORS README
%doc(bzip2) -d clutter-gst-%{cluttergst.version} ChangeLog COPYING NEWS
%dir %attr (0755, root, other) %{_datadir}/doc
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/lib*.so*
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, bin) %{_mandir}
%{_mandir}/*/*

%files devel
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/*
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/gtk-doc
%dir %attr (0755, root, bin) %{_includedir}
%{_includedir}/*

%endif

%changelog
* Fri Jun 26 2009  [email protected]
- Change owner to lin
* Thu Mar 26 2009  [email protected]
- Correct copyright file in file section
* Tue Mar 24 2009 - [email protected]
- Add SUNWgnome-media to Require
* Sun Feb 22 2009 - [email protected]
- Add BuildRequires: SUNWgnome-media-devel as it requires gstreamer & gstreamer-plugins-base.
* Fri Feb 20 2009  [email protected]
- Add manpage
* Tue Jul  1 2008  [email protected] 
- Initial build.