summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2014-09-29 13:37:37 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2014-09-29 13:37:37 +0200
commitb4b507c636506960fb306de332ec30be399758dc (patch)
treeffb4ce999cd5efe03a7cfee6c48a0cba49ba97af /redhat/dependencies
parentf9a697dd364d6be35ec52794e97bca3187a06777 (diff)
parent1baab4923d9eec2ce99b1434d00c6d64a874f119 (diff)
downloadtde-packaging-b4b507c636506960fb306de332ec30be399758dc.tar.gz
tde-packaging-b4b507c636506960fb306de332ec30be399758dc.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'redhat/dependencies')
-rw-r--r--redhat/dependencies/tqca-tls/qca-tls-1.0-mach.patch10
-rw-r--r--redhat/dependencies/tqca-tls/qca-tls-1.0-ossl098.patch26
-rw-r--r--redhat/dependencies/tqca-tls/qca-tls-1.0-ossl10.patch15
-rw-r--r--redhat/dependencies/tqca-tls/tqca-tls-3.5.13.2.spec20
-rw-r--r--redhat/dependencies/tqca-tls/tqca-tls-qt3.patch105
-rw-r--r--redhat/dependencies/tqca/qca-1.0-mach.patch10
-rw-r--r--redhat/dependencies/tqca/tqca-1.0-fix_qt3_detection.patch132
-rw-r--r--redhat/dependencies/tqca/tqca-3.5.13.2.spec15
-rwxr-xr-xredhat/dependencies/tqtinterface/tqtinterface-14.0.0.spec4
9 files changed, 10 insertions, 327 deletions
diff --git a/redhat/dependencies/tqca-tls/qca-tls-1.0-mach.patch b/redhat/dependencies/tqca-tls/qca-tls-1.0-mach.patch
deleted file mode 100644
index 9bac68b83..000000000
--- a/redhat/dependencies/tqca-tls/qca-tls-1.0-mach.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- ./qca-tls.pro.mach 2004-06-10 11:55:22.411187448 +0200
-+++ ./qca-tls.pro 2004-06-10 11:55:43.460987392 +0200
-@@ -2,6 +2,7 @@
-
- TEMPLATE = lib
- CONFIG += qt thread release plugin
-+CONFIG += no_fixpath
- TARGET = qca-tls
-
- !exists(qcaprovider.h) {
diff --git a/redhat/dependencies/tqca-tls/qca-tls-1.0-ossl098.patch b/redhat/dependencies/tqca-tls/qca-tls-1.0-ossl098.patch
deleted file mode 100644
index edfb376e0..000000000
--- a/redhat/dependencies/tqca-tls/qca-tls-1.0-ossl098.patch
+++ /dev/null
@@ -1,26 +0,0 @@
---- ./qca-tls.cpp.ossl098 2003-12-10 17:53:57.000000000 +0100
-+++ ./qca-tls.cpp 2005-11-13 22:21:50.000000000 +0100
-@@ -454,7 +454,11 @@
- if(!r) {
- // try this other public function, for whatever reason
- p = (void *)in;
-+#ifdef OSSL_097
-+ r = d2i_RSA_PUBKEY(NULL, (const unsigned char **)&p, len);
-+#else
- r = d2i_RSA_PUBKEY(NULL, (unsigned char **)&p, len);
-+#endif
- }
- if(r) {
- if(pub) {
-@@ -798,7 +802,11 @@
-
- bool createFromDER(const char *in, unsigned int len)
- {
-+#ifdef OSSL_097
-+ const unsigned char *p = (const unsigned char *)in;
-+#else
- unsigned char *p = (unsigned char *)in;
-+#endif
- X509 *t = d2i_X509(NULL, &p, len);
- if(!t)
- return false;
diff --git a/redhat/dependencies/tqca-tls/qca-tls-1.0-ossl10.patch b/redhat/dependencies/tqca-tls/qca-tls-1.0-ossl10.patch
deleted file mode 100644
index 7b2406f61..000000000
--- a/redhat/dependencies/tqca-tls/qca-tls-1.0-ossl10.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-diff -up qca-tls-1.0/qca-tls.cpp.ossl10 qca-tls-1.0/qca-tls.cpp
---- qca-tls-1.0/qca-tls.cpp.ossl10 2009-08-26 10:08:36.000000000 +0200
-+++ qca-tls-1.0/qca-tls.cpp 2009-08-26 10:11:57.000000000 +0200
-@@ -953,7 +953,11 @@ public:
- RSAKeyContext *key;
-
- SSL *ssl;
-+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
-+ const SSL_METHOD *method;
-+#else
- SSL_METHOD *method;
-+#endif
- SSL_CTX *context;
- BIO *rbio, *wbio;
- CertContext cc;
diff --git a/redhat/dependencies/tqca-tls/tqca-tls-3.5.13.2.spec b/redhat/dependencies/tqca-tls/tqca-tls-3.5.13.2.spec
index c186c9c70..1bfb9bdce 100644
--- a/redhat/dependencies/tqca-tls/tqca-tls-3.5.13.2.spec
+++ b/redhat/dependencies/tqca-tls/tqca-tls-3.5.13.2.spec
@@ -28,14 +28,7 @@ Packager: Francois Andriot <francois.andriot@free.fr>
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Source0: tqca-tls-master.tar.gz
-
-# Fix build in mach for QT apps
-Patch0: qca-tls-1.0-mach.patch
-# Build with openssl 1.0.0
-Patch2: qca-tls-1.0-ossl10.patch
-# Allows building with TQT3 from TDE
-Patch10: tqca-tls-qt3.patch
+Source0: tqca-tls-3.5.13.2.tar.gz
BuildRequires: qt3-devel >= 3.3.8.d
BuildRequires: trinity-tqtinterface-devel >= %{tde_version}
@@ -58,17 +51,12 @@ contains the TLS plugin.
##########
%prep
-%setup -q -n tqca-tls-master
-%patch0 -p0 -b .mach
-%patch2 -p1 -b .ossl10
-%patch10 -p1 -b .qt
-
-# Revert TQCA to QCA
-%__sed -i * -e "s|TQCA|QCA|g"
+%setup -q -n tqca-tls-3.5.13.2
%build
-unset QTDIR || : ; . /etc/profile.d/qt3.sh
+unset QTDIR QTINC QTLIB
+. /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}"
diff --git a/redhat/dependencies/tqca-tls/tqca-tls-qt3.patch b/redhat/dependencies/tqca-tls/tqca-tls-qt3.patch
deleted file mode 100644
index 29f1f207c..000000000
--- a/redhat/dependencies/tqca-tls/tqca-tls-qt3.patch
+++ /dev/null
@@ -1,105 +0,0 @@
---- tqca-tls-master/configure.qt 2012-06-20 03:30:48.000000000 +0200
-+++ tqca-tls-master/configure 2013-05-28 20:30:52.827808679 +0200
-@@ -60,7 +60,7 @@
- if [ "$QC_DEBUG" = "Y" ]; then
- echo \$QTDIR not set... trying to find Qt manually
- fi
-- for p in /usr/lib/tqt /usr/share/tqt /usr/share/tqt3 /usr/local/lib/tqt /usr/local/share/tqt /usr/lib/tqt3 /usr/local/lib/tqt3 /usr/lib/qt /usr/share/qt /usr/share/qt3 /usr/local/lib/qt /usr/local/share/qt /usr/lib/qt3 /usr/local/lib/qt3 /usr/lib64/tqt /usr/local/lib64/tqt /usr/lib64/tqt3 /usr/local/lib64/tqt3 /usr/lib64/qt /usr/local/lib64/qt /usr/lib64/qt3 /usr/local/lib64/qt3 /usr/X11R6/share/qt /usr/qt/3 ; do
-+ for p in /usr/lib/qt /usr/share/qt /usr/share/qt3 /usr/local/lib/qt /usr/local/share/qt /usr/lib/qt3 /usr/local/lib/qt3 /usr/lib/qt /usr/share/qt /usr/share/qt3 /usr/local/lib/qt /usr/local/share/qt /usr/lib/qt3 /usr/local/lib/qt3 /usr/lib64/qt /usr/local/lib64/qt /usr/lib64/qt3 /usr/local/lib64/qt3 /usr/lib64/qt /usr/local/lib64/qt /usr/lib64/qt3 /usr/local/lib64/qt3 /usr/X11R6/share/qt /usr/qt/3 ; do
- if [ -d "$p/mkspecs" ]; then
- QTDIR=$p
- break;
-@@ -79,15 +79,15 @@
- fi
- fi
-
--if [ ! -x "$QTDIR/bin/tqmake" ]; then
-+if [ ! -x "$QTDIR/bin/qmake" ]; then
- if [ "$QC_DEBUG" = "Y" ]; then
-- echo Warning: tqmake not in \$QTDIR/bin/tqmake
-+ echo Warning: qmake not in \$QTDIR/bin/qmake
- echo trying to find it in \$PATH
- fi
-- qm=`type -p tqmake`
-+ qm=`type -p qmake`
- if [ -x "$qm" ]; then
- if [ "$QC_DEBUG" = "Y" ]; then
-- echo tqmake found in $qm
-+ echo qmake found in $qm
- fi
- else
- echo fail
-@@ -96,12 +96,12 @@
- echo or I missdetected \$QTDIR=$QTDIR
- echo
- echo Please set \$QTDIR manually and make sure that
-- echo \$QTDIR/bin/tqmake exists.
-+ echo \$QTDIR/bin/qmake exists.
- echo
- exit 1;
- fi
- else
-- qm=$QTDIR/bin/tqmake
-+ qm=$QTDIR/bin/qmake
- fi
-
- gen_files() {
-@@ -184,7 +184,9 @@
- conf->addLib("-lssl -lcrypto");
-
- // Make sure tqtinterface can be found
-- conf->addIncludePath("/usr/include/tqt");
-+ conf->addIncludePath("/usr/include/tqt");
-+ // Make sure tqt3 can be found
-+ conf->addIncludePath("${QTINC:-${QTDIR}/include}");
-
- return true;
- }
-@@ -476,7 +478,7 @@
-
- TQString str;
- str += "# qconf\n";
-- str += "QT_PATH_PLUGINS = " + TQString(tqInstallPathPlugins()) + '\n';
-+ str += "QT_PATH_PLUGINS = " + TQString(qInstallPathPlugins()) + '\n';
- if(!conf->DEFINES.isEmpty())
- str += "DEFINES += " + conf->DEFINES + '\n';
- if(!conf->INCLUDEPATH.isEmpty())
-@@ -511,7 +513,7 @@
- TEMPLATE = app
- CONFIG += qt x11 thread console
- TARGET = conf
--INCLUDEPATH += '/usr/include/tqt'
-+INCLUDEPATH += '/usr/include/tqt' '${QTINC:-${QTDIR}/include}'
-
- DEFINES += X11_INC='"\$\$QMAKE_INCDIR_X11"'
- DEFINES += X11_LIBDIR='"\$\$QMAKE_LIBDIR_X11"'
-@@ -537,16 +539,16 @@
- )
-
- if [ "$?" != "0" ]; then
-- rm -rf .qconftemp
-+# rm -rf .qconftemp
- echo fail
- echo
- echo "There was an error compiling 'conf'. Be sure you have a proper"
- echo "TQt 3.x Multithreaded (MT) build environment set up."
-- if [ ! -f "$QTDIR/lib/libtqt-mt.so.3" ]; then
-- if [ ! -f "$QTDIR/lib64/libtqt-mt.so.3" ]; then
-+ if [ ! -f "${QTLIB:-${QTDIR}/lib}/libqt-mt.so.3" ]; then
-+ if [ ! -f "${QTLIB:-${QTDIR}/lib64}/libqt-mt.so.3" ]; then
- echo
- echo "One possible reason is that you don't have"
-- echo "libtqt-mt.so.3 installed in $QTDIR/lib/"
-+ echo "libqt-mt.so.3 installed in $QTDIR/lib/"
- echo "or $QTDIR/lib64/."
- fi
- fi
-@@ -575,7 +577,7 @@
- if [ -x "./qcextra" ]; then
- ./qcextra
- fi
--# run tqmake
-+# run qmake
- if expr match "$DEB_BUILD_OPTIONS" ".*nostrip"; then
- $qm QMAKE_STRIP=true qca-tls.pro
- else
diff --git a/redhat/dependencies/tqca/qca-1.0-mach.patch b/redhat/dependencies/tqca/qca-1.0-mach.patch
deleted file mode 100644
index c20b0cb13..000000000
--- a/redhat/dependencies/tqca/qca-1.0-mach.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- ./qca.pro.mach 2004-11-22 11:15:24.061984966 +0100
-+++ ./qca.pro 2004-11-22 11:15:31.483010203 +0100
-@@ -2,6 +2,7 @@
-
- TEMPLATE = lib
- CONFIG += qt thread release
-+CONFIG += no_fixpath
- TARGET = qca
-
- MOC_DIR = .moc
diff --git a/redhat/dependencies/tqca/tqca-1.0-fix_qt3_detection.patch b/redhat/dependencies/tqca/tqca-1.0-fix_qt3_detection.patch
deleted file mode 100644
index f608bc6c8..000000000
--- a/redhat/dependencies/tqca/tqca-1.0-fix_qt3_detection.patch
+++ /dev/null
@@ -1,132 +0,0 @@
---- tqca.ORI/qca.pro 2012-04-24 17:24:02.760426575 -0400
-+++ tqca.P/qca.pro 2012-04-24 17:39:36.323825994 -0400
-@@ -21,6 +21,7 @@
- QCA_CPP = src
- INCLUDEPATH += $$QCA_CPP
- INCLUDEPATH += /usr/include/tqt
-+INCLUDEPATH += /opt/trinity/include/tqt
-
- HEADERS += \
- $$QCA_CPP/qca.h \
---- tqca-master/configure.qt 2012-06-20 03:30:19.000000000 +0200
-+++ tqca-master/configure 2013-05-28 19:44:10.821100155 +0200
-@@ -8,7 +8,7 @@
-
- Main options:
- --prefix=[path] Base path for build/install. Default: /usr/local
-- --qtdir=[path] Directory where Qt is installed.
-+ --qtdir=[path] Directory where [T]Qt is installed.
- --help This help text.
-
- EOT
-@@ -37,7 +37,7 @@
-
- PREFIX=${PREFIX:-/usr/local}
-
--echo "Configuring TQt Cryptographic Architecture (QCA) ..."
-+echo "Configuring TQt Cryptographic Architecture (TQCA) ..."
-
- if [ "$QC_DEBUG" = "Y" ]; then
- echo
-@@ -52,7 +52,7 @@
- if [ "$QC_DEBUG" = "Y" ]; then
- echo \$QTDIR not set... trying to find Qt manually
- fi
-- for p in /usr/lib/tqt /usr/share/tqt /usr/share/tqt3 /usr/local/lib/tqt /usr/local/share/tqt /usr/lib/tqt3 /usr/local/lib/tqt3 /usr/lib/qt /usr/share/qt /usr/share/qt3 /usr/local/lib/qt /usr/local/share/qt /usr/lib/qt3 /usr/local/lib/qt3 /usr/lib64/tqt /usr/local/lib64/tqt /usr/lib64/tqt3 /usr/local/lib64/tqt3 /usr/lib64/qt /usr/local/lib64/qt /usr/lib64/qt3 /usr/local/lib64/qt3 /usr/X11R6/share/qt /usr/qt/3 ; do
-+ for p in /usr/lib/qt /usr/share/qt /usr/share/qt3 /usr/local/lib/qt /usr/local/share/qt /usr/lib/qt3 /usr/local/lib/qt3 /usr/lib/qt /usr/share/qt /usr/share/qt3 /usr/local/lib/qt /usr/local/share/qt /usr/lib/qt3 /usr/local/lib/qt3 /usr/lib64/qt /usr/local/lib64/qt /usr/lib64/qt3 /usr/local/lib64/qt3 /usr/lib64/qt /usr/local/lib64/qt /usr/lib64/qt3 /usr/local/lib64/qt3 /usr/X11R6/share/qt /usr/qt/3 ; do
- if [ -d "$p/mkspecs" ]; then
- QTDIR=$p
- break;
-@@ -62,7 +62,7 @@
- echo fail
- echo
- echo Unable to find Qt 'mkspecs'. Please set QTDIR
-- echo manually. Perhaps you need to install Qt 3
-+ echo manually. Perhaps you need to install [T]Qt 3
- echo development utilities. You may download them either
- echo from the vendor of your operating system or from
- echo www.trolltech.com
-@@ -71,15 +71,15 @@
- fi
- fi
-
--if [ ! -x "$QTDIR/bin/tqmake" ]; then
-+if [ ! -x "$QTDIR/bin/qmake" ]; then
- if [ "$QC_DEBUG" = "Y" ]; then
-- echo Warning: tqmake not in \$QTDIR/bin/tqmake
-+ echo Warning: qmake not in \$QTDIR/bin/qmake
- echo trying to find it in \$PATH
- fi
-- qm=`type -p tqmake`
-+ qm=`type -p qmake`
- if [ -x "$qm" ]; then
- if [ "$QC_DEBUG" = "Y" ]; then
-- echo tqmake found in $qm
-+ echo qmake found in $qm
- fi
- else
- echo fail
-@@ -88,12 +88,12 @@
- echo or I missdetected \$QTDIR=$QTDIR
- echo
- echo Please set \$QTDIR manually and make sure that
-- echo \$QTDIR/bin/tqmake exists.
-+ echo \$QTDIR/bin/qmake exists.
- echo
- exit 1;
- fi
- else
-- qm=$QTDIR/bin/tqmake
-+ qm=$QTDIR/bin/qmake
- fi
-
- gen_files() {
-@@ -382,7 +382,7 @@
-
- TQString str;
- str += "# qconf\n";
-- str += "QT_PATH_PLUGINS = " + TQString(tqInstallPathPlugins()) + '\n';
-+ str += "QT_PATH_PLUGINS = " + TQString(qInstallPathPlugins()) + '\n';
- if(!conf->DEFINES.isEmpty())
- str += "DEFINES += " + conf->DEFINES + '\n';
- if(!conf->INCLUDEPATH.isEmpty())
-@@ -417,7 +417,8 @@
- TEMPLATE = app
- CONFIG += qt x11 thread console
- TARGET = conf
--INCLUDEPATH += '/usr/include/tqt'
-+INCLUDEPATH += '${QTINC:-${QTDIR}/include}'
-+INCLUDEPATH += '/usr/include/tqt'
-
- DEFINES += X11_INC='"\$\$QMAKE_INCDIR_X11"'
- DEFINES += X11_LIBDIR='"\$\$QMAKE_LIBDIR_X11"'
-@@ -442,16 +443,16 @@
- )
-
- if [ "$?" != "0" ]; then
-- rm -rf .qconftemp
-+# rm -rf .qconftemp
- echo fail
- echo
- echo "There was an error compiling 'conf'. Be sure you have a proper"
- echo "TQt 3.x Multithreaded (MT) build environment set up."
-- if [ ! -f "$QTDIR/lib/libtqt-mt.so.3" ]; then
-- if [ ! -f "$QTDIR/lib64/libtqt-mt.so.3" ]; then
-+ if [ ! -f "$QTDIR/lib/libqt-mt.so.3" ]; then
-+ if [ ! -f "$QTDIR/lib64/libqt-mt.so.3" ]; then
- echo
- echo "One possible reason is that you don't have"
-- echo "libtqt-mt.so.3 installed in $QTDIR/lib/"
-+ echo "libqt-mt.so.3 installed in $QTDIR/lib/"
- echo "or $QTDIR/lib64/."
- fi
- fi
-@@ -480,7 +481,7 @@
- if [ -x "./qcextra" ]; then
- ./qcextra
- fi
--# run tqmake
-+# run qmake
- $qm qca.pro
- if [ "$?" != "0" ]; then
- echo
diff --git a/redhat/dependencies/tqca/tqca-3.5.13.2.spec b/redhat/dependencies/tqca/tqca-3.5.13.2.spec
index ac4b88cca..ba8acba8a 100644
--- a/redhat/dependencies/tqca/tqca-3.5.13.2.spec
+++ b/redhat/dependencies/tqca/tqca-3.5.13.2.spec
@@ -32,10 +32,7 @@ Packager: Francois Andriot <francois.andriot@free.fr>
Prefix: %{tde_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Source0: tqca-master.tar.gz
-
-Patch0: qca-1.0-mach.patch
-Patch1: tqca-1.0-fix_qt3_detection.patch
+Source0: tqca-3.5.13.2.tar.gz
BuildRequires: qt3-devel >= 3.3.8.d
BuildRequires: trinity-tqtinterface-devel >= %{tde_version}
@@ -91,19 +88,15 @@ This packages contains the development files for TQCA
##########
%prep
-%setup -q -n tqca-master
-%patch0 -p0 -b .mach
-%patch1 -p1 -b .qt
+%setup -q -n tqca-3.5.13.2
# Fix 'lib64' library directory
perl -pi -e 's,target\.path=\$PREFIX/lib,target.path=\$PREFIX/%{_lib},g' qcextra
-# Revert TQCA to QCA
-%__sed -i examples/*/*.cpp src/*.h src/*.cpp -e "s|TQCA|QCA|g"
-
%build
-unset QTDIR || : ; . /etc/profile.d/qt3.sh
+unset QTDIR QTINC QTLIB
+. /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}"
diff --git a/redhat/dependencies/tqtinterface/tqtinterface-14.0.0.spec b/redhat/dependencies/tqtinterface/tqtinterface-14.0.0.spec
index 28ddd68b9..603f70ebc 100755
--- a/redhat/dependencies/tqtinterface/tqtinterface-14.0.0.spec
+++ b/redhat/dependencies/tqtinterface/tqtinterface-14.0.0.spec
@@ -135,8 +135,8 @@ fi
-DWITH_GCC_VISIBILITY=OFF \
\
-DQTDIR="%{tde_datadir}/tqt3" \
- -DQT_INCLUDE_DIRS="%{tde_includedir}/tqt3" \
- -DQT_LIBRARY_DIRS="%{tde_libdir}" \
+ -DQT_INCLUDE_DIR="%{tde_includedir}/tqt3" \
+ -DQT_LIBRARY_DIR="%{tde_libdir}" \
\
-DCMAKE_INSTALL_PREFIX="%{tde_prefix}" \
-DPKGCONFIG_INSTALL_DIR="%{tde_libdir}/pkgconfig" \