Mohan Boddu 4628b55
Name:           libdigidocpp
Dmitri Smirnov 4777810
Version:        3.13.9
bc5d949
Release:        2%{?dist}
acf5862
Summary:        Library offers creating, signing and verification of digitally signed documents
Mohan Boddu 4628b55
License:        LGPLv2+
Mohan Boddu 4628b55
URL:            https://github.com/open-eid/libdigidocpp
Dmitri Smirnov 943e0ef
Source0:        %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
Mohan Boddu 4628b55
Mohan Boddu 4628b55
4dd7b8a
%if 0%{?el7}
a2a3fc2
BuildRequires: cmake3
a2a3fc2
%else
a2a3fc2
BuildRequires: cmake
a2a3fc2
%endif
099303b
BuildRequires:  gcc-c++
acf5862
BuildRequires:  pkgconfig(openssl)
Mohan Boddu 4628b55
BuildRequires:  xml-security-c-devel
Mohan Boddu 4628b55
BuildRequires:  xsd
a573c99
%if 0%{?fedora} >= 30
23053dd
BuildRequires:  minizip-compat-devel
a573c99
%else
a573c99
BuildRequires:  pkgconfig(minizip)
a573c99
%endif
Mohan Boddu 4628b55
# Provide xxd
Mohan Boddu 4628b55
BuildRequires:  vim-common
Mohan Boddu 4628b55
Mohan Boddu 4628b55
# Dynamically loaded libraries
Mohan Boddu 4628b55
Requires:       opensc%{?_isa}
Mohan Boddu 4628b55
Mohan Boddu 4628b55
%description
acf5862
Libdigidocpp library offers creating, signing and verification of digitally
acf5862
signed documents, according to XAdES and XML-DSIG standards. Documentation
acf5862
http://open-eid.github.io/libdigidocpp
Mohan Boddu 4628b55
Mohan Boddu 4628b55
Mohan Boddu 4628b55
%package        devel
Mohan Boddu 4628b55
Summary:        Development files for %{name}
acf5862
Requires:       %{name}%{?_isa} = %{version}-%{release}
Mohan Boddu 4628b55
Mohan Boddu 4628b55
%description    devel
Mohan Boddu 4628b55
The %{name}-devel package contains libraries and header files for
Mohan Boddu 4628b55
developing applications that use %{name}.
Mohan Boddu 4628b55
Mohan Boddu 4628b55
%package        doc
Mohan Boddu 4628b55
Summary:        Documentation for %{name}
acf5862
Requires:       %{name}%{?_isa} = %{version}-%{release}
Mohan Boddu 4628b55
Mohan Boddu 4628b55
%description    doc
Mohan Boddu 4628b55
The %{name}-doc package contains documentation provided by upstream.
Mohan Boddu 4628b55
Mohan Boddu 4628b55
%prep
Mohan Boddu 4628b55
%setup -q
Mohan Boddu 4628b55
acf5862
# it contains non UTF-8 files, but they do not worth the process of
acf5862
# unpackaging and fixing the encoding
acf5862
rm -rf doc/sample_files.zip
acf5862
Mohan Boddu 4628b55
# Remove bundled minizip
Mohan Boddu 4628b55
rm -rf src/minizip
Mohan Boddu 4628b55
Mohan Boddu 4628b55
%build
60beb9c
60beb9c
%if 0%{?el7}
60beb9c
%{cmake3} . \
60beb9c
 -DCMAKE_INSTALL_SYSCONFDIR=/etc \
60beb9c
 -DSWIG_EXECUTABLE=SWIG_EXECUTABLE-NOTFOUND
60beb9c
%else
Mohan Boddu 4628b55
%{cmake} . \
Mohan Boddu 4628b55
 -DCMAKE_INSTALL_SYSCONFDIR=/etc \
Mohan Boddu 4628b55
 -DSWIG_EXECUTABLE=SWIG_EXECUTABLE-NOTFOUND
60beb9c
%endif
Mohan Boddu 4628b55
acf5862
%make_build
Mohan Boddu 4628b55
Mohan Boddu 4628b55
%install
acf5862
%make_install
Mohan Boddu 4628b55
9bd38b4
%if 0%{?fedora} <= 28 || 0%{?el7}
Mohan Boddu 4628b55
%post -p /sbin/ldconfig
Mohan Boddu 4628b55
%postun -p /sbin/ldconfig
9bd38b4
%endif
Mohan Boddu 4628b55
Mohan Boddu 4628b55
%files
acf5862
%doc AUTHORS README.md CONTRIBUTING.md RELEASE-NOTES.md
acf5862
%license COPYING LICENSE.LGPL
Mohan Boddu 4628b55
%{_libdir}/*.so.*
Mohan Boddu 4628b55
%dir %{_sysconfdir}/digidocpp
Mohan Boddu 4628b55
%config(noreplace) %{_sysconfdir}/digidocpp/digidocpp.conf
Dmitri Smirnov a6dca95
%{_sysconfdir}/digidocpp/798.p12
Mohan Boddu 4628b55
%{_sysconfdir}/digidocpp/schema/
Mohan Boddu 4628b55
%{_bindir}/digidoc-*
Mohan Boddu 4628b55
%{_mandir}/man1/digidoc-tool.1.*
Mohan Boddu 4628b55
Mohan Boddu 4628b55
%files devel
acf5862
%doc AUTHORS README.md CONTRIBUTING.md RELEASE-NOTES.md
acf5862
%license COPYING
Mohan Boddu 4628b55
%{_includedir}/digidocpp/
Mohan Boddu 4628b55
%{_libdir}/pkgconfig/lib*.pc
Mohan Boddu 4628b55
%{_libdir}/*.so
Mohan Boddu 4628b55
Mohan Boddu 4628b55
%files doc
acf5862
%doc AUTHORS README.md CONTRIBUTING.md RELEASE-NOTES.md doc/*
acf5862
%license COPYING
Mohan Boddu 4628b55
Mohan Boddu 4628b55
Mohan Boddu 4628b55
%changelog
bc5d949
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.13.9-2
bc5d949
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bc5d949
Dmitri Smirnov 4777810
* Sun Apr 07 2019 Dmitri Smirnov <dmitri@smirnov.ee> - 3.13.9-1
Dmitri Smirnov 4777810
- Upstream release 3.13.9
Dmitri Smirnov 4777810
12419aa
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.13.8-2
12419aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
12419aa
Dmitri Smirnov 83f81fb
* Mon Dec 10 2018 Dmitri Smirnov <dmitri@smirnov.ee> - 3.13.8-1
Dmitri Smirnov 83f81fb
- Update to 3.13.8
Dmitri Smirnov 83f81fb
a8c41c7
* Fri Nov 16 2018 Pete Walter <pwalter@fedoraproject.org> - 3.13.7-1
a8c41c7
- Update to 3.13.7
a8c41c7
0cbb893
* Fri Nov 16 2018 Pete Walter <pwalter@fedoraproject.org> - 3.13.6-9
0cbb893
- Rebuild for xml-security-c 2.0
0cbb893
23053dd
* Tue Aug 28 2018 Patrik Novotný <panovotn@redhat.com> - 3.13.6-8
23053dd
- change requires to minizip-compat(-devel), rhbz#1609830, rhbz#1615381
23053dd
e1f504e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.13.6-7
e1f504e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e1f504e
099303b
* Wed Jul 11 2018 Germano Massullo <germano.massullo@gmail.com> - 3.13.6-6
099303b
- moved BuildRequires:  gcc-c++ outside any macro scope
099303b
6398d00
* Wed Jul 11 2018 Germano Massullo <germano.massullo@gmail.com> - 3.13.6-5
6398d00
- moved BuildRequires: gcc and BuildRequires:  gcc-c++ inside 0%%{?fedora} > 28 macro scope
6398d00
4dd7b8a
* Wed Jul 11 2018 Germano Massullo <germano.massullo@gmail.com> - 3.13.6-4
4dd7b8a
- moved BuildRequires: gcc and BuildRequires:  gcc-c++ outside el7 macro scope
4dd7b8a
9bd38b4
* Tue Jul 10 2018 Germano Massullo <germano.massullo@gmail.com> - 3.13.6-3
9bd38b4
- /sbin/ldconfig scripts no longer needed on >F28 because glibc has %filetrigger which makes execution /sbin/ldconfig obsolete
91357f2
- Removed uneeded Requires: openssl-devel xml-security-c-devel xsd in devel package
9bd38b4
Dmitri Smirnov b691ba7
* Mon Jun 25 2018 Dmitri Smirnov <dmitri@smirnov.ee> - 3.13.6-2
Dmitri Smirnov efbc0b4
- Provide tarball consistent with the upstream
Dmitri Smirnov b691ba7
Dmitri Smirnov a6dca95
* Wed Jun 13 2018 Dmitri Smirnov <dmitri@smirnov.ee> - 3.13.6-1
Dmitri Smirnov a6dca95
- 3.13.6 release
Dmitri Smirnov a6dca95
b9bf8ee
* Tue May 01 2018 Germano Massullo <germano.massullo@gmail.com> - 3.13.5-2
b9bf8ee
- removed rm -rf src/openssl
b9bf8ee
- removed UTF-8 conversion scripts for AUTHORS and COPYING files
b9bf8ee
c8adc5b
* Mon Apr 30 2018 Germano Massullo <germano.massullo@gmail.com> - 3.13.5-1
001d322
- 3.13.5 release
001d322
a2a3fc2
* Wed Feb 28 2018 Germano Massullo <germano.massullo@gmail.com> - 3.13.2-4
a2a3fc2
- added macros for cmake 3 in EPEL 7
a2a3fc2
3171fe0
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.13.2-3
3171fe0
- Escape macros in %%changelog
3171fe0
ed3b8ec
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.13.2-2
ed3b8ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ed3b8ec
acf5862
* Thu Nov 30 2017 Germano Massullo <germano.massullo@gmail.com> - 3.13.2-1
acf5862
- 3.13.2 release
acf5862
- Removed opensslv1.1 patch because no longer necessary
acf5862
- Adjusted docs file names
acf5862
- Removed Requires: libdigidoc-devel and BuildRequires: libdigidoc-devel because libdigidoc uses OpenSSL 1.0 that conflicts with OpenSSL 1.1.  libdigidocpp should then use online SiVa validator for ddoc files (libdigidoc was used to handle such kind of files)
acf5862
- updated summary and description
acf5862
- replaced make %%{?_smp_mflags} with %%make_build (see package review #1519747)
3171fe0
- replaced make install DESTDIR=%%{buildroot} with %%make_install (see package review #1519747)
acf5862
- removed line %%clean and rm -rf %%{buildroot} (see package review #1519747)
3171fe0
- license file attached to %%license macro, instead of %%doc macro (see package review #1519747)
acf5862
- replaced lines Requires: %%{name} = %%{version}-%%{release} with Requires: %%{name}%%{?_isa} = %%{version}-%%{release} (see package review #1519747)
acf5862
- UTF-8 AUTHORS version of AUTHORS file (see package review #1519747)
acf5862
- Replaced BuildRequires: openssl-devel and BuildRequires: minizip-devel with BuildRequires: pkgconfig(openssl) and BuildRequires: pkgconfig(minizip) (see package review #1519747)
acf5862
Mohan Boddu 4628b55
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.12.3-2
Mohan Boddu 4628b55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Fri Feb 24 2017 Mihkel Vain <mihkel@fedoraproject.org> - 3.12.3-1
Mohan Boddu 4628b55
- New upstream release
Mohan Boddu 4628b55
- Add openssl v1.1 support via libdigidocpp-opensslv1.1.patch
Mohan Boddu 4628b55
- Remove bundled openssl
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Sun Feb 19 2017 Mihkel Vain <mihkel@fedoraproject.org> - 3.12.2-3
Mohan Boddu 4628b55
- Remove bundled minizip
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.2-2
Mohan Boddu 4628b55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Sun Jul 10 2016 Mihkel Vain <mihkel@fedoraproject.org> - 3.12.2-1
Mohan Boddu 4628b55
- New upstream release
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Thu May 19 2016 Mihkel Vain <mihkel@fedoraproject.org> - 3.12.1-1
Mohan Boddu 4628b55
- New upstream release
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Tue Feb 02 2016 Mihkel Vain <mihkel@fedoraproject.org> - 3.12.0-1
Mohan Boddu 4628b55
- New upstream release
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Tue Sep 22 2015 Mihkel Vain <mihkel@fedoraproject.org> - 3.11.1.1306-1
Mohan Boddu 4628b55
- New upstream release
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Mon Jul 13 2015 Mihkel Vain <mihkel@fedoraproject.org> - 3.11.0.1296-1
Mohan Boddu 4628b55
- New upstream release
Mohan Boddu 4628b55
- Spec file cleanups
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.10.0-3
Mohan Boddu 4628b55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Sun Apr 19 2015 Mihkel Vain <mihkel@fedoraproject.org> - 3.10.0-2
Mohan Boddu 4628b55
- Rebuild for gcc5
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Sat Mar 28 2015 Mihkel Vain <mihkel@fedoraproject.org> - 3.10.0-1
Mohan Boddu 4628b55
- New upstream release
Mohan Boddu 4628b55
- Project moved to github
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.0.1237-2
Mohan Boddu 4628b55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Thu Jul  3 2014 Mihkel Vain <mihkel@fedoraproject.org> - 3.9.0.1237-1
Mohan Boddu 4628b55
- New upstream release
Mohan Boddu 4628b55
- Create a separate sub-package for docs
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.8.0.1208-4
Mohan Boddu 4628b55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Sun May 18 2014 Mihkel Vain <mihkel@fedoraproject.org> - 3.8.0.1208-3
Mohan Boddu 4628b55
- Fix typo: ppython-digidoc -> python-digidoc
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Wed Apr 30 2014 Mihkel Vain <mihkel@fedoraproject.org> - 3.8.0.1208-2
Mohan Boddu 4628b55
- Use cmake macro
Mohan Boddu 4628b55
- Obsolete old subpackages
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Thu Apr 24 2014 Mihkel Vain <mihkel@fedoraproject.org> - 3.8.0.1208-1
Mohan Boddu 4628b55
- First package based on new source code from RIA
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-20
Mohan Boddu 4628b55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.3.0-19
Mohan Boddu 4628b55
- Perl 5.18 rebuild
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Fri Mar 22 2013 Remi Collet <rcollet@redhat.com> - 0.3.0-18
Mohan Boddu 4628b55
- rebuild for http://fedoraproject.org/wiki/Features/Php55
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-17
Mohan Boddu 4628b55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-16
Mohan Boddu 4628b55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Thu Jun 07 2012 Petr Pisar <ppisar@redhat.com> - 0.3.0-15
Mohan Boddu 4628b55
- Perl 5.16 rebuild
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-14
Mohan Boddu 4628b55
- Rebuilt for c++ ABI breakage
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Thu Jan 19 2012 Remi Collet <remi@fedoraproject.org> - 0.3.0-13
Mohan Boddu 4628b55
- build against php 5.4.0
Mohan Boddu 4628b55
- add %%check for php extension
Mohan Boddu 4628b55
- %%config flag for digidoc.ini
Mohan Boddu 4628b55
acf5862
* Thu Jan 19 2012 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.3.0-12
Mohan Boddu 4628b55
- Add libdigidocpp-0.3.0-gcc47.patch (Fix mass rebuild FTBFS).
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-11
Mohan Boddu 4628b55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Fri Jul 22 2011 Petr Pisar <ppisar@redhat.com> - 0.3.0-10
Mohan Boddu 4628b55
- RPM 4.9 dependency filtering added
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Mon Jun 20 2011 Petr Sabata <contyk@redhat.com> - 0.3.0-9
Mohan Boddu 4628b55
- Perl mass rebuild
Mohan Boddu 4628b55
- Removing now obsolete Buildroot and defattr
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Fri Apr 15 2011 Kalev Lember <kalev@smartlink.ee> - 0.3.0-8
Mohan Boddu 4628b55
- Rebuilt for lib11 0.2.8 soname bump
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Wed Mar 16 2011 Antti Andreimann <Antti.Andreimann@mail.ee> 0.3.0-7
Mohan Boddu 4628b55
- Rebuilt with xml-security-c 1.6.0
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Thu Mar 10 2011 Kalev Lember <kalev@smartlink.ee> - 0.3.0-6
Mohan Boddu 4628b55
- Cleaned up php conditionals not needed in current Fedora releases
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Thu Mar 10 2011 Kalev Lember <kalev@smartlink.ee> - 0.3.0-5
Mohan Boddu 4628b55
- Rebuilt with xerces-c 3.1
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-4
Mohan Boddu 4628b55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Wed Oct 20 2010 Kalev Lember <kalev@smartlink.ee> - 0.3.0-3
Mohan Boddu 4628b55
- Updated descriptions for bindings subpackages, thanks to Sander Lepik.
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Tue Oct 12 2010 Kalev Lember <kalev@smartlink.ee> - 0.3.0-2
Mohan Boddu 4628b55
- Remove bundled minizip in prep
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Mon Oct 11 2010 Kalev Lember <kalev@smartlink.ee> - 0.3.0-1
Mohan Boddu 4628b55
- Update to 0.3.0
Mohan Boddu 4628b55
- Renamed binding subpackages to use <language>-digidoc naming scheme
Mohan Boddu 4628b55
- Filter shared object provides in private directories
Mohan Boddu 4628b55
- Added missing defattr lines
Mohan Boddu 4628b55
- Marked digidocpp.conf as noreplace
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Thu Jul 01 2010 Antti Andreimann <Antti.Andreimann@mail.ee> - 0.2.0-0.7.svn2811
Mohan Boddu 4628b55
- Added language bindings for Python, Perl and PHP
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Mon Mar 29 2010 Kalev Lember <kalev@smartlink.ee> - 0.2.0-0.6.svn2681
Mohan Boddu 4628b55
- Spec file clean up
Mohan Boddu 4628b55
- Updated summary
Mohan Boddu 4628b55
- Removed BR: pkcs11-helper-devel
Mohan Boddu 4628b55
- Removed libdigidoc++ obsoletes/provides
Mohan Boddu 4628b55
- Removed R: pkgconfig which is now automatically picked up by rpm
Mohan Boddu 4628b55
- Added AUTHORS and COPYING docs
Mohan Boddu 4628b55
- Cleaned up nightly build changelog entries
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Sat Feb 13 2010 Kalev Lember <kalev@smartlink.ee> - 0.2.0-0.4.svn2528
Mohan Boddu 4628b55
- rebuilt with new xerces-c 3.0 (F13)
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Thu Jan 21 2010 Kalev Lember <kalev@smartlink.ee> - 0.2.0-0.2.svn2454
Mohan Boddu 4628b55
- rebuilt with new libp11
Mohan Boddu 4628b55
Mohan Boddu 4628b55
* Sun Jun 14 2009 Kalev Lember <kalev@smartlink.ee> - 0.0.12-0.1.svn712
Mohan Boddu 4628b55
- Initial RPM release.