[libmygpo-qt/el6] Fix spec issue

Keiran Smith affix at fedoraproject.org
Sun Mar 18 22:54:02 UTC 2012


commit ec4f657ddd8add1343e081f5ca7b59f37d5bbeb7
Author: Keiran Smith <affix at affix.me>
Date:   Sun Mar 18 22:53:36 2012 +0000

    Fix spec issue

 libmygpo-qt-1.0.5-LIB_SUFFIX.patch |   12 +++++
 libmygpo-qt.spec                   |   96 ++++++++++++++++++++++++++++++++++++
 2 files changed, 108 insertions(+), 0 deletions(-)
---
diff --git a/libmygpo-qt-1.0.5-LIB_SUFFIX.patch b/libmygpo-qt-1.0.5-LIB_SUFFIX.patch
new file mode 100644
index 0000000..b62024d
--- /dev/null
+++ b/libmygpo-qt-1.0.5-LIB_SUFFIX.patch
@@ -0,0 +1,12 @@
+diff -up libmygpo-qt.1.0.5/CMakeLists.txt.LIB_SUFFIX libmygpo-qt.1.0.5/CMakeLists.txt
+--- libmygpo-qt.1.0.5/CMakeLists.txt.LIB_SUFFIX	2011-11-08 17:11:00.000000000 -0600
++++ libmygpo-qt.1.0.5/CMakeLists.txt	2011-11-09 06:51:31.760938782 -0600
+@@ -46,7 +46,7 @@ set( CPACK_DEBIAN_PACKAGE_MAINTAINER "gp
+ set( CPACK_PACKAGE_DESCRIPTION_SUMMARY "A c++/qt library to access the APIs provided by gpodder.net." )
+ 
+ set(LIB_INSTALL_DIR_SUFFIX "" CACHE STRING "The directories where to install libraries to")
+-set(LIB_INSTALL_DIR lib${LIB_INSTALL_DIR_SUFFIX} )
++set(LIB_INSTALL_DIR lib${LIB_SUFFIX} )
+ set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/mygpo-qt" CACHE PATH "The directory the headers are installed in")
+ set(CMAKECONFIG_INSTALL_DIR ${LIB_INSTALL_DIR}/cmake/mygpo-qt ) 
+ # SET (CMAKE_MODULES_INSTALL_DIR "${CMAKE_ROOT}/Modules" CACHE PATH "The directory to install FindLibmygpo-qt.cmake to")
diff --git a/libmygpo-qt.spec b/libmygpo-qt.spec
new file mode 100644
index 0000000..d7e9c82
--- /dev/null
+++ b/libmygpo-qt.spec
@@ -0,0 +1,96 @@
+
+Name:    libmygpo-qt
+Summary: Qt Library that wraps the gpodder.net Web API
+Version: 1.0.5
+Release: 1%{?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
+Patch50: libmygpo-qt-1.0.5-LIB_SUFFIX.patch
+
+BuildRequires: automoc4
+BuildRequires: cmake
+BuildRequires: doxygen
+BuildRequires: pkgconfig(QJson)
+BuildRequires: pkgconfig(QtNetwork) 
+ 
+%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 %{name}.%{version}
+
+%patch50 -p1 -b .LIB_SUFFIX
+
+
+%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
+%{_libdir}/cmake/mygpo-qt/
+ 
+ 
+%changelog
+* Tue Mar 18 2012 Keiran "Affix" Smith <fedora at affix.me> - 1.0.5-1
+- Update EPEL Branch
+
+* Tue Feb 28 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.5-3
+- Rebuilt for c++ ABI breakage
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.5-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Wed Nov 09 2011 Rex Dieter <rdieter at fedoraproject.org> 1.0.5-1
+- 1.0.5
+
+* Wed Sep 14 2011 Rex Dieter <rdieter at fedoraproject.org> 1.0.4-1
+- 1.0.4
+
+* Mon May 23 2011 Rex Dieter <rdieter at fedoraproject.org> 1.0.3-1
+- 1.0.3
+
+* 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
+
+


More information about the scm-commits mailing list