[qxmpp-dev] 0.3.45.1-4

Minh Ngo ignotusp at fedoraproject.org
Tue Jan 10 05:37:03 UTC 2012


commit cd17b6bc8f2fc0f6d2d603196b1d656d586e7323
Author: Minh Ngo <nlminhtl at gmail.com>
Date:   Tue Jan 10 07:36:55 2012 +0200

    0.3.45.1-4

 qxmpp-dev-dynamiclib.patch |   22 +++++++++++
 qxmpp-dev-htmldoc.patch    |    7 +++
 qxmpp-dev-rename.patch     |   26 +++++++++++++
 qxmpp-dev.spec             |   90 ++++++++++++++++++++++++++++++++++++++++++++
 sources                    |    1 +
 5 files changed, 146 insertions(+), 0 deletions(-)
---
diff --git a/qxmpp-dev-dynamiclib.patch b/qxmpp-dev-dynamiclib.patch
new file mode 100644
index 0000000..bb58a1d
--- /dev/null
+++ b/qxmpp-dev-dynamiclib.patch
@@ -0,0 +1,22 @@
+--- qxmpp.pri	2011-07-18 03:12:56.000000000 +0300
++++ qxmpp.pri	2011-07-30 10:06:40.882149129 +0300
+@@ -32,7 +32,7 @@
+ # Path of the QXmpp library file, for expressing dependency.
+ symbian {
+ } else:unix {
+-    QXMPP_LIBRARY_FILE = $${QXMPP_LIBRARY_DIR}/lib$${QXMPP_LIBRARY_NAME}.a
++    QXMPP_LIBRARY_FILE = $${QXMPP_LIBRARY_DIR}/lib$${QXMPP_LIBRARY_NAME}.so
+ }
+ 
+ unix {
+--- src/src.pro	2011-07-18 03:12:56.000000000 +0300
++++ src/src.pro	2011-07-30 10:06:14.832474792 +0300
+@@ -4,7 +4,7 @@
+ 
+ TEMPLATE = lib
+ 
+-CONFIG += staticlib
++CONFIG += dynamiclib
+ INCLUDEPATH += $$QXMPP_INCLUDE_DIR $$QXMPP_INTERNAL_INCLUDES
+ LIBS += $$QXMPP_INTERNAL_LIBS
+ 
diff --git a/qxmpp-dev-htmldoc.patch b/qxmpp-dev-htmldoc.patch
new file mode 100644
index 0000000..a34d3e1
--- /dev/null
+++ b/qxmpp-dev-htmldoc.patch
@@ -0,0 +1,7 @@
+--- qxmpp.pro	2011-06-04 20:19:57.000000000 +0300
++++ qxmpp.pro	2011-06-06 00:06:09.751272301 +0300
+@@ -28,4 +28,3 @@
+ htmldocs.CONFIG += no_check_exist directory
+ 
+ QMAKE_EXTRA_TARGETS += dist docs
+-INSTALLS += htmldocs
diff --git a/qxmpp-dev-rename.patch b/qxmpp-dev-rename.patch
new file mode 100644
index 0000000..b02ba20
--- /dev/null
+++ b/qxmpp-dev-rename.patch
@@ -0,0 +1,26 @@
+diff -ru qxmpp-0.3.45.1/qxmpp.pri qxmpp-0.3.45.1.new/qxmpp.pri
+--- qxmpp-0.3.45.1/qxmpp.pri	2011-07-18 03:12:56.000000000 +0300
++++ qxmpp-0.3.45.1.new/qxmpp.pri	2011-11-11 18:53:53.408878735 +0200
+@@ -5,9 +5,9 @@
+ QXMPP_LIBRARY_DIR = $$PWD/lib
+ 
+ CONFIG(debug, debug|release) {
+-    QXMPP_LIBRARY_NAME = qxmpp_d
++    QXMPP_LIBRARY_NAME = qxmpp-dev_d
+ } else {
+-    QXMPP_LIBRARY_NAME = qxmpp
++    QXMPP_LIBRARY_NAME = qxmpp-dev
+ }
+ 
+ # Libraries used internal by QXmpp
+diff -ru qxmpp-0.3.45.1/src/src.pro qxmpp-0.3.45.1.new/src/src.pro
+--- qxmpp-0.3.45.1/src/src.pro	2011-07-18 03:12:56.000000000 +0300
++++ qxmpp-0.3.45.1.new/src/src.pro	2011-11-11 18:55:10.746911875 +0200
+@@ -198,6 +198,6 @@
+ 
+ # Installation
+ headers.files = $$INSTALL_HEADERS
+-headers.path = $$PREFIX/include/qxmpp
++headers.path = $$PREFIX/include/qxmpp-dev
+ target.path = $$PREFIX/lib
+ INSTALLS += headers target
diff --git a/qxmpp-dev.spec b/qxmpp-dev.spec
new file mode 100644
index 0000000..42d5065
--- /dev/null
+++ b/qxmpp-dev.spec
@@ -0,0 +1,90 @@
+Name:       qxmpp-dev
+Version:    0.3.45.1
+Release:    4%{?dist}
+License:    LGPLv2+
+Source0:    https://github.com/downloads/0xd34df00d/qxmpp-dev/qxmpp-%{version}-extras.tar.bz2
+
+# Removing old documentations
+Patch0:     qxmpp-dev-htmldoc.patch
+# This patch's used for building the dynamic library
+Patch1:     qxmpp-dev-dynamiclib.patch
+# name conflicts resolution
+Patch2:     qxmpp-dev-rename.patch
+
+Group:      Development/Libraries
+Summary:    Qt XMPP Library
+URL:        http://github.com/0xd34df00d/qxmpp-dev 
+
+BuildRequires:  qt4-devel
+BuildRequires:  speex-devel
+
+%description
+QXmpp is a cross-platform C++ XMPP client library. It is based on Qt and C++.
+
+This package's the fork of QXmpp for Leechcraft Internet Client
+
+QXmpp is pretty intuitive and easy to use. It uses Qt extensively. Qt is the only
+third party library it is dependent on. Users need to a have working knowledge of
+C++ and Qt basics (Signals and Slots and Qt data types). The underlying TCP socket
+and the XMPP RFCs (RFC3920 and RFC3921) have been encapsulated into classes and
+functions. Therefore the user would not be bothered with these details. But it is
+always recommended to the advanced users to read and enjoy the low level details.
+
+%package devel
+Summary:      QXmpp-dev Development Files
+Group:        Development/Libraries
+Requires:     %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+It's a development package for qxmpp-dev.
+
+QXmpp-dev is a cross-platform C++ XMPP client library. It is based on Qt and C++.
+
+%prep
+%setup -qn qxmpp-%{version}
+%patch2 -p1
+%patch0
+%patch1
+
+%build
+%{_qt4_qmake} PREFIX=%{_prefix} QMAKE_STRIP="" QMAKE_CXXFLAGS+="%{optflags}"
+make %{?_smp_mflags}
+
+%install
+%make_install INSTALL_ROOT=${RPM_BUILD_ROOT}
+
+%if "%{_lib}" == "lib64"
+%__mv ${RPM_BUILD_ROOT}/usr/{lib,lib64}
+%endif
+
+%post -n %{name} -p /sbin/ldconfig
+%postun -n %{name} -p /sbin/ldconfig
+
+%files 
+%defattr(-,root,root,-)
+%{_libdir}/libqxmpp-dev.so.1
+%{_libdir}/libqxmpp-dev.so.1.0
+%{_libdir}/libqxmpp-dev.so.1.0.0
+
+%files devel
+%doc AUTHORS CHANGELOG LICENSE.LGPL README
+%{_libdir}/lib%{name}.so
+%{_includedir}/%{name}
+%{_libdir}/pkgconfig/%{name}.pc
+ 
+%changelog
+* Mon Jan 08 2012 Minh Ngo <nlminhtl at gmail.com> 0.3.45.1-4
+- fixing summary/description in the devel package
+- adding a dependence for the devel package
+
+* Fri Nov 11 2011 Minh Ngo <nlminhtl at gmail.com> 0.3.45.1-3
+- rename the lib to libqxmpp-dev
+
+* Tue Aug 02 2011 Minh Ngo <nlminhtl at gmail.com> 0.3.45.1-2
+- dynamic libs
+
+* Mon Jul 25 2011 Minh Ngo <nlminhtl at gmail.com> 0.3.45.1-1
+- new version
+
+* Mon Jun 06 2011 Minh Ngo <nlminhtl at gmail.com> 0.3.44-0.1.pre21062011
+- initial build 
diff --git a/sources b/sources
index e69de29..e6f996e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9498edd097631d321d48b12f8ad99da1  qxmpp-0.3.45.1-extras.tar.bz2


More information about the scm-commits mailing list