blob: e5102b4cf86d07de9f2398494c50938b75b1b9d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
Name: psmq
Version: @{VERSION}
Release: 1
Summary: publish subscribe ipc on top of message queue
Group: System Environment/Libraries
License: BSD
URL: https://psmq.bofc.pl
Source0: https://git.bofc.pl/psmq/snapshot/psmq-%{version}.tar.gz
Vendor: Bits of Code
Packager: Michał Łyszczek <michal.lyszczek@bofc.pl>
BuildRequires: embedlog >= 0.5.0, automake autoconf libtool
Requires: embedlog >= 0.5.0
%description
psmq is publish ssubscribe message queue. It's a set of programs and libraries
to implement publish/subscribe way of inter process communication on top of
POSIX message queue
%package devel
Summary: psmq development package
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
psmq development package containing headers and manuals
%prep
%setup -q -n psmq-@{GIT_VERSION}
# debug packge macro, it is commented by default as rhel and centos
# automatically build debug package, but open suse does not. Change it to
# "@debug_package" (just change that @ to percent %% character)
# when debug symbols are not automatically installed
# __DEBUG_PACKAGE__
%build
./autogen.sh
%configure
make %{?_smp_mflags}
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -f $RPM_BUILD_ROOT/usr/lib64/libpsmqd.a
[ "$RPM_BUILD_ROOT" != "/" ] && rm -f $RPM_BUILD_ROOT/usr/lib64/libpsmqd.la
[ "$RPM_BUILD_ROOT" != "/" ] && rm -f $RPM_BUILD_ROOT/usr/lib64/libpsmqd.so
[ "$RPM_BUILD_ROOT" != "/" ] && rm -f $RPM_BUILD_ROOT/usr/lib64/libpsmqd.so.0
[ "$RPM_BUILD_ROOT" != "/" ] && rm -f $RPM_BUILD_ROOT/usr/lib64/libpsmqd.so.0.1.1
[ "$RPM_BUILD_ROOT" != "/" ] && rm -f $RPM_BUILD_ROOT/usr/lib/libpsmqd.a
[ "$RPM_BUILD_ROOT" != "/" ] && rm -f $RPM_BUILD_ROOT/usr/lib/libpsmqd.la
[ "$RPM_BUILD_ROOT" != "/" ] && rm -f $RPM_BUILD_ROOT/usr/lib/libpsmqd.so
[ "$RPM_BUILD_ROOT" != "/" ] && rm -f $RPM_BUILD_ROOT/usr/lib/libpsmqd.so.0
[ "$RPM_BUILD_ROOT" != "/" ] && rm -f $RPM_BUILD_ROOT/usr/lib/libpsmqd.so.0.1.1
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE readme.md
%{_libdir}/libpsmq.so.@{ABI_VERSION}
%{_libdir}/libpsmq.so.@{LIB_VERSION}
%{_bindir}/*
%files devel
%defattr(-,root,root,-)
%{_includedir}/psmq.h
%{_libdir}/libpsmq.so
%{_libdir}/libpsmq.a
%{_libdir}/libpsmq.la
%{_mandir}/*/*
%changelog
|