File limal-ca-mgm.spec of Package limal-ca-mgm
#
# spec file for package limal-ca-mgm (Version 1.5.4)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: limal-ca-mgm
Version: 1.5.4
Release: 1
License: GPL v2 or later
Group: Development/Libraries/C and C++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: limal-ca-mgm-1.5.4.tar.bz2
Prefix: /usr
%define swiglibdir /usr/share/limal/typemaps
BuildRequires: curl gcc-c++ limal-devel limal-devtools limal-perl perl-gettext sgml-skel
%if 0%{?suse_version} >= 1030
BuildRequires: libopenssl-devel openssl
Requires: openssl
%else
BuildRequires: openssl-devel
%endif
%if 0%{?fedora_version}
BuildRequires: openssl-perl
Requires: openssl-perl
%endif
%if 0%{?fedora_version} >= 7
BuildRequires: perl-ExtUtils-Embed
%endif
Summary: LiMaL--CA Management Library
%description
The LiMaL CA Management Library provides methods for managing a
certificate authority.
Authors:
--------
Michael Calmer <mc@suse.de>
%package devel
License: GPL v2 or later
Requires: limal-ca-mgm = %version
Requires: limal-devel
Group: Development/Libraries/C and C++
Requires: openssl-devel
Summary: LiMaL - CA Management Library Development Files
%if 0%{?suse_version} >= 1030
Requires: libopenssl-devel
%endif
%description devel
The LiMaL CA Management Library provides methods for managing a
Certificate Authority. This package includes the header files and
development documentation.
Authors:
--------
Michael Calmer <mc@suse.de>
%package perl
License: GPL v2 or later
Requires: limal-perl
%if 0%{?fedora_version} >= 7
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%else
Requires: perl = %{perl_version}
%endif
Group: Development/Libraries/Perl
Summary: LiMaL - CA Management Library Perl Bindings
%description perl
The LiMaL CA Management Library provides methods for managing a
Certificate Authority.
This package provides the perl bindings to the CA Management Library.
Authors:
--------
Michael Calmer <mc@suse.de>
%prep
%setup -n limal-ca-mgm-1.5.4
%build
%{prefix}/bin/limaltool limalautoconf
%{prefix}/bin/limaltool limalautomake
autoreconf --force --install --verbose
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
%{?suse_update_config:%{suse_update_config -f}}
# workaround for fedora gettext check on x86_64
sed -i -e 's/return (int) gettext/return (long) gettext/g' ./configure
./configure --libdir=%{_libdir} --prefix=%{prefix} --mandir=%{_mandir} \
--sysconfdir=/etc --localstatedir=/var
make %{?jobs:-j%jobs}
%install
make install DESTDIR="$RPM_BUILD_ROOT"
[ -e "%{prefix}/share/limal/devtools/NO_MAKE_CHECK" ] || \
LIMALDATADIR="$RPM_BUILD_ROOT/usr/share/limal" \
# required for perl test cases
export LD_LIBRARY_PATH="$RPM_BUILD_ROOT/usr/lib/limal"
make check DESTDIR="$RPM_BUILD_ROOT"
mkdir -p $RPM_BUILD_ROOT/var/lib/
install -d -m 0700 $RPM_BUILD_ROOT/var/lib/CAM
install -d -m 0755 $RPM_BUILD_ROOT/var/lib/CAM/.cas/
install -m 0644 %{_builddir}/%{name}-%{version}/src/openssl.cnf.tmpl $RPM_BUILD_ROOT/var/lib/CAM/
%find_lang %name
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%clean
rm -rf "$RPM_BUILD_ROOT"
%files -f %name.lang
%defattr(-,root,root)
%dir %{_libdir}/limal
%attr(0700,root,root) %dir /var/lib/CAM
%attr(0755,root,root) %dir /var/lib/CAM/.cas
%config /var/lib/CAM/openssl.cnf.tmpl
%{_libdir}/limal/lib*.so.*
%files devel
%defattr(-,root,root)
%dir %{_libdir}/limal
%{_libdir}/limal/lib*.so
%{_libdir}/limal/lib*.la
%dir %{_includedir}/limal/ca-mgm
%{_includedir}/limal/ca-mgm/*
%{_libdir}/pkgconfig/limal-ca-mgm.pc
%doc %{_prefix}/share/doc/packages/limal-ca-mgm
%files perl
%defattr(-,root,root)
%dir %{perl_vendorarch}/LIMAL
%dir %{perl_vendorarch}/auto/LIMAL
%dir %{perl_vendorarch}/auto/LIMAL/CaMgm/
%{perl_vendorarch}/auto/LIMAL/CaMgm/*
%{perl_vendorarch}/LIMAL/*.pm
%changelog
* Fri Nov 28 2008 mc@suse.de
- version 1.5.4
- update translations
* Wed Nov 19 2008 mc@suse.de
- version 1.5.3
- fix location of .rnd files
- update translations
* Thu Nov 06 2008 mc@suse.de
- version 1.5.2
- fix parsing of long serial numbers (bnc#439520)
* Wed Nov 05 2008 mc@suse.de
- update translations
* Wed Sep 03 2008 mc@suse.de
- version 1.5.1
- update 18n files
* Tue Jul 01 2008 mc@suse.de
- version 1.5.0
- support IPv6 addresses in LiteralValue IP
* Fri Jun 06 2008 mc@suse.de
- version 1.4.10
- update 18n files
* Fri May 09 2008 mc@suse.de
- version 1.4.9
- update 18n files
* Mon Apr 14 2008 mc@suse.de
- version 1.4.8
- update 18n files
* Thu Apr 03 2008 mc@suse.de
- version 1.4.7
- use $limaldatadir/typemaps for own swig typemaps (bnc#373586)
- update translation files
* Mon Mar 17 2008 mt@suse.de
- version 1.4.6
- testsuite fix by mmarek to avoid failure with actual swing 1.3.34
* Wed Feb 13 2008 mc@suse.de
- version 1.4.5
- fix for testsuite
- gcc fixes
- use %%lang
- update translations
* Mon Jan 14 2008 coolo@suse.de
- apply limal work around for perl warnings causing testsuite to fail
* Wed Dec 19 2007 mc@suse.de
- version 1.4.4
- fix testcase - renew expired CA
* Fri Nov 09 2007 mc@suse.de
- version 1.4.3
- build with new libblocxx-devel
- change SONAME because of new blocxx6
- improve Convert Test
* Tue Nov 06 2007 mc@suse.de
- version 1.4.2
- require always a ca password in importCA [#337524]
* Mon Oct 29 2007 mc@suse.de
- version 1.4.1
- test for invalid password in convert functions and throw
the correct error [#337411]
* Fri Oct 12 2007 mc@suse.de
- improve error reporting from openssl commands
- add Exception tests
* Fri Sep 28 2007 mc@suse.de
- version 1.4.0
- implement support for Subject Alternative Name, othername types
1.3.6.1.4.1.311.20.2.3(ms-upn) and 1.3.6.1.5.2.2(KRB5PrincipalName)
* Mon Sep 10 2007 mc@suse.de
- version 1.3.2
- update translation files
* Mon Aug 20 2007 mc@suse.de
- version 1.3.1
- update translation files
* Wed Jul 18 2007 mt@suse.de
- version 1.3.0
- updated translation files
* Thu May 24 2007 mt@suse.de
- Fixed RPM %%if statements for distribution specific package
names in (build) requires.
- version 1.2.10
* Mon May 07 2007 mc@suse.de
- change requires for renamed openssl packages
* Fri Apr 27 2007 mc@suse.de
- update translation files
* Mon Jan 15 2007 mc@suse.de
- merge proofreaded texts
* Mon Nov 20 2006 mc@suse.de
- version 1.2.9
- update translations
* Mon Nov 13 2006 mc@suse.de
- version 1.2.8
- update translations
* Mon Nov 06 2006 mc@suse.de
- version 1.2.7
- update translations
* Thu Nov 02 2006 mc@suse.de
- version 1.2.6
- update translations (de, fi, ru)
* Mon Oct 23 2006 mc@suse.de
- version 1.2.5
- add new translations (ru fi)
- add some testcases
- some bugfixes
* Mon Oct 16 2006 mc@suse.de
- add first set of translated texts
(cs da hu km nb)
* Fri Sep 29 2006 mc@suse.de
- version 1.2.4
- fix wrapExecuteProcessAndGatherOutput call
* Thu Sep 28 2006 mt@suse.de
- version 1.2.3
- Adopted to build with blocxx-1.x as well as upcoming blocxx-2.x
* Tue Sep 26 2006 mc@suse.de
- merge proofreaded texts
* Tue Sep 12 2006 mc@suse.de
- version 1.2.2
- fix testcases (expired certificates)
- enhance verify testcase to detect expired certificates.
- changes for opensuse buildservice
- Makefile.cvs: add --verbose to autoreconf
* Wed Sep 06 2006 mt@suse.de
- temporary disabled testsuite run, because of expired
certificates, that aren't easy to recreate (mc will
provide real fix later)
* Fri Jul 21 2006 mc@suse.de
- Version 1.2.1
* Thu Jul 20 2006 mc@suse.de
- put some missing testcases into the package
* Tue Jul 18 2006 mc@suse.de
- improve documentation
* Wed Jul 05 2006 mc@suse.de
- using gettext translation mechanism
- removing old mechanism
- removing trans-XXxx template
* Wed Jun 28 2006 mc@suse.de
- Added new i18n utilities
- Added i18n macro to all exception messages
* Thu Apr 27 2006 mc@suse.de
- version 1.1.14
- fix incompatible parameter name [#170174]
* Mon Mar 20 2006 mc@suse.de
- version 1.1.13
- use new certificate in testsuite; the old was expired
* Thu Mar 02 2006 mc@suse.de
- version 1.1.12
- got INIParser from limal (private)
* Thu Feb 23 2006 mc@suse.de
- version 1.1.11
- fix DN policy check. Also provide a better error message.
[#152826]
* Mon Feb 13 2006 mc@suse.de
- version 1.1.10
- install all *.css and *.gif autodoc files
fix #150393
* Fri Feb 10 2006 mc@suse.de
- add perl-TypeTest.single
* Wed Feb 08 2006 mc@suse.de
- version 1.1.9
- remove some template definitions
provided via %%import in LIMAL now
(part of fix for [#149073])
- add a perl testcase
* Fri Jan 27 2006 mc@suse.de
- version 1.1.8
- add BuildRequires to spec-file
- install swig wrapper lib with 755 permissions
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 23 2006 mc@suse.de
- version 1.1.7
- improve binary compatibility for the future
* Fri Jan 20 2006 mc@suse.de
- remove unused member
- implement getSignatureAlgorithmAsString() in CRLData
* Tue Jan 17 2006 mc@suse.de
- version 1.1.6
- check for libssl and link limal directly against it
* Mon Jan 16 2006 mc@suse.de
- add more documentation
* Fri Jan 13 2006 mc@suse.de
- version 1.1.5
- rename RequestData set/getSubject to set/getSubjectDN
to be compatible with CertificateData and CRLData
* Wed Jan 04 2006 mc@suse.de
- version 1.1.4
- unify methods of SubjectAlternativeNameExt and
IssuerAlternativeNameExt
- implement writing DN default values to config
* Tue Dec 20 2005 mc@suse.de
- version 1.1.3
- add convert functions to public interface
* Mon Dec 19 2005 mc@suse.de
- version 1.1.2
- fix regex for changing the dir var
- add porting openssl.cnf.tmpl from old to new format
* Mon Dec 12 2005 mc@suse.de
- version 1.1.1
- fix permissions during write private key
- fix getCATree(); show imported CAs where the root ca
is not in the repository
- fix deleteCertificate(); do not fail if request does not exists
* Wed Nov 30 2005 mc@suse.de
- initial version 1.1.0