[Bug 2108585] Review Request: fmt8 - Compatibility version of the fmt library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2108585



--- Comment #4 from Miro Hrončok <mhroncok@xxxxxxxxxx> ---
With --ignore-space-change:

--- /dev/fd/63  2022-07-19 14:03:05.106928629 +0200
+++ /dev/fd/62  2022-07-19 14:03:05.106928629 +0200
@@ -1,10 +1,12 @@
-Name:           fmt
+%global appname fmt
+
+Name: fmt8
 Version:        8.1.1
-Release:        5%{?dist}
+Release: 6%{?dist}

 License:        BSD
-Summary:        Small, safe and fast formatting library for C++
-URL:            https://github.com/fmtlib/%{name}
+Summary: Compatibility version of the %{appname} library
+URL: https://github.com/fmtlib/%{appname}
 Source0:        %{url}/archive/%{version}.tar.gz

 # fix for https://github.com/fmtlib/fmt/issues/2717
@@ -15,33 +17,30 @@
 BuildRequires:  gcc-c++
 BuildRequires:  ninja-build

-# This package replaces the old name of cppformat
-Provides:       cppformat = %{?epoch:%{epoch}:}%{version}-%{release}
-Obsoletes:      cppformat < %{?epoch:%{epoch}:}%{version}-%{release}
-
 %description
 C++ Format is an open-source formatting library for C++. It can be used as a
 safe alternative to printf or as a fast alternative to IOStreams.

+Warning! This is a limited-time compatibility version of %{appname}.
+
 %package        devel
 Summary:        Development files for %{name}
 Requires:       %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
-
-# This package replaces the old name of cppformat
-Provides:       cppformat-devel = %{?epoch:%{epoch}:}%{version}-%{release}
-Obsoletes:      cppformat-devel < %{?epoch:%{epoch}:}%{version}-%{release}
+Conflicts: %{appname}-devel%{?_isa}

 %description    devel
 This package contains the header file for using %{name}.

+Warning! This is a limited-time compatibility version of %{appname}.
+
 %prep
-%autosetup -p1
+%autosetup -n %{appname}-%{version} -p1

 %build
 %cmake -G Ninja \
     -DCMAKE_BUILD_TYPE=RelWithDebInfo \
     -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON \
-    -DFMT_CMAKE_DIR:STRING=%{_libdir}/cmake/%{name} \
+    -DFMT_CMAKE_DIR:STRING=%{_libdir}/cmake/%{appname} \
     -DFMT_LIB_DIR:STRING=%{_libdir}
 %cmake_build

@@ -54,12 +53,12 @@
 %files
 %license LICENSE.rst
 %doc ChangeLog.rst README.rst
-%{_libdir}/lib%{name}.so.8*
+%{_libdir}/lib%{appname}.so.8*

 %files devel
-%{_includedir}/%{name}
-%{_libdir}/lib%{name}.so
-%{_libdir}/cmake/%{name}
-%{_libdir}/pkgconfig/%{name}.pc
+%{_includedir}/%{appname}
+%{_libdir}/lib%{appname}.so
+%{_libdir}/cmake/%{appname}
+%{_libdir}/pkgconfig/%{appname}.pc

 %changelog


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2108585
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux