SUNWtango-icon-theme.spec
author chrisk
Fri, 20 Nov 2009 15:47:42 +0000
changeset 17007 cb3f18d74df8
parent 16960 6f34f03c7d11
child 17150 a0e3a04383fb
permissions -rw-r--r--
2009-11-20 Christian Kelly <[email protected]> * SUNWtango-icon-theme.spec: Fix %files. Add %changelog.

#
# spec file for package SUNWtango-icon-theme
#
# includes module(s): tango-icon-theme
#
# Copyright 2009 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 erwannc
#
%include Solaris.inc
%include base.inc

%use tango = tango-icon-theme.spec

Name:                    SUNWtango-icon-theme
Summary:                 Tango icon theme
Version:                 %{tango.version}
SUNW_BaseDir:            %{_basedir}
SUNW_Copyright:          %{name}.copyright
BuildRoot:               %{_tmppath}/%{name}-%{version}-build

%include default-depend.inc
BuildRequires: SUNWgtk2
BuildRequires: SUNWgtk2-devel
BuildRequires: SUNWicon-naming-utils

%if %build_l10n
%package l10n
Summary:                 %{summary} - l10n files
SUNW_BaseDir:            %{_basedir}
%include default-depend.inc
Requires:                %{name}
%endif

%prep
rm -rf %name-%version
mkdir %name-%version

mkdir %name-%version/%{base_arch}
%tango.prep -d %name-%version/%{base_arch}

%build
export PKG_CONFIG=/usr/bin/pkg-config
PKG_CONFIG_DISABLE_UNINSTALLED=
unset PKG_CONFIG_DISABLE_UNINSTALLED

%tango.build -d %name-%version/%{base_arch}

%install
rm -rf $RPM_BUILD_ROOT

%tango.install -d %name-%version/%{base_arch}

%if %build_l10n
%else
# REMOVE l10n FILES
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
%endif

%{?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, root)
%{_datadir}/icons/Tango

%dir %attr (0755, root, sys) %{_datadir}
%doc -d %{base_arch} tango-icon-theme-%{tango.version}/README
%doc -d %{base_arch} tango-icon-theme-%{tango.version}/AUTHORS
%doc(bzip2) -d %{base_arch} tango-icon-theme-%{tango.version}/COPYING
%doc(bzip2) -d %{base_arch} tango-icon-theme-%{tango.version}/NEWS
%doc(bzip2) -d %{base_arch} tango-icon-theme-%{tango.version}/ChangeLog
%doc(bzip2) -d %{base_arch} tango-icon-theme-%{tango.version}/po/ChangeLog
%dir %attr (0755, root, other) %{_datadir}/doc
%dir %attr (0755, root, other) %{_datadir}/icons

%if %build_l10n
%files l10n
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%attr (-, root, other) %{_datadir}/locale
%endif

%changelog
* Fri Nov 20 2009 - [email protected]
- Fix %files, add %changelog.