[meego-commits] 14663: New package devel:enterprise/pkcs11-helper

Yan Li no_reply at build.meego.com
Thu Mar 10 08:37:53 UTC 2011


Hi,
Adding new package pkcs11-helper in project devel:enterprise. Please review and accept ASAP.

Justification for this new package:

Upgrading connman and related UI components to 0.69.2

Thank You,
Yan Li

[This message was auto-generated]

---

Request #14663:

  submit:   devel:enterprise:Testing/pkcs11-helper(r1) -> devel:enterprise/pkcs11-helper


Message:
    Upgrading connman and related UI components to 0.69.2

State:   new          2011-03-10T00:37:46 yanli
Comment: None


This is a NEW package in devel:enterprise project.
The files in the new package:
pkcs11-helper/
  |__  pkcs11-helper-1.07.tar.bz2
  |__  pkcs11-helper.changes
  |__  pkcs11-helper.spec
  |__  pkcs11-helper.yaml

The content of the YAML file, pkcs11-helper.yaml:
===================================================================
Name: pkcs11-helper
Summary: A library for using PKCS#11 providers
Version: 1.07
Release: 1
Group: System/Libraries
License: GPLv2 or BSD
URL: http://www.opensc-project.org/pkcs11-helper/
Sources:
    - http://www.opensc-project.org/files/%{name}/%{name}-%{version}.tar.bz2
Description: |
    pkcs11-helper is a library that simplifies the interaction with PKCS#11
    providers for end-user applications using a simple API and optional OpenSSL
    engine. The library allows using multiple PKCS#11 providers at the same time,
    enumerating available token certificates, or selecting a certificate directly
    by serialized id, handling card removal and card insert events, handling card
    re-insert to a different slot, supporting session expiration and much more all
    using a simple API.

PkgBR:
    - doxygen
    - graphviz
    - openssl-devel
Configure: configure
ConfigOptions:
    - --enable-doc
Builder: make
SubPackages:
    - Name: devel
      Summary: Development files for pkcs11-helper
      Group: Development/Libraries
      Description: |
          This package contains header files and documentation necessary for developing
          programs using the pkcs11-helper library.
      Requires:
          - openssl-devel
          - automake


===================================================================


The content of the spec file, pkcs11-helper.spec:
===================================================================
# 
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.21
# 
# >> macros
# << macros

Name:       pkcs11-helper
Summary:    A library for using PKCS#11 providers
Version:    1.07
Release:    1
Group:      System/Libraries
License:    GPLv2 or BSD
URL:        http://www.opensc-project.org/pkcs11-helper/
Source0:    http://www.opensc-project.org/files/%{name}/%{name}-%{version}.tar.bz2
Source100:  pkcs11-helper.yaml
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires:  doxygen
BuildRequires:  graphviz
BuildRequires:  openssl-devel


%description
pkcs11-helper is a library that simplifies the interaction with PKCS#11
providers for end-user applications using a simple API and optional OpenSSL
engine. The library allows using multiple PKCS#11 providers at the same time,
enumerating available token certificates, or selecting a certificate directly
by serialized id, handling card removal and card insert events, handling card
re-insert to a different slot, supporting session expiration and much more all
using a simple API.



%package devel
Summary:    Development files for pkcs11-helper
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}
Requires:   openssl-devel
Requires:   automake

%description devel
This package contains header files and documentation necessary for developing
programs using the pkcs11-helper library.



%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre

%configure --disable-static \
    --enable-doc

make %{?jobs:-j%jobs}

# >> build post
# << build post
%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%make_install

# >> install post

# Use %%doc to install documentation in a standard location
mkdir apidocdir
mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/api/ apidocdir/
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/

# Remove libtool .la files
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la


# << install post



%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig





%files
%defattr(-,root,root,-)
# >> files
%doc AUTHORS ChangeLog COPYING* README THANKS
%{_libdir}/libpkcs11-helper.so.*
# << files


%files devel
%defattr(-,root,root,-)
# >> files devel
%doc apidocdir/*
%{_includedir}/pkcs11-helper-1.0/
%{_libdir}/libpkcs11-helper.so
%{_libdir}/pkgconfig/libpkcs11-helper-1.pc
%{_datadir}/aclocal/pkcs11-helper-1.m4
%{_mandir}/man8/pkcs11-helper-1.8*
# << files devel


===================================================================




More information about the MeeGo-commits mailing list