diff options
author | Remi Collet <remi@remirepo.net> | 2022-11-28 09:05:11 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2022-11-28 09:05:11 +0100 |
commit | 591978ab542cfd3e1355ab1ac12cb1b343f444a1 (patch) | |
tree | f17e7d81c88bb9465f186fc9d9427a165442b985 /libhandlebars.spec | |
parent | d55afe8fe2c8c17a2a1619d6724a11259ae51579 (diff) |
rename to libhandlebars5 (soname)v0.7
Diffstat (limited to 'libhandlebars.spec')
-rw-r--r-- | libhandlebars.spec | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/libhandlebars.spec b/libhandlebars.spec index 66ee306..b951e7b 100644 --- a/libhandlebars.spec +++ b/libhandlebars.spec @@ -1,12 +1,16 @@ # remirepo/fedora spec file for libhandlebars # -# Copyright (c) 2017-2020 Remi Collet +# Copyright (c) 2017-2022 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # +%bcond_without tests + +%global soname 5 + %global libname libhandlebars %global gh_commit 2a9dd43307b87577504d67a89900cfaa2586c3a8 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) @@ -23,9 +27,9 @@ %global mspec_owner mustache %global mspec_project spec -Name: %{libname} +Name: %{libname}%{soname} Version: 0.7.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Handlebars C library License: LGPLv2+ @@ -49,6 +53,7 @@ BuildRequires: check-devel >= 0.9.9 BuildRequires: bison >= 3.0.2 BuildRequires: flex >= 2.5.35 %endif +Obsoletes: %{libname} <= %{version} %description @@ -61,8 +66,9 @@ php-handlebars[2] and handlebars.php[3]. %package devel -Summary: Development files for %{name} -Requires: %{name}%{?_isa} = %{version}-%{release} +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Obsoletes: %{libname}-devel <= %{version} %description devel The %{name}-devel package contains libraries and header files for @@ -98,8 +104,10 @@ make install DESTDIR=%{buildroot} rm %{buildroot}%{_libdir}/*.{a,la} +%if %{with tests} %check make test +%endif %if 0%{?fedora} < 28 && 0%{?rhel} < 8 @@ -111,7 +119,7 @@ make test %files %{!?_licensedir:%global license %%doc} %license LICENSE* -%{_libdir}/%{libname}.so.5* +%{_libdir}/%{libname}.so.%{soname}* %files devel %doc CHANGELOG.md @@ -124,6 +132,9 @@ make test %changelog +* Mon Nov 28 2022 Remi Collet <remi@remirepo.net> - 0.7.3-2 +- rename to libhandlebars5 (soname) + * Mon Dec 7 2020 Remi Collet <remi@remirepo.net> - 0.7.3-1 - update to 0.7.3 - drop patch merged upstream |