10139N/A#
10139N/A# spec file for package SUNWlibgcrypt
10139N/A#
10139N/A# includes module(s): libgcrypt
10139N/A#
10139N/A# Copyright (c) 2004 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
17185N/A%define owner jefftsai
10139N/A#
10139N/A%include Solaris.inc
10374N/A
10374N/A%ifarch amd64 sparcv9
10374N/A%include arch64.inc
10374N/A%use libgcrypt64 = libgcrypt.spec
10374N/A%endif
10374N/A
10374N/A%include base.inc
10139N/A%use libgcrypt = libgcrypt.spec
10139N/A
10139N/AName: SUNWlibgcrypt
19093N/ALicense: GPL v2, LGPL v2.1
18688N/AIPS_package_name: system/library/security/libgcrypt
18688N/AMeta(info.classification): %{classification_prefix}:System/Libraries
10139N/ASummary: libgcrypt - cryptographic library
10139N/AVersion: %{libgcrypt.version}
10139N/ASUNW_BaseDir: %{_basedir}
12673N/ASUNW_Copyright:%{name}.copyright
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
20857N/ABuildRequires: SUNWlibgpg-error
10139N/ABuildRequires: SUNWlibgpg-error-devel
10139N/A
13710N/ASource1: %{name}-manpages-0.1.tar.gz
13710N/A
10139N/A%package devel
10139N/ASummary: %{summary} - development files
10139N/ASUNW_BaseDir: %{_basedir}
10139N/A%include default-depend.inc
20857N/A%include desktop-incorporation.inc
10139N/ARequires: SUNWlibgcrypt
10139N/A
10139N/A%prep
10139N/Arm -rf %name-%version
10139N/Amkdir -p %name-%version
10374N/A%ifarch amd64 sparcv9
10374N/Amkdir -p %name-%version/%_arch64
10374N/A%libgcrypt64.prep -d %name-%version/%_arch64
10374N/A%endif
10374N/A
10374N/Amkdir -p %name-%version/%base_arch
10374N/A%libgcrypt.prep -d %name-%version/%base_arch
10139N/A
13710N/A# Expand manpages tarball
13710N/Acd %{_builddir}/%name-%version
13710N/Agzcat %SOURCE1 | tar xf -
13710N/A
13710N/A
10139N/A%build
10374N/A%ifarch amd64 sparcv9
10374N/A%libgcrypt64.build -d %name-%version/%_arch64
10374N/A%endif
10374N/A
10374N/A%libgcrypt.build -d %name-%version/%base_arch
10139N/A
10139N/A%install
10374N/Arm -rf $RPM_BUILD_ROOT
10374N/A%ifarch amd64 sparcv9
10374N/A%libgcrypt64.install -d %name-%version/%_arch64
16029N/Arm -rf $RPM_BUILD_ROOT%{_bindir}/%_arch64/hmac256
10374N/A%endif
10374N/A
10374N/A%libgcrypt.install -d %name-%version/%base_arch
13357N/Arm -r $RPM_BUILD_ROOT%{_datadir}/info
13357N/Arm -r $RPM_BUILD_ROOT%{_sbindir}
16029N/Arm -rf $RPM_BUILD_ROOT%{_bindir}/hmac256
10139N/A
13710N/Acd %{_builddir}/%name-%version/sun-manpages
13710N/Amake install DESTDIR=$RPM_BUILD_ROOT
13710N/A
10139N/A%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%files
14344N/A%doc -d %{base_arch}/libgcrypt-%{libgcrypt.version} AUTHORS README
14344N/A%doc(bzip2) -d %{base_arch}/libgcrypt-%{libgcrypt.version} ChangeLog
14344N/A%doc(bzip2) -d %{base_arch}/libgcrypt-%{libgcrypt.version} COPYING COPYING.LIB
14344N/A%doc(bzip2) -d %{base_arch}/libgcrypt-%{libgcrypt.version} NEWS
14341N/A%dir %attr (0755, root, other) %{_datadir}/doc
14341N/A
10139N/A%defattr (-, root, bin)
10139N/A%dir %attr (0755, root, bin) %{_libdir}
10139N/A%{_libdir}/lib*.so*
10374N/A%ifarch amd64 sparcv9
10374N/A%{_libdir}/%{_arch64}
10374N/A%endif
10139N/A
13710N/A%dir %attr (0755, root, sys) %{_datadir}
13710N/A%dir %attr(0755, root, bin) %{_mandir}
13710N/A%dir %attr(0755, root, bin) %{_mandir}/man1
13710N/A%{_mandir}/man1/*
13710N/A%dir %attr(0755, root, bin) %{_mandir}/man3
13710N/A%{_mandir}/man3/*
13710N/A
10139N/A%files devel
10139N/A%defattr (-, root, bin)
10139N/A%dir %attr (0755, root, bin) %{_bindir}
10139N/A%{_bindir}/*
10139N/A%dir %attr (0755, root, bin) %{_includedir}
10139N/A%{_includedir}/*
10139N/A%dir %attr (0755, root, sys) %{_datadir}
10139N/A%dir %attr (0755, root, other) %{_datadir}/aclocal
10139N/A%{_datadir}/aclocal/*
10139N/A
10139N/A%changelog
16029N/A* Tue Mar 03 2009 - jeff.cai@sun.com
16029N/A- Not ship hmac256
14341N/A* Wed Sep 16 2008 - jeff.cai@sun.com
14341N/A- Add copyright.
13710N/A* Thu Jul 31 2008 - jeff.cai@sun.com
13710N/A- Add man pages for libgcrypt.
13357N/A* Fri Jun 06 2008 - damien.carbery@sun.com
13357N/A- Change 'rm -rf' to 'rm -r' so that changes to installed dirs will be noticed
13357N/A in build logs.
10374N/A* Tue Mar 27 2007 - laca@sun.com
10374N/A- enable 64-bit build
10139N/A* Thu May 04 2006 - laca@sun.com
10139N/A- merge -share pkg(s) into the base pkg(s)
10139N/A* Thu Apr 06 2006 - glynn.foster@sun.com
10139N/A- Move -config file to -devel.
10139N/A* Tue Apr 04 2006 - halton.huo@sun.com
10139N/A- Alter remove .a/.la files part into linux spec.
10139N/A* Thu Mar 30 2006 - halton.huo@sun.com
10139N/A- Remove all *.a/*.la files.
10139N/A* Fri Sep 09 2005 - <laca@sun.com>
10139N/A- remove unpackaged files
10139N/A* Wed Sep 07 2005 - damien.carbery@sun.com
10139N/A- Add Build/Requires SUNWlibgpg-error/-devel.
10139N/A* Wed Aug 31 2005 - halton.huo@sun.com
10139N/A- Change SUNW_Category for open solaris
10139N/A* Sat Oct 02 2004 - laca@sun.com
10139N/A- added %pkgbuild_postprocess
10139N/A* Fri Sep 10 2004 - shirley.woo@sun.com
10139N/A- Added Requires: SUNWlibcrypt for devel package
10139N/A* Mon Aug 30 2004 - shirley.woo@sun.com
10139N/A- Bug 5091588 : include files should be in a separate devel package
10139N/A* Sat Jun 26 2004 shirley.woo@sun.com
10139N/A- Changed install location to /usr/...
10139N/A* Thu Mar 11 2004 - <laca@sun.com>
10139N/A- initial version created
19336N/A
19653N/A