Set default dir/file attribute for base pkg to correct invalid owner issue.
#
# spec file for package SUNWbabl
#
# includes module(s): babl
#
# 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.
#
# Owner: bewitche
%include Solaris.inc
%ifarch amd64 sparcv9
%include arch64.inc
%use babl_64 = babl.spec
%endif
%include base.inc
%use babl = babl.spec
Name: SUNWbabl
Summary: Babl is a dynamic, any to any, pixel format conversion library.
Version: %{default_pkg_version}
SUNW_BaseDir: %{_basedir}
SUNW_Copyright: SUNWbabl.copyright
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
Requires: SUNWgnome-libs
BuildRequires: SUNWgnome-libs-devel
%package devel
Summary: %{summary} - development files
SUNW_BaseDir: %{_basedir}
%include default-depend.inc
Requires: %name
Requires: SUNWgnome-libs-devel
%prep
rm -rf %name-%version
mkdir %name-%version
%ifarch amd64 sparcv9
mkdir %name-%version/%_arch64
%babl_64.prep -d %name-%version/%_arch64
%endif
mkdir %name-%version/%{base_arch}
%babl.prep -d %name-%version/%{base_arch}
cd %{_builddir}/%name-%version
%build
%ifarch amd64 sparcv9
%babl_64.build -d %name-%version/%_arch64
%endif
%babl.build -d %name-%version/%{base_arch}
%install
rm -rf $RPM_BUILD_ROOT
%ifarch amd64 sparcv9
%babl_64.install -d %name-%version/%_arch64
%endif
%babl.install -d %name-%version/%{base_arch}
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/lib*.so*
%ifarch amd64 sparcv9
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
%{_libdir}/%{_arch64}/lib*.so*
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}/babl-0.0
%{_libdir}/%{_arch64}/babl-0.0/*.so*
%endif
%dir %attr (0755, root, bin) %{_libdir}/babl-0.0
%{_libdir}/babl-0.0/*.so*
%files devel
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_includedir}
%dir %attr (0755, root, bin) %{_includedir}/babl-0.0
%dir %attr (0755, root, bin) %{_includedir}/babl-0.0/babl
%{_includedir}/babl-0.0/babl/*
%ifarch amd64 sparcv9
%dir %attr (0755, root, bin) %dir %{_libdir}/%{_arch64}
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
%{_libdir}/%{_arch64}/pkgconfig/*
%endif
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/*
%changelog
* Thu Jan 15 2009 - [email protected]
- Set default dir/file attribute for base pkg to correct invalid owner issue.
* Tue Dec 16 2008 - [email protected]
- Fix SparcV9 file section problem
* Fri Nov 18 2008 - [email protected]
- Create