[qtsoap] rename library to libqtsoap

Jaroslav Reznik jreznik at fedoraproject.org
Thu Jul 14 13:36:15 UTC 2011


commit 9d19b428db2233422cedd16fde03f3b8ca92e051
Author: Jaroslav Reznik <jreznik at redhat.com>
Date:   Thu Jul 14 15:33:28 2011 +0200

    rename library to libqtsoap

 .gitignore                                        |    1 +
 qtsoap-2.7_1-opensource-install-pub-headers.patch |   14 ++++
 qtsoap.spec                                       |   75 +++++++++++++++++++++
 sources                                           |    1 +
 4 files changed, 91 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5a747a4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/qtsoap-2.7_1-opensource.tar.gz
diff --git a/qtsoap-2.7_1-opensource-install-pub-headers.patch b/qtsoap-2.7_1-opensource-install-pub-headers.patch
new file mode 100644
index 0000000..c98ab2e
--- /dev/null
+++ b/qtsoap-2.7_1-opensource-install-pub-headers.patch
@@ -0,0 +1,14 @@
+diff -up qtsoap-2.7_1-opensource/qtsoap.pro.install-pub-headers qtsoap-2.7_1-opensource/qtsoap.pro
+--- qtsoap-2.7_1-opensource/qtsoap.pro.install-pub-headers	2009-12-16 11:43:54.000000000 +0100
++++ qtsoap-2.7_1-opensource/qtsoap.pro	2011-02-22 14:16:53.872495328 +0100
+@@ -3,3 +3,10 @@ CONFIG += ordered
+ include(common.pri)
+ qtsoap-uselib:SUBDIRS=buildlib
+ SUBDIRS+=examples
++
++INSTALLS += PUB_HEADERS
++
++PUB_HEADERS.files = src/QtSoapArray src/QtSoapHttpTransport src/QtSoapNamespaces src/QtSoapSimpleType src/QtSoapStructIterator \
++                    src/QtSoapTypeConstructor src/QtSoapTypeFactory src/QtSoapArrayIterator src/QtSoapMessage src/QtSoapQName \
++                    src/QtSoapStruct src/QtSoapType src/QtSoapTypeConstructorBase src/qtsoap.h
++PUB_HEADERS.path = $$[QT_INSTALL_HEADERS]/QtSoap
diff --git a/qtsoap.spec b/qtsoap.spec
new file mode 100644
index 0000000..fb5d389
--- /dev/null
+++ b/qtsoap.spec
@@ -0,0 +1,75 @@
+Name:           qtsoap
+Version:        2.7
+Release:        1%{?dist}
+Summary:        The Simple Object Access Protocol Qt-based client side library
+
+Group:          System Environment/Libraries
+License:        LGPLv2 with exceptions or GPLv3
+URL:            http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtsoap/
+Source0:        http://get.qt.nokia.com/qt/solutions/lgpl/qtsoap-%{version}_1-opensource.tar.gz
+Patch0:         qtsoap-2.7_1-opensource-install-pub-headers.patch
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  qt4-devel
+
+%description
+The SOAP (Simple Object Access Protocol) library uses the XML standard
+for describing how to exchange messages. Its primary usage is to invoke web
+services and get responses from Qt-based applications.
+
+%package        devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description    devel
+Development files for %{name}.
+
+%prep
+%setup -q -n qtsoap-%{version}_1-opensource
+
+# headers are not installed for shared library
+%patch0 -p1 -b .install-pub-headers
+
+sed -i 's:$$DESTDIR:%{_libdir}:g' buildlib/buildlib.pro
+
+%build
+# we want shared library
+echo "SOLUTIONS_LIBRARY = yes" > config.pri
+
+qmake-qt4 PREFIX=%{_prefix}
+make %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+make INSTALL_ROOT=%{buildroot} install
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc README.TXT LGPL_EXCEPTION.txt LICENSE.GPL3 LICENSE.LGPL
+%{_qt4_libdir}/libQtSolutions_SOAP-2.7.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%doc LGPL_EXCEPTION.txt LICENSE.GPL3 LICENSE.LGPL
+%{_qt4_libdir}/libQtSolutions_SOAP-2.7.so
+%{_qt4_headerdir}/QtSoap/
+
+%changelog
+* Thu May 19 2011 Jaroslav Reznik <jreznik at redhat.com> - 2.7-1
+- fix version
+
+* Tue Oct 26 2010 Jaroslav Reznik <jreznik at redhat.com> - 1.7-1
+- Initial spec file
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..d7a18fd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3bb3c0ba836eccb94b6f75ba289b0213  qtsoap-2.7_1-opensource.tar.gz


More information about the scm-commits mailing list