diff options
author | Remi Collet <remi@remirepo.net> | 2021-07-13 16:28:25 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-07-13 16:28:25 +0200 |
commit | 05709f9d683e29383789ca5994278fbec081216c (patch) | |
tree | f5de81e9c44b3855d84d7b08098d5323607a67cd | |
parent | d77b1181bed6b3cb12cd21494d46dd632483e24e (diff) |
rename to remi-libmemcached-awesome when relocated in /opt/remi (EL7, EL8)
-rw-r--r-- | libmemcached-awesome.spec | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/libmemcached-awesome.spec b/libmemcached-awesome.spec index f9a90b9..fbfb7f8 100644 --- a/libmemcached-awesome.spec +++ b/libmemcached-awesome.spec @@ -10,14 +10,17 @@ %bcond_without tests %global libname libmemcached +%global projname %{libname}-awesome # libmemcached >= 1.0.16 have soname 11 %if 0%{?rhel} == 7 || 0%{?rhel} == 8 %global move_to_opt 1 -%global _prefix /opt/remi/%{name} +%global _prefix /opt/%{?vendeur:%{vendeur}/}%{name} %global __arch_install_post /bin/true +Name: %{?vendeur:%{vendeur}-}%{projname} %else %global move_to_opt 0 +Name: %{projname} %endif %global gh_commit 0ff88be3322a493773956028d4022d995f3cb193 @@ -28,16 +31,15 @@ %global upstream_version 1.1.0 #global upstream_prever beta3 -Name: %{libname}-awesome Summary: Client library and command line tools for memcached server Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 3%{?dist} +Release: 4%{?dist} License: BSD URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz -Patch0: %{name}-catch.patch -Patch1: %{name}-aes.patch +Patch0: %{projname}-catch.patch +Patch1: %{projname}-aes.patch %if 0%{?rhel} == 7 BuildRequires: cmake3 >= 3.9 @@ -68,7 +70,7 @@ Provides: %{libname}-libs%{?_isa} = %{version}-%{release} %description -%{name} is a C/C++ client library and tools for the memcached +%{projname} is a C/C++ client library and tools for the memcached server (https://memcached.org/). It has been designed to be light on memory usage, and provide full access to server side methods. @@ -108,7 +110,7 @@ Provides: %{libname}%{?_isa} = %{version}-%{release} %endif %description tools -This package contains the %{libname}-awesome command line tools: +This package contains the %{projname} command line tools: memaslap Load testing and benchmarking a server memcapable Checking a Memcached server capibilities and compatibility @@ -182,9 +184,9 @@ make %{?_smp_mflags} make install DESTDIR=%{buildroot} %endif -mv %{buildroot}%{_datadir}/%{name}/example.cnf support +mv %{buildroot}%{_datadir}/%{projname}/example.cnf support -rm -r %{buildroot}%{_datadir}/doc/%{name}/ +rm -r %{buildroot}%{_datadir}/doc/%{projname}/ %check @@ -251,7 +253,7 @@ make test %{_libdir}/libmemcachedprotocol.so %{_libdir}/libmemcachedutil.so %{_libdir}/pkgconfig/libmemcached.pc -%{_libdir}/cmake/%{name} +%{_libdir}/cmake/%{projname} %{_datadir}/aclocal/ax_libmemcached.m4 %{_mandir}/man3/libmemcached* %{_mandir}/man3/libhashkit* @@ -260,6 +262,9 @@ make test %changelog +* Tue Jul 13 2021 Remi Collet <remi@remirepo.net> - 1.1.0-4 +- rename to remi-libmemcached-awesome when relocated in /opt/remi (EL7, EL8) + * Tue Jul 13 2021 Remi Collet <remi@remirepo.net> - 1.1.0-3 - use upstream patch for libcrypto |