[libdigidocpp] Initial import (#641748)

Kalev Lember kalev at fedoraproject.org
Wed Oct 13 15:34:34 UTC 2010


commit b41a56a2833d58a8ac437777598ed546545ef754
Author: Kalev Lember <kalev at smartlink.ee>
Date:   Wed Oct 13 18:32:26 2010 +0300

    Initial import (#641748)

 .gitignore        |    1 +
 libdigidocpp.spec |  226 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 228 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f7b0941 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libdigidocpp-0.3.0.tar.bz2
diff --git a/libdigidocpp.spec b/libdigidocpp.spec
new file mode 100644
index 0000000..dff52f6
--- /dev/null
+++ b/libdigidocpp.spec
@@ -0,0 +1,226 @@
+%global build_perl_module   1
+%global build_php_module    1
+%global build_python_module 1
+
+%global php_apiver  %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
+%{!?php_extdir: %{expand: %%global php_extdir %(php-config --extension-dir)}}
+
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+Name:           libdigidocpp
+Version:        0.3.0
+Release:        2%{?dist}
+Summary:        Library for creating and validating BDoc and DDoc containers
+
+Group:          System Environment/Libraries
+License:        LGPLv2+
+URL:            http://code.google.com/p/esteid/
+Source0:        http://esteid.googlecode.com/files/%{name}-%{version}.tar.bz2
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  cmake
+BuildRequires:  libdigidoc-devel
+BuildRequires:  libp11-devel
+BuildRequires:  minizip-devel
+BuildRequires:  openssl-devel
+BuildRequires:  xml-security-c-devel
+BuildRequires:  xsd
+
+# Handle bindings
+%if 0%{?build_perl_module}%{?build_php_module}%{?build_python_module}
+BuildRequires:  swig
+%endif
+%if 0%{?build_perl_module}
+BuildRequires:  perl-devel
+%endif
+%if 0%{?build_php_module}
+BuildRequires:  php-devel
+%endif
+%if 0%{?build_python_module}
+BuildRequires:  python2-devel
+%endif
+
+# Dynamically loaded libraries
+Requires:       libdigidoc%{?_isa}
+Requires:       opensc%{?_isa}
+
+%description
+libdigidocpp is a C++ library for reading, validating, and creating BDoc and
+DDoc containers. These file formats are widespread in Estonia where they are
+used for storing legally binding digital signatures.
+
+
+%package        devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+Requires:       libdigidoc-devel
+Requires:       libp11-devel
+Requires:       openssl-devel
+Requires:       xml-security-c-devel
+Requires:       xsd
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%if 0%{?build_perl_module}
+%package -n     perl-digidoc
+Summary:        Perl bindings for %{name}
+Group:          Development/Languages
+Requires:       %{name} = %{version}-%{release}
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Obsoletes:      %{name}-perl < 0.3.0-1
+Provides:       %{name}-perl = %{version}-%{release}
+
+%{?perl_default_filter}
+
+%description -n perl-digidoc
+The %{name}-perl package provides access to
+%{name} features from Perl programs.
+%endif
+
+
+%if 0%{?build_php_module}
+%package -n     php-digidoc
+Summary:        PHP bindings for %{name}
+Group:          Development/Languages
+Requires:       %{name} = %{version}-%{release}
+%if 0%{?php_zend_api}
+Requires:       php(zend-abi) = %{php_zend_api}
+Requires:       php(api) = %{php_core_api}
+%else
+Requires:       php-api = %{php_apiver}
+%endif
+Obsoletes:      %{name}-php < 0.3.0-1
+Provides:       %{name}-php = %{version}-%{release}
+
+# Don't want provides for php shared objects
+%{?filter_provides_in: %filter_provides_in %{php_extdir}/.*\.so$}
+%{?filter_setup}
+
+%description -n php-digidoc
+The %{name}-php package provides access to
+%{name} features from PHP programs.
+%endif
+
+
+%if 0%{?build_python_module}
+%package -n     python-digidoc
+Summary:        Python bindings for %{name}
+Group:          Development/Languages
+Requires:       %{name} = %{version}-%{release}
+Obsoletes:      %{name}-python < 0.3.0-1
+Provides:       %{name}-python = %{version}-%{release}
+
+# Don't want provides for python shared objects
+%{?filter_provides_in: %filter_provides_in %{python_sitearch}/.*\.so$}
+%{?filter_setup}
+
+%description -n python-digidoc
+The %{name}-python package provides access to
+%{name} features from Python programs.
+%endif
+
+
+%prep
+%setup -q
+
+# Remove bundled copy of minizip
+rm -rf src/minizip/
+
+
+%build
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+%{cmake} ..
+popd
+
+make %{?_smp_mflags} -C %{_target_platform}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING NEWS README
+%{_libdir}/*.so.*
+%dir %{_sysconfdir}/digidocpp
+%config(noreplace) %{_sysconfdir}/digidocpp/digidocpp.conf
+%{_sysconfdir}/digidocpp/certs/
+%{_sysconfdir}/digidocpp/schema/
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/digidocpp/
+%{_libdir}/pkgconfig/lib*.pc
+%{_libdir}/*.so
+
+%if 0%{?build_perl_module}
+%files -n perl-digidoc
+%defattr(-,root,root,-)
+%{perl_vendorarch}/*
+%{perl_vendorlib}/*
+%endif
+
+%if 0%{?build_php_module}
+%files -n php-digidoc
+%defattr(-,root,root,-)
+%{php_extdir}/*
+%{_datadir}/php/*
+%{_sysconfdir}/php.d/digidoc.ini
+%endif
+
+%if 0%{?build_python_module}
+%files -n python-digidoc
+%defattr(-,root,root,-)
+%{python_sitearch}/*
+%endif
+
+
+%changelog
+* Tue Oct 12 2010 Kalev Lember <kalev at smartlink.ee> - 0.3.0-2
+- Remove bundled minizip in prep
+
+* Mon Oct 11 2010 Kalev Lember <kalev at smartlink.ee> - 0.3.0-1
+- Update to 0.3.0
+- Renamed binding subpackages to use <language>-digidoc naming scheme
+- Filter shared object provides in private directories
+- Added missing defattr lines
+- Marked digidocpp.conf as noreplace
+
+* Thu Jul 01 2010 Antti Andreimann <Antti.Andreimann at mail.ee> - 0.2.0-0.7.svn2811
+- Added language bindings for Python, Perl and PHP
+
+* Mon Mar 29 2010 Kalev Lember <kalev at smartlink.ee> - 0.2.0-0.6.svn2681
+- Spec file clean up
+- Updated summary
+- Removed BR: pkcs11-helper-devel
+- Removed libdigidoc++ obsoletes/provides
+- Removed R: pkgconfig which is now automatically picked up by rpm
+- Added AUTHORS and COPYING docs
+- Cleaned up nightly build changelog entries
+
+* Sat Feb 13 2010 Kalev Lember <kalev at smartlink.ee> - 0.2.0-0.4.svn2528
+- rebuilt with new xerces-c 3.0 (F13)
+
+* Thu Jan 21 2010 Kalev Lember <kalev at smartlink.ee> - 0.2.0-0.2.svn2454
+- rebuilt with new libp11
+
+* Sun Jun 14 2009 Kalev Lember <kalev at smartlink.ee> - 0.0.12-0.1.svn712
+- Initial RPM release.
diff --git a/sources b/sources
index e69de29..a847ec1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a567fd16d2ce6205b179850e98c26971  libdigidocpp-0.3.0.tar.bz2


More information about the scm-commits mailing list