SUNWlibgpg-error.spec
author laca
Tue, 05 Aug 2008 04:33:16 +0000
branchgnome-2-22
changeset 12486 7fa2b2b0dddb
parent 11949 c10066be9ebe
child 12919 cef88973ecbc
permissions -rw-r--r--
2008-08-05 Laszlo (Laca) Peter <[email protected]> * indiana/SUNWgetting-started-guide.spec: bump to 0.7.0; delete patches * patches/getting-started-guide-01-refresh-0.diff: delete * patches/getting-started-guide-02-po.diff: delete * indiana/SUNWopensolaris-welcome.spec: bump to 0.0.6 for bts release

#
# spec file for package SUNWlibgpg-error
#
# includes module(s): libgpg-error
#
# Copyright (c) 2004 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: jefftsai
#
%include Solaris.inc
%ifarch amd64 sparcv9
%include arch64.inc
%use libgpgerror64 = libgpg-error.spec
%endif

%include base.inc
%use libgpgerror = libgpg-error.spec

Name:          SUNWlibgpg-error
Summary:       Common error codes for GnuPG, libgcrypt
Version:       %{libgpgerror.version}
SUNW_BaseDir:  %{_basedir}
SUNW_Copyright:%{name}.copyright
BuildRoot:     %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
Requires: SUNWgnome-base-libs
BuildRequires: SUNWgnome-base-libs-devel

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

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

%prep
rm -rf %name-%version
mkdir -p %name-%version
%ifarch amd64 sparcv9
mkdir -p %name-%version/%_arch64
%libgpgerror64.prep -d %name-%version/%_arch64
%endif

mkdir -p %name-%version/%base_arch
%libgpgerror.prep -d %name-%version/%base_arch

%build
%ifarch amd64 sparcv9
%libgpgerror64.build -d %name-%version/%_arch64
%endif

%libgpgerror.build -d %name-%version/%base_arch

%install
rm -rf $RPM_BUILD_ROOT
%ifarch amd64 sparcv9
%libgpgerror64.install -d %name-%version/%_arch64
#remove this file because SUNWgnome-base-libs deliver same file
rm -f $RPM_BUILD_ROOT%{_libdir}/%_arch64/charset.alias
%endif

%libgpgerror.install -d %name-%version/%base_arch

#remove this file because SUNWgnome-base-libs deliver same file
rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias

%if %option_with_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, bin)
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/lib*.so*
%ifarch amd64 sparcv9
%{_libdir}/%{_arch64}/lib*.so*
%endif

%files devel
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/*
%dir %attr (0755, root, bin) %{_includedir}
%{_includedir}/*
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/aclocal
%{_datadir}/aclocal/*
%{_datadir}/common-lisp

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

%changelog
* Tue Oct  9 2007 - [email protected]
- Add Build/Requires SUNWgnome-base-libs/-devel for glib-gettextize.
* Tue Oct  2 2007 - [email protected]
- add l10n subpkg
* Tue Mar 27 2007 - [email protected]
- enable 64-bit build
* Mon Jul 19 2007 - [email protected]
- Remove l10n package and update %files after libgpg-error bumped to 1.5.
* Sat Jul 22 2006 - [email protected]
- Add l10n package.
* Thu May 11 2006 - [email protected]
- Change %defattr to (-, root, other).
* Thu May 04 2006 - [email protected]
- merge -share pkg(s) into the base pkg(s)
* Thu Apr 06 2006 - [email protected]
- Move -config file to -devel.
* Tue Apr 04 2006 - [email protected]
- Alter remove .a/.la files part into linux spec. 
* Thu Mar 30 2006 - [email protected]
- Remove all *.a/*.la files.
* Fri Sep 09 2005 - <[email protected]>
- remove unpackaged files
* Wed Aug 31 2005 - [email protected]
- initial version created