From 08fc0e46ad06604804857a22612a08256886e365 Mon Sep 17 00:00:00 2001 From: yeqinglong Date: Tue, 18 Aug 2020 18:38:51 +0800 Subject: [PATCH] init package --- 0001-fix-rpmbuild-failed.patch | 37 ++++++++++++++++++++++++++++++++++ kf5-attica.spec | 5 ++++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 0001-fix-rpmbuild-failed.patch diff --git a/0001-fix-rpmbuild-failed.patch b/0001-fix-rpmbuild-failed.patch new file mode 100644 index 0000000..dbdde19 --- /dev/null +++ b/0001-fix-rpmbuild-failed.patch @@ -0,0 +1,37 @@ +From dc112dc87491115ec1245971f0c9c3b0a8719b6a Mon Sep 17 00:00:00 2001 +From: yeqinglong +Date: Tue, 18 Aug 2020 18:26:22 +0800 +Subject: [PATCH] fix rpmbuild failed + +--- + src/cmake/libKF5Attica.pc.cmake | 2 +- + src/cmake/libattica.pc.cmake | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/cmake/libKF5Attica.pc.cmake b/src/cmake/libKF5Attica.pc.cmake +index 75387fa..4a60223 100644 +--- a/src/cmake/libKF5Attica.pc.cmake ++++ b/src/cmake/libKF5Attica.pc.cmake +@@ -6,6 +6,6 @@ includedir=${INCLUDE_INSTALL_DIR}/KF5Attica + Name: lib${ATTICA_LIB_SONAME} + Description: Qt library to access Open Collaboration Services + #Requires: +-Version: ${CMAKE_LIBATTICA_VERSION_MAJOR}.${CMAKE_LIBATTICA_VERSION_MINOR}.${CMAKE_LIBATTICA_VERSION_PATCH} ++Version: 5.55.0 + Libs: -L${LIB_INSTALL_DIR} -l${ATTICA_LIB_SONAME} + Cflags: -I${INCLUDE_INSTALL_DIR}/KF5Attica +diff --git a/src/cmake/libattica.pc.cmake b/src/cmake/libattica.pc.cmake +index 9b73985..3c87a3b 100644 +--- a/src/cmake/libattica.pc.cmake ++++ b/src/cmake/libattica.pc.cmake +@@ -6,6 +6,6 @@ includedir=${INCLUDE_INSTALL_DIR} + Name: lib${ATTICA_LIB_SONAME} + Description: Qt library to access Open Collaboration Services + #Requires: +-Version: ${CMAKE_LIBATTICA_VERSION_MAJOR}.${CMAKE_LIBATTICA_VERSION_MINOR}.${CMAKE_LIBATTICA_VERSION_PATCH} ++Version: 5.55.0 + Libs: -L${LIB_INSTALL_DIR} -l${ATTICA_LIB_SONAME} + Cflags: -I${INCLUDE_INSTALL_DIR} +-- +2.18.4 + diff --git a/kf5-attica.spec b/kf5-attica.spec index bdbe256..fca1026 100644 --- a/kf5-attica.spec +++ b/kf5-attica.spec @@ -16,6 +16,7 @@ URL: https://cgit.kde.org/%{framework}.git %global stable stable %endif Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz +Patch0: 0001-fix-rpmbuild-failed.patch BuildRequires: extra-cmake-modules >= %{version} BuildRequires: kf5-rpm-macros >= %{version} @@ -36,7 +37,9 @@ Requires: qt5-qtbase-devel %prep -%autosetup -n %{framework}-%{version} +%autosetup -n %{framework}-%{version} -p1 + + %build