]> git.pld-linux.org Git - packages/qtsoap.git/commitdiff
- initial from FC
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 30 Apr 2015 15:34:14 +0000 (17:34 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 30 Apr 2015 15:34:14 +0000 (17:34 +0200)
qtsoap-2.7_1-opensource-install-pub-headers.patch [new file with mode: 0644]
qtsoap.spec [new file with mode: 0644]

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 (file)
index 0000000..c98ab2e
--- /dev/null
@@ -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 (file)
index 0000000..506b240
--- /dev/null
@@ -0,0 +1,72 @@
+Summary:       The Simple Object Access Protocol Qt-based client side library
+Name:          qtsoap
+Version:       2.7
+Release:       1
+License:       LGPLv2 with exceptions or GPLv3
+Group:         Libraries
+URL:           http://qt.gitorious.org/qt-solutions/qt-solutions/trees/master/qtsoap
+# Source0:        http://get.qt.nokia.com/qt/solutions/lgpl/qtsoap-%{version}_1-opensource.tar.gz
+Source0:       http://ftp.icm.edu.pl/packages/qt/solutions/lgpl/%{name}-%{version}_1-opensource.tar.gz
+# Source0-md5: 3bb3c0ba836eccb94b6f75ba289b0213
+Patch0:                %{name}-2.7_1-opensource-install-pub-headers.patch
+BuildRequires: QtCore-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 %{name}-%{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
+
+echo "QTSOAP_LIBNAME = \$\$qtLibraryTarget(qtsoap)" >> common.pri
+echo "VERSION=%{version}" >> common.pri
+
+qmake-qt4 \
+       PREFIX=%{_prefix}
+%{__make}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       INSTALL_ROOT=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.TXT LGPL_EXCEPTION.txt
+%attr(755,root,root) %ghost %{_libdir}/libqtsoap.so.2
+%attr(755,root,root) %{_libdir}/libqtsoap.so.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%doc LGPL_EXCEPTION.txt
+%attr(755,root,root) %{_libdir}/libqtsoap.so
+%{_includedir}/qt4/QtSoap
+
+%changelog
This page took 0.078106 seconds and 4 git commands to generate.