diff --git a/liberasurecode-1.6.2.tar.gz b/1.6.2.tar.gz similarity index 100% rename from liberasurecode-1.6.2.tar.gz rename to 1.6.2.tar.gz diff --git a/liberasurecode.spec b/liberasurecode.spec index 1c38f8e1d1f89f6df62beda010ae32c1b8259d24..1f8dcfb757988edea649a2780f816f5563d338fe 100644 --- a/liberasurecode.spec +++ b/liberasurecode.spec @@ -1,10 +1,10 @@ Name: liberasurecode Version: 1.6.2 -Release: 1 +Release: 2 Summary: Erasure Code API library written in C with pluggable backends -License: BSD -URL: https://bitbucket.org/tsg-/liberasurecode/ -Source0: %{name}-%{version}.tar.gz +License: BSD-2-Clause +URL: https://opendev.org/openstack/liberasurecode +Source0: https://opendev.org/openstack/liberasurecode/archive/%{version}.tar.gz Patch2: liberasurecode-1.6.2-docs.patch Patch3: liberasurecode-1.6.2-ldtest.patch @@ -25,6 +25,7 @@ of pluggable backends, such as Intel ISA-L library. %package doc Summary: Documentation for %{name} +Buildarch: noarch %description doc The documentation for %{name}. @@ -32,43 +33,31 @@ The documentation for %{name}. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} -Requires: gcc +Conflicts: %{name} < 1.6.2-2 %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep -%setup -q -%patch2 -p1 -%patch3 -p1 +%autosetup -p1 %build autoreconf -i -v -%configure --disable-static --disable-mmi -sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool -sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool -make V=1 %{?_smp_mflags} +%configure --disable-static --disable-mmi --disable-werror +%disable_rpath +%make_build %check -make test +%make_build test %install %make_install -find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' -find $RPM_BUILD_ROOT%{_datadir}/doc -type f -exec chmod a-x {} ';' - -%post -/sbin/ldconfig - -%postun -/sbin/ldconfig - +%delete_la %files %license COPYING %doc AUTHORS ChangeLog README.md -%{_libdir}/*.so %{_libdir}/*.so.* %files doc @@ -76,9 +65,13 @@ find $RPM_BUILD_ROOT%{_datadir}/doc -type f -exec chmod a-x {} ';' %files devel %{_includedir}/* +%{_libdir}/*.so %{_libdir}/pkgconfig/erasurecode-1.pc %changelog +* Wed Jan 29 2025 Funda Wang - 1.6.2-2 +- fix build with lto + * Sun Aug 15 2021 OpenStack_SIG - 1.6.2-1 - Initial release diff --git a/liberasurecode.yaml b/liberasurecode.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3c0f01ef2da6bc54ee52ccf8fd921cd7e3f6fb5a --- /dev/null +++ b/liberasurecode.yaml @@ -0,0 +1,4 @@ +version_control: git +src_repo: https://opendev.org/openstack/liberasurecode.git +tag_prefix: +separator: "."