RPM packaging: update tqca-tls

pull/3/head
François Andriot 10 years ago
parent 9391a599fe
commit 931d5e4dda

@ -1,37 +1,61 @@
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". #
%if "%{?tde_prefix}" != "/usr" # spec file for package tqca-tls (version R14.0.0)
%define _variant .opt #
%endif # Copyright (c) 2014 Trinity Desktop Environment
#
# 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:/www.trinitydesktop.org/
#
# TDE variables
%define tde_epoch 2
%define tde_version 14.0.0 %define tde_version 14.0.0
%define tde_pkg tqca-tls
%define tde_bindir %{tde_prefix}/bin %define tde_prefix /opt/trinity
%define tde_includedir %{tde_prefix}/include %define tde_includedir %{tde_prefix}/include
%define tde_libdir %{tde_prefix}/%{_lib} %define tde_libdir %{tde_prefix}/%{_lib}
%define tde_datadir %{tde_prefix}/share
%define tde_tdeincludedir %{tde_includedir}/tde %if 0%{?mdkversion} || 0%{?mgaversion} || 0%{?pclinuxos}
%define libtqt3 %{_lib}tqt3
%else
%define libtqt3 libtqt3
%endif
%define _docdir %{tde_datadir}/doc
Name: trinity-tqca-tls Name: trinity-%{tde_pkg}
Epoch: %{tde_epoch}
Version: 1.0 Version: 1.0
Release: %{?!preversion:4}%{?preversion:3_%{preversion}}%{?dist}%{?_variant} Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant}
Summary: TLS plugin for the TQt Cryptographic Architecture Summary: TLS plugin for the TQt Cryptographic Architecture
License: LGPLv2+
Group: Applications/Internet Group: Applications/Internet
URL: http://delta.affinix.com/qca/ URL: http://delta.affinix.com/qca/
Vendor: Trinity Project
Packager: Francois Andriot <francois.andriot@free.fr>
%if 0%{?suse_version}
License: GPL-2.0+
%else
License: GPLv2+
%endif
#Vendor: Trinity Desktop
#Packager: Francois Andriot <francois.andriot@free.fr>
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
BuildRequires: libtqt4-devel >= 2:4.2.0 BuildRequires: libtqt4-devel >= %{tde_epoch}:4.2.0
BuildRequires: trinity-tqca-devel >= 1.0 BuildRequires: libtqca-devel >= %{tde_epoch}:1.0
BuildRequires: gcc-c++
BuildRequires: openssl-devel >= 0.9.8 BuildRequires: openssl-devel >= 0.9.8
@ -43,6 +67,23 @@ contains the TLS plugin.
########## ##########
%package -n %{libtqt3}-mt-tqca-tls
Summary: TLS plugin for the TQt Cryptographic Architecture
Group: Applications/Internet
%description -n %{libtqt3}-mt-tqca-tls
This is a plugin to provide SSL/TLS capability to programs that use the TQt
Cryptographic Architecture (TQCA). TQCA is a library providing an easy API
for several cryptographic algorithms to TQt programs. This package only
contains the TLS plugin.
%files -n %{libtqt3}-mt-tqca-tls
%defattr(0644,root,root,0755)
%doc README COPYING
%{_libdir}/tqt3/plugins/crypto/libtqca-tls.so
##########
%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0 %if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
%debug_package %debug_package
%endif %endif
@ -54,12 +95,10 @@ contains the TLS plugin.
%build %build
unset QTDIR unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}"
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
./configure \ ./configure \
--qtdir=/usr --qtdir=%{_prefix}
%__make %{?_smp_mflags} %__make %{?_smp_mflags}
@ -73,12 +112,6 @@ export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
%__rm -rf %{?buildroot} %__rm -rf %{?buildroot}
%files
%defattr(0644,root,root,0755)
%doc README COPYING
%{_libdir}/tqt3/plugins/crypto/libtqca-tls.so
%changelog %changelog
* Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 1.0-3 * Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 2:1.0-1
- Initial release for TDE 14.0.0 - Initial release for TDE 14.0.0

@ -1,38 +1,61 @@
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". #
%if "%{?tde_prefix}" != "/usr" # spec file for package tqca-tls (version 3.5.13-SRU)
%define _variant .opt #
%endif # Copyright (c) 2014 Trinity Desktop Environment
#
# 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:/www.trinitydesktop.org/
#
# TDE variables
%define tde_epoch 1
%define tde_version 3.5.13.2 %define tde_version 3.5.13.2
%define tde_pkg tqca-tls
%define tde_bindir %{tde_prefix}/bin %define tde_prefix /opt/trinity
%define tde_includedir %{tde_prefix}/include %define tde_includedir %{tde_prefix}/include
%define tde_libdir %{tde_prefix}/%{_lib} %define tde_libdir %{tde_prefix}/%{_lib}
%define tde_datadir %{tde_prefix}/share
%define tde_tdeincludedir %{tde_includedir}/tde %if 0%{?mdkversion} || 0%{?mgaversion} || 0%{?pclinuxos}
%define libtqt3 %{_lib}tqt3
%else
%define libtqt3 libtqt3
%endif
%define _docdir %{tde_datadir}/doc
Name: trinity-tqca-tls Name: trinity-%{tde_pkg}
Epoch: %{tde_epoch}
Version: 1.0 Version: 1.0
Release: %{?!preversion:3}%{?preversion:2_%{preversion}}%{?dist}%{?_variant} Release: %{?!preversion:4}%{?preversion:0_%{preversion}}%{?dist}%{?_variant}
Summary: TLS plugin for the TQt Cryptographic Architecture Summary: TLS plugin for the TQt Cryptographic Architecture
License: LGPLv2+
Group: Applications/Internet Group: Applications/Internet
URL: http://delta.affinix.com/qca/ URL: http://delta.affinix.com/qca/
Vendor: Trinity Project
Packager: Francois Andriot <francois.andriot@free.fr>
%if 0%{?suse_version}
License: GPL-2.0+
%else
License: GPLv2+
%endif
#Vendor: Trinity Desktop
#Packager: Francois Andriot <francois.andriot@free.fr>
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: tqca-tls-3.5.13.2.tar.gz Source0: tqca-tls-3.5.13.2.tar.gz
BuildRequires: qt3-devel >= 3.3.8.d BuildRequires: libtqt4-devel >= %{tde_epoch}:4.2.0
BuildRequires: trinity-tqtinterface-devel >= %{tde_version} BuildRequires: libtqca-devel >= %{tde_epoch}:1.0
BuildRequires: trinity-tqca-devel >= 1.0
BuildRequires: gcc-c++
BuildRequires: openssl-devel >= 0.9.8 BuildRequires: openssl-devel >= 0.9.8
@ -44,7 +67,32 @@ contains the TLS plugin.
########## ##########
%if 0%{?suse_version} || 0%{?pclinuxos} %package -n %{libtqt3}-mt-tqca-tls
Summary: TLS plugin for the TQt Cryptographic Architecture
Group: Applications/Internet
%description -n %{libtqt3}-mt-tqca-tls
This is a plugin to provide SSL/TLS capability to programs that use the TQt
Cryptographic Architecture (TQCA). TQCA is a library providing an easy API
for several cryptographic algorithms to TQt programs. This package only
contains the TLS plugin.
%files -n %{libtqt3}-mt-tqca-tls
%defattr(0644,root,root,0755)
%doc README COPYING
%if 0%{?mgaversion} || 0%{?mdkversion}
%{_libdir}/qt3/plugins/crypto/libqca-tls.so
%endif
%if 0%{?suse_version}
%{_usr}/lib/qt3/plugins/crypto/libqca-tls.so
%endif
%if 0%{?rhel} || 0%{?fedora}
%{_libdir}/qt-3.3/plugins/crypto/libqca-tls.so
%endif
##########
%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
%debug_package %debug_package
%endif %endif
@ -57,9 +105,6 @@ contains the TLS plugin.
%build %build
unset QTDIR QTINC QTLIB unset QTDIR QTINC QTLIB
. /etc/profile.d/qt3.sh . /etc/profile.d/qt3.sh
export PATH="%{tde_bindir}:${PATH}"
export LDFLAGS="-L%{tde_libdir} -I%{tde_includedir}"
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
./configure ./configure
%__make %{?_smp_mflags} %__make %{?_smp_mflags}
@ -74,20 +119,6 @@ export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
%__rm -rf %{?buildroot} %__rm -rf %{?buildroot}
%files
%defattr(0644,root,root,0755)
%doc README COPYING
%if 0%{?mgaversion} || 0%{?mdkversion}
%{_libdir}/qt3/plugins/crypto/libqca-tls.so
%endif
%if 0%{?suse_version}
%{_usr}/lib/qt3/plugins/crypto/libqca-tls.so
%endif
%if 0%{?rhel} || 0%{?fedora}
%{_libdir}/qt-3.3/plugins/crypto/libqca-tls.so
%endif
%changelog %changelog
* Fri Aug 16 2013 Francois Andriot <francois.andriot@free.fr> - 1.0-3 * Fri Aug 16 2013 Francois Andriot <francois.andriot@free.fr> - 1.0-3
- Build for Fedora 19 - Build for Fedora 19

@ -35,7 +35,7 @@ Epoch: %{tde_epoch}
Version: 1.0 Version: 1.0
Release: %{?!preversion:4}%{?preversion:3_%{preversion}}%{?dist}%{?_variant} Release: %{?!preversion:4}%{?preversion:3_%{preversion}}%{?dist}%{?_variant}
Summary: TQt Cryptographic Architecture Summary: TQt Cryptographic Architecture
Group: System Environment/Libraries Group: Development/Libraries/C and C++
URL: http://www.trinitydesktop.org/ URL: http://www.trinitydesktop.org/
%if 0%{?suse_version} %if 0%{?suse_version}
@ -51,9 +51,10 @@ Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: tqca-3.5.13.2.tar.gz Source0: tqca-3.5.13.2.tar.gz
Source1: %{name}-rpmlintrc
BuildRequires: libtqt4-devel >= %{tde_epoch}:4.2.0 BuildRequires: libtqt4-devel >= %{tde_epoch}:4.2.0
BuildRequires: gcc-c++
%description %description
Taking a hint from the similarly-named Java Cryptography Architecture, Taking a hint from the similarly-named Java Cryptography Architecture,
@ -69,7 +70,7 @@ application!
%package -n %{libtqca}1 %package -n %{libtqca}1
Summary: TQt Cryptographic Architecture Summary: TQt Cryptographic Architecture
Group: System Environment/Libraries Group: Development/Libraries/C and C++
Obsoletes: trinity-libtqca < %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: trinity-libtqca < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: trinity-libtqca = %{?epoch:%{epoch}:}%{version}-%{release} Provides: trinity-libtqca = %{?epoch:%{epoch}:}%{version}-%{release}
@ -103,7 +104,7 @@ application!
%package -n %{libtqca}-devel %package -n %{libtqca}-devel
Summary: TQt Cryptographic Architecture development files Summary: TQt Cryptographic Architecture development files
Group: Development/Libraries Group: Development/Libraries/C and C++
Requires: %{libtqca}1 = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{libtqca}1 = %{?epoch:%{epoch}:}%{version}-%{release}
Obsoletes: trinity-libtqca-devel < %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: trinity-libtqca-devel < %{?epoch:%{epoch}:}%{version}-%{release}
@ -142,8 +143,6 @@ perl -pi -e 's,target\.path=\$PREFIX/lib,target.path=\$PREFIX/%{_lib},g' qcextra
%build %build
unset QTDIR QTINC QTLIB unset QTDIR QTINC QTLIB
. /etc/profile.d/qt3.sh . /etc/profile.d/qt3.sh
export PATH="%{tde_bindir}:${PATH}"
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
./configure \ ./configure \
--prefix=%{_prefix} \ --prefix=%{_prefix} \

Loading…
Cancel
Save