commit 1e8a6c3542350869ce4874fb8f01602cd05d5886 Author: Sergey Cherevko Date: Wed May 29 12:46:02 2024 +0300 import belcard-5.3.5-1 diff --git a/.belcard.metadata b/.belcard.metadata new file mode 100644 index 0000000..12b3015 --- /dev/null +++ b/.belcard.metadata @@ -0,0 +1 @@ +35530d85703be89f340312eef0f76b6c732a97ee SOURCES/belcard-5.3.5.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4726b8b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/belcard-5.3.5.tar.gz diff --git a/SOURCES/belcard-cmake-config-location.patch b/SOURCES/belcard-cmake-config-location.patch new file mode 100644 index 0000000..01341cc --- /dev/null +++ b/SOURCES/belcard-cmake-config-location.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a8f48a2..dddaf3d 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -121,7 +121,7 @@ if(ENABLE_TOOLS) + endif() + + include(CMakePackageConfigHelpers) +-set(CMAKE_MODULES_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake") ++set(CMAKE_MODULES_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}") + configure_package_config_file("${PROJECT_NAME}Config.cmake.in" "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake" + INSTALL_DESTINATION "${CMAKE_MODULES_INSTALL_DIR}" + NO_SET_AND_CHECK_MACRO diff --git a/SOURCES/belcard-fix-pkgconfig.patch b/SOURCES/belcard-fix-pkgconfig.patch new file mode 100644 index 0000000..2f3875b --- /dev/null +++ b/SOURCES/belcard-fix-pkgconfig.patch @@ -0,0 +1,25 @@ +--- a/belcard.pc.in ++++ b/belcard.pc.in +@@ -5,5 +5,5 @@ Name: @PROJECT_NAME@ + Description: Belcard is Belledonne Communications' vCard 4 parsing library + Version: @PROJECT_VERSION@ + Libs: -L@CMAKE_INSTALL_FULL_LIBDIR@ -lbelcard +-Libs.private: @LIBS_PRIVATE@ ++Requires.private: @PACKAGES_PRIVATE@ + Cflags: -I@CMAKE_INSTALL_FULL_INCLUDEDIR@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -88,6 +88,12 @@ if(BELCARD_CPPFLAGS) + endif() + add_definitions("-DBELCARD_EXPORTS") + ++ ++set(PACKAGES_PRIVATE "belr bctoolbox") ++configure_file(${CMAKE_CURRENT_SOURCE_DIR}/belcard.pc.in ${CMAKE_CURRENT_BINARY_DIR}/belcard.pc) ++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/belcard.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") ++ ++ + set(STRICT_OPTIONS_CPP ) + set(STRICT_OPTIONS_C ) + set(STRICT_OPTIONS_CXX ) + diff --git a/SPECS/belcard.spec b/SPECS/belcard.spec new file mode 100644 index 0000000..fa6a4c0 --- /dev/null +++ b/SPECS/belcard.spec @@ -0,0 +1,190 @@ +%define major 1 +%define libname %{name}-libs +%define develname %{name}-devel + +Summary: C++ library to manipulate vCard standard format +Name: belcard +Version: 5.3.5 +Release: %{major}%{?dist}.inferit +License: GPLv3+ +Group: System/Libraries +URL: https://linphone.org/ +Source0: https://gitlab.linphone.org/BC/public/belcard/-/archive/%{version}/belcard-%{version}.tar.gz +# (wally) from OpenSUSE to install pkgconfig .pc file +Patch0: belcard-fix-pkgconfig.patch +# (wally) fix cmake config file location +Patch1: belcard-cmake-config-location.patch +BuildRequires: cmake +BuildRequires: ninja-build +BuildRequires: pkgconfig(belr) >= %{version} +BuildRequires: pkgconfig(udev) + +%description +Belcard is a C++ library to manipulate the vCard standard format. + +%package -n %{libname} +Summary: C++ library to manipulate vCard standard format +Group: System/Libraries +Requires: %{name}-grammars >= %{version}-%{release} + +%description -n %{libname} +Belcard is a C++ library to manipulate the vCard standard format. + +%package -n %{develname} +Summary: Development files for %{name} +Group: Development/C++ +Requires: %{libname} = %{version}-%{release} +Provides: %{name}-devel = %{version}-%{release} + +%description -n %{develname} +This package contains development files for %{name} + +%package grammars +Summary: VCard grammar files for Belcard +Group: System/Libraries +BuildArch: noarch + +%description grammars +Belcard VCard grammar files. + +%prep +%setup -q +sed -i -e 's,\r$,,' CMakeLists.txt +%autopatch -p1 + +# Fix version +sed -i -e '/project/s/\(VERSION\)\s\+[0-9]\+\(\.[0-9]\+\)\+/\1 %{version}/' CMakeLists.txt + +%build +%cmake -GNinja \ + -DENABLE_STATIC:BOOL=OFF \ + -DENABLE_STRICT:BOOL=OFF \ + -DENABLE_UNIT_TESTS:BOOL=OFF +%cmake_build + +%install +%cmake_install + +find %{buildroot} -name "*.la" -delete + +%files +%license LICENSE* +%doc README* +%{_bindir}/belcard-folder +%{_bindir}/belcard-parser +%{_bindir}/belcard-unfolder + +%files grammars +%dir %{_datadir}/belr/ +%dir %{_datadir}/belr/grammars/ +%{_datadir}/belr/grammars/vcard_grammar + +%files -n %{libname} +%license LICENSE* +%doc README* +%{_libdir}/lib%{name}.so.%{major}{,.*} + +%files -n %{develname} +%{_includedir}/%{name}/ +%{_libdir}/lib%{name}.so +%{_libdir}/cmake/BelCard/ +%{_libdir}/pkgconfig/%{name}.pc + + +%changelog +* Wed May 29 2024 Sergey Cherevko - 5.3.5-1.inferit +- Rebuilt for MSVSphere 9.4 + +* Sat Dec 30 2023 wally 5.3.5-1.mga10 ++ Revision: 2024670 +- new version 5.3.5 + +* Fri Jun 09 2023 wally 5.2.70-1.mga9 ++ Revision: 1961517 +- new version 5.2.70 + +* Sat Dec 24 2022 wally 5.2.4-1.mga9 ++ Revision: 1926258 +- new version 5.2.4 + +* Sun Dec 04 2022 wally 5.1.72-1.mga9 ++ Revision: 1917531 +- new version 5.1.72 +- build using ninja + +* Tue Aug 23 2022 wally 5.1.55-1.mga9 ++ Revision: 1879609 +- new version 5.1.55 +- rebuild to core/release + +* Tue May 03 2022 wally 5.1.12-1.mga9 ++ Revision: 1855651 +- new version 5.1.12 + +* Fri Mar 25 2022 umeabot 5.0.53-2.mga9 ++ Revision: 1825566 +- Mageia 9 Mass Rebuild + +* Sun Nov 21 2021 wally 5.0.53-1.mga9 ++ Revision: 1758345 +- new version 5.0.53 + +* Sat Jul 31 2021 wally 4.5.22-1.mga9 ++ Revision: 1738377 +- new version 4.5.22 + +* Sun May 30 2021 wally 4.5.15-1.mga9 ++ Revision: 1728844 +- new version 4.5.15 + +* Sat Apr 10 2021 wally 4.5.1-1.mga9 ++ Revision: 1714609 +- new version 4.5.1 + +* Sun Mar 21 2021 wally 4.4.34-1.mga9 ++ Revision: 1706606 +- new version 4.4.34 + +* Sun Dec 27 2020 wally 4.4.21-1.mga9 ++ Revision: 1664101 +- new version 4.4.21 + +* Sat Dec 19 2020 wally 4.4.19-1.mga8 ++ Revision: 1661345 +- new version 4.4.19 + +* Thu Dec 10 2020 wally 4.4.13-1.mga8 ++ Revision: 1655178 +- new version 4.4.13 + +* Mon Nov 23 2020 wally 4.4.9-1.mga8 ++ Revision: 1648762 +- new version 4.4.9 + +* Sun Oct 25 2020 wally 4.4.6-1.mga8 ++ Revision: 1639237 +- new version 4.4.6 + +* Sat Oct 03 2020 wally 4.4.0-1.mga8 ++ Revision: 1632019 +- new version 4.4.0 + +* Sat Mar 28 2020 wally 4.3.1-1.mga8 ++ Revision: 1561396 +- new version 4.3.1 + +* Wed Feb 12 2020 umeabot 1.0.2-3.mga8 ++ Revision: 1510689 +- Mageia 8 Mass Rebuild ++ wally +- build with new cmake macros + +* Fri Sep 21 2018 umeabot 1.0.2-2.mga7 ++ Revision: 1295407 +- Mageia 7 Mass Rebuild + +* Mon Jan 01 2018 wally 1.0.2-1.mga7 ++ Revision: 1188651 +- fix license +- imported package belcard +