Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package hhdate for openSUSE:Factory checked in at 2022-12-08 16:50:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/hhdate (Old) and /work/SRC/openSUSE:Factory/.hhdate.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hhdate" Thu Dec 8 16:50:31 2022 rev:2 rq:1041251 version:3.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/hhdate/hhdate.changes 2022-12-02 13:13:26.801953968 +0100 +++ /work/SRC/openSUSE:Factory/.hhdate.new.1835/hhdate.changes 2022-12-08 16:50:37.275309782 +0100 @@ -1,0 +2,17 @@ +Wed Dec 7 21:53:26 UTC 2022 - Filippo Bonazzi <filippo.bona...@suse.com> + +- Fix file conflicts with devel package + +------------------------------------------------------------------- +Tue Dec 6 16:42:27 UTC 2022 - Soc Virnyl Estela <socvirnyl.est...@gmail.com> + +- Clean up specfile: use `devel` instead of `-n hhdate-devel` +- Improve description. It's based on the chrono header +- Use %cmake_install +- Remove rpmlint errors: + * Package is a library and does not include an executable + * Create a libname package + * add postun / post ldconfig declaration +- Add license also in the libname + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hhdate.spec ++++++ --- /var/tmp/diff_new_pack.CgA0Ox/_old 2022-12-08 16:50:37.915313056 +0100 +++ /var/tmp/diff_new_pack.CgA0Ox/_new 2022-12-08 16:50:37.923313097 +0100 @@ -1,7 +1,7 @@ # -# spec file for package specRPM_CREATION_NAME +# spec file for package hhdate # -# Copyright (c) specCURRENT_YEAR SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,32 +12,42 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%global somajor 3 +%global libname libdate-tz%{somajor} Name: hhdate Version: 3.0.1 Release: 0 -Summary: A date and time library based on the C++11/14/17 header +Summary: Date and time library based on the C++11/14/17 chrono header License: MIT Group: Development/Libraries/C and C++ -Url: https://github.com/HowardHinnant/date +URL: https://github.com/HowardHinnant/date Source: hhdate-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libcurl-devel %description -A date and time library based on the C++11/14/17 header. Mostly a header-only library. +A date and time library based on the C++11/14/17 chrono header. -%package -n %{name}-devel +%package -n %{libname} Summary: Development files for the hhdate library -Requires: %{name} = %{version} -BuildArch: noarch +Group: Development/Libraries/C and C++ + +%description -n %{libname} +A date and time library based on the C++11/14/17 chrono header. + +%package devel +Summary: Development files for the hhdate library +Group: Development/Libraries/C and C++ +Requires: %{libname} = %{version} +Conflicts: %{name} <= %{version} -%description -n %{name}-devel -A date and time library based on the C++11/14/17 header. Mostly a header-only library. +%description devel +A date and time library based on the C++11/14/17 chrono header. %prep %setup -q @@ -47,15 +57,19 @@ %cmake_build %install -install -D -m 0644 include/date/* -t %{buildroot}/%{_includedir}/date/ -install -D -m 0755 build/libdate-tz.so %{buildroot}/%{_libdir}/libdate-tz.so +%cmake_install + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig -%files +%files -n %{libname} +%{_libdir}/libdate-tz.so.%{somajor}* %license LICENSE.txt -%{_libdir}/libdate-tz.so -%files -n hhdate-devel +%files devel %license LICENSE.txt %{_includedir}/date/ +%{_libdir}/cmake/date/ +%{_libdir}/libdate-tz.so %changelog