SUNWlibgcrypt.spec
author jerrytan
Mon, 11 Aug 2008 07:35:57 +0000
branchgnome-2-22
changeset 12497 f4743e0d8120
parent 11931 5421e285b730
child 12612 84f3f5e4d351
permissions -rw-r--r--
update spec for tracker from vermillion

#
# spec file for package SUNWlibgcrypt
#
# includes module(s): libgcrypt
#
# 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 libgcrypt64 = libgcrypt.spec
%endif

%include base.inc
%use libgcrypt = libgcrypt.spec

Name:          SUNWlibgcrypt
Summary:       libgcrypt - cryptographic library
Version:       %{libgcrypt.version}
SUNW_BaseDir:  %{_basedir}
SUNW_Copyright:%{name}.copyright
BuildRoot:     %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
Requires: SUNWlibgpg-error
BuildRequires: SUNWlibgpg-error-devel

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

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

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

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

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

%install
rm -rf $RPM_BUILD_ROOT
%ifarch amd64 sparcv9
%libgcrypt64.install -d %name-%version/%_arch64
#rm -rf $RPM_BUILD_ROOT%{_bindir}/%_arch64
%endif

%libgcrypt.install -d %name-%version/%base_arch
rm -rf $RPM_BUILD_ROOT%{_datadir}/info

%{?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}
%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/*

%changelog
* Tue Mar 27 2007 - [email protected]
- enable 64-bit build
* 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 Sep 07 2005 - [email protected]
- Add Build/Requires SUNWlibgpg-error/-devel.
* Wed Aug 31 2005 - [email protected]
- Change SUNW_Category for open solaris
* Sat Oct 02 2004 - [email protected]
- added %pkgbuild_postprocess
* Fri Sep 10 2004 - [email protected]
- Added Requires: SUNWlibcrypt for devel package
* Mon Aug 30 2004 - [email protected]
- Bug 5091588 : include files should be in a separate devel package
* Sat Jun 26 2004  [email protected]
- Changed install location to /usr/...
* Thu Mar 11 2004 - <[email protected]>
- initial version created