summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-02-15 08:58:24 +0100
committerRemi Collet <remi@remirepo.net>2018-02-15 08:58:24 +0100
commit4a0876360144856e6566b1d64c224769bab91645 (patch)
tree7158c925af15c02c930c87b59e6bd3727fa85d81
parent13e1b21c0aa380674aac16bf5ce7a2d8a9582f1b (diff)
drop ldconfig scriptlets for F28
-rw-r--r--librabbitmq.spec27
1 files changed, 4 insertions, 23 deletions
diff --git a/librabbitmq.spec b/librabbitmq.spec
index 0afb816..6b80039 100644
--- a/librabbitmq.spec
+++ b/librabbitmq.spec
@@ -3,7 +3,7 @@
#
# Fedora spec file for librabbitmq
#
-# Copyright (c) 2012-2017 Remi Collet
+# Copyright (c) 2012-2018 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -28,19 +28,12 @@ Summary: Client library for AMQP
Version: 0.8.0
Release: 1%{?dist}
License: MIT
-Group: System Environment/Libraries
URL: https://github.com/alanxz/rabbitmq-c
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-%if 0%{?rhel} == 5
-BuildRequires: cmake28
-BuildRequires: popt
-%else
BuildRequires: cmake > 2.8
BuildRequires: popt-devel
-%endif
BuildRequires: openssl-devel
# For man page
BuildRequires: xmlto
@@ -60,7 +53,6 @@ This package is designed to be installed beside system %{libname}.
%package devel
Summary: Header files and development libraries for %{name}
-Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%if "%{name}" != %{libname}
Conflicts: %{libname}-devel < %{version}
@@ -76,7 +68,6 @@ for %{name}.
%package tools
Summary: Example tools built using the librabbitmq package
-Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}
%if "%{name}" != %{libname}
Conflicts: %{libname}-tools < %{version}
@@ -105,11 +96,7 @@ cp -pr examples Examples
%build
# static lib required for tests
-%if 0%{?rhel} == 5
-%cmake28 \
-%else
%cmake \
-%endif
-DBUILD_TOOLS_DOCS:BOOL=ON \
-DBUILD_STATIC_LIBS:BOOL=ON
@@ -130,24 +117,19 @@ grep @ %{buildroot}%{_libdir}/pkgconfig/librabbitmq.pc && exit 1
make test
-%clean
-rm -rf %{buildroot}
-
-
-%post -p /sbin/ldconfig
-
+%if 0%{?fedora} < 28 && 0%{?rhel} < 8
+%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
+%endif
%files
-%defattr (-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE-MIT
%{_libdir}/%{libname}.so.%{soname}*
%files devel
-%defattr (-,root,root,-)
%doc AUTHORS THANKS TODO *.md
%doc Examples
%{_libdir}/%{libname}.so
@@ -155,7 +137,6 @@ rm -rf %{buildroot}
%{_libdir}/pkgconfig/%{libname}.pc
%files tools
-%defattr (-,root,root,-)
%{_bindir}/amqp-*
%doc %{_mandir}/man1/amqp-*.1*
%doc %{_mandir}/man7/librabbitmq-tools.7*