From 0c0a3635649e8ccd8b0bd39532d8de9e8f6e6470 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Thu, 14 Mar 2013 21:53:21 -0500 Subject: [PATCH] import --- .gitignore | 1 + qaccessibilityclient-0.1.0-dso.patch | 13 +++++ qaccessibilityclient.spec | 83 ++++++++++++++++++++++++++++ qaccessibilityclient_snapshot.sh | 18 ++++++ sources | 1 + 5 files changed, 116 insertions(+) create mode 100644 qaccessibilityclient-0.1.0-dso.patch create mode 100644 qaccessibilityclient.spec create mode 100755 qaccessibilityclient_snapshot.sh diff --git a/.gitignore b/.gitignore index e69de29..b0b5cdb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/qaccessibilityclient-0.1.0-20121113git.tar.xz diff --git a/qaccessibilityclient-0.1.0-dso.patch b/qaccessibilityclient-0.1.0-dso.patch new file mode 100644 index 0000000..e4861bd --- /dev/null +++ b/qaccessibilityclient-0.1.0-dso.patch @@ -0,0 +1,13 @@ +diff -up qaccessibilityclient-0.1.0/CMakeLists.txt.dso qaccessibilityclient-0.1.0/CMakeLists.txt +diff -up qaccessibilityclient-0.1.0/src/CMakeLists.txt.dso qaccessibilityclient-0.1.0/src/CMakeLists.txt +--- qaccessibilityclient-0.1.0/src/CMakeLists.txt.dso 2012-11-13 15:08:16.000000000 -0600 ++++ qaccessibilityclient-0.1.0/src/CMakeLists.txt 2013-03-13 21:48:57.780775276 -0500 +@@ -24,7 +24,7 @@ add_library(qaccessibilityclient SHARED + if (QT5_BUILD) + target_link_libraries(qaccessibilityclient ${Qt5Core_LIBRARIES} ${Qt5Widgets_LIBRARIES} ${Qt5DBus_LIBRARIES}) + else (QT5_BUILD) +- target_link_libraries(qaccessibilityclient ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY}) ++ target_link_libraries(qaccessibilityclient ${QT_QTCORE_LIBRARY} ${QT_GUI_LIBRARY} ${QT_QTDBUS_LIBRARY}) + endif(QT5_BUILD) + + set(QACCESSIBILITYCLIENT_SOVERSION ${QACCESSIBILITYCLIENT_VERSION_MAJOR}) diff --git a/qaccessibilityclient.spec b/qaccessibilityclient.spec new file mode 100644 index 0000000..944a4e3 --- /dev/null +++ b/qaccessibilityclient.spec @@ -0,0 +1,83 @@ + +%define snap 20121113git + +Name: qaccessibilityclient +Summary: Accessibility client library for Qt +Version: 0.1.0 +Release: 0.2.%{snap}%{?dist} + +# KDE e.V. may determine that future LGPL versions are accepted +License: LGPLv2 or LGPLv3 +URL: https://projects.kde.org/projects/playground/accessibility/libkdeaccessibilityclient +Source0: qaccessibilityclient-%{version}-%{snap}.tar.xz +Source1: qaccessibilityclient_snapshot.sh + +## upstreamable patches +# link QtGui for undefined symbols +Patch50: qaccessibilityclient-0.1.0-dso.patch + +BuildRequires: cmake >= 2.8.6 +BuildRequires: qt4-devel + +%description +%{summary}. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: cmake +Requires: qt4-devel +%description devel +%{summary}. + + +%prep +%setup -q + +%patch50 -p1 -b .dso + + +%build +mkdir -p %{_target_platform} +pushd %{_target_platform} +%{cmake} .. +popd + +make %{?_smp_mflags} -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + +## unpackaged files +# consider putting into -tools subpkg? +rm -f %{buildroot}%{_bindir}/accessibleapps + + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc AUTHORS ChangeLog COPYING README +%{_libdir}/libqaccessibilityclient.so.0* + +%files devel +%{_includedir}/qaccessibilityclient/ +%{_libdir}/cmake/QAccessibilityClient/ +%{_libdir}/libqaccessibilityclient.so + + +%changelog +* Wed Mar 13 2013 Rex Dieter 0.1.0-0.2.20121113git +- fix changelog +- -devel: +Requires: cmake qt4-devel +- link QT_QTGUI_LIBRARY for undefined symbols +- s/Url/URL/ +- don't package accessibleapps + +* Sat Feb 02 2013 Rex Dieter 0.1.0-0.1.20121113git +- adapt for fedora +- fresh snapshot + +* Sat Nov 10 2012 alinm.elena@gmail.com +- initial commit diff --git a/qaccessibilityclient_snapshot.sh b/qaccessibilityclient_snapshot.sh new file mode 100755 index 0000000..50dc36e --- /dev/null +++ b/qaccessibilityclient_snapshot.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +MODULE=libkdeaccessibilityclient +TARBALL=qaccessibilityclient +BRANCH=master +VERSION=0.1.0 +DATE=$(date +%Y%m%d) + +set -x + +rm -rf $MODULE + +git clone git://anongit.kde.org/$MODULE $MODULE +pushd $MODULE +git archive ${BRANCH} --format tar --prefix=${TARBALL}-${VERSION}/ | xz -9 > ../${TARBALL}-${VERSION}-${DATE}.tar.xz +popd + +rm -rf $MODULE diff --git a/sources b/sources index e69de29..e4386a3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +94beaa55d13f1d2136623d4b335850d9 qaccessibilityclient-0.1.0-20121113git.tar.xz