[libmygpo-qt] import
Rex Dieter
rdieter at fedoraproject.org
Mon May 23 14:50:40 UTC 2011
commit 97ec5c1b581cbf37c7f843ad8ddec1078c0820ae
Author: Rex Dieter <rdieter at fedoraproject.org>
Date: Mon May 23 09:54:19 2011 -0500
import
.gitignore | 1 +
libmygpo-qt.1.0.2-dso.patch | 19 ++++++++++
libmygpo-qt.spec | 82 +++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 103 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..247a033 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libmygpo-qt.1.0.2.tar.gz
diff --git a/libmygpo-qt.1.0.2-dso.patch b/libmygpo-qt.1.0.2-dso.patch
new file mode 100644
index 0000000..4c4f0dd
--- /dev/null
+++ b/libmygpo-qt.1.0.2-dso.patch
@@ -0,0 +1,19 @@
+diff -up libmygpo-qt.1.0.2/tests/CMakeLists.txt.dso libmygpo-qt.1.0.2/tests/CMakeLists.txt
+--- libmygpo-qt.1.0.2/tests/CMakeLists.txt.dso 2011-03-22 17:54:55.000000000 -0500
++++ libmygpo-qt.1.0.2/tests/CMakeLists.txt 2011-05-10 09:01:15.763785282 -0500
+@@ -19,7 +19,7 @@ macro(add_libmygpo_test _source)
+ get_filename_component(_name ${_source} NAME_WE)
+ QT4_WRAP_CPP(${_name}_MOC_SRC ${_name}.h)
+ add_executable(${_name} ${_source} ${${_name}_MOC_SRC})
+- target_link_libraries(${_name} ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY} ${QTCORE_QTNETWORK_LIBRARY})
++ target_link_libraries(${_name} ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY} ${QT_QTNETWORK_LIBRARY})
+ add_test(${_name}-test ${EXECUTABLE_OUTPUT_PATH}/${_name})
+ endmacro(add_libmygpo_test)
+
+@@ -27,4 +27,4 @@ add_libmygpo_test( UrlBuilderTest.cpp )
+ target_link_libraries( UrlBuilderTest UrlBuilder)
+
+ add_libmygpo_test( RequestHandlerTest.cpp )
+-target_link_libraries(RequestHandlerTest RequestHandler)
+\ No newline at end of file
++target_link_libraries(RequestHandlerTest RequestHandler)
diff --git a/libmygpo-qt.spec b/libmygpo-qt.spec
new file mode 100644
index 0000000..41a420e
--- /dev/null
+++ b/libmygpo-qt.spec
@@ -0,0 +1,82 @@
+
+Name: libmygpo-qt
+Summary: Qt Library that wraps the gpodder.net Web API
+Version: 1.0.2
+Release: 2%{?dist}
+
+License: LGPLv2+
+Url: http://wiki.gpodder.org/wiki/Libmygpo-qt
+Source0: http://stefan.derkits.at/files/libmygpo-qt/libmygpo-qt.%{version}.tar.gz
+
+
+## upstreamable patches
+# fix DSO linking (typo)
+Patch50: libmygpo-qt.1.0.2-dso.patch
+
+BuildRequires: automoc4
+BuildRequires: cmake
+BuildRequires: doxygen
+BuildRequires: qjson-devel
+BuildRequires: qt4-devel
+
+
+%description
+libmygpo-qt is a Qt Library that wraps the gpodder.net Web API,
+http://wiki.gpodder.org/wiki/Web_Services/API_2
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: qt4-devel
+%description devel
+%{summary}.
+
+
+%prep
+%setup -q -n libmygpo-qt.%{version}
+
+%patch50 -p1 -b .dso
+
+
+%build
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+%{cmake} ..
+popd
+
+make %{?_smp_mflags} -C %{_target_platform}
+
+
+%install
+rm -rf %{buildroot}
+
+make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
+
+
+%check
+make test -C %{_target_platform}
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc AUTHORS LICENSE README
+%{_libdir}/libmygpo-qt.so.1*
+
+%files devel
+%{_includedir}/mygpo-qt/
+%{_libdir}/libmygpo-qt.so
+%{_libdir}/pkgconfig/libmygpo-qt.pc
+
+
+%changelog
+* Fri May 20 2011 Rex Dieter <rdieter at fedoraproject.org> 1.0.2-2
+- drop kde deps/macros, this is a qt-only library
+
+* Tue May 10 2011 Rex Dieter <rdieter at fedoraproject.org> 1.0.2-1
+- 1.0.2 first try
+
+
diff --git a/sources b/sources
index e69de29..7811af0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6f88444c82e9840638ec16e366457dd7 libmygpo-qt.1.0.2.tar.gz
More information about the scm-commits
mailing list