forked from steve-o/openpgm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openpgm.spec.in
112 lines (95 loc) · 3.07 KB
/
openpgm.spec.in
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
Name: openpgm
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
Summary: An implementation of the PGM reliable multicast protocol.
Group: System Environment/Libraries
License: LGPL 2.1 license
URL: http://code.google.com/p/openpgm/
Source: http://openpgm.googlecode.com/files/%{name}-%{version}.tar.gz
Prefix: %{_prefix}
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: python, perl
%description
OpenPGM is an open source implementation of the
Pragmatic General Multicast (PGM) specification in RFC 3208
available at www.ietf.org.
%package devel
Summary: Development files and static library for the OpenPGM library
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%ifos aix5.2 || %ifos aix5.3 || %ifos aix6.1 || %ifos aix7.1
Requires: pkg-config
%else
Requires: pkgconfig
%endif
%description devel
OpenPGM is an open source implementation of the
Pragmatic General Multicast (PGM) specification in RFC 3208
available at www.ietf.org.
This package contains OpenPGM related development libraries and header files.
%prep
%setup -q
%build
%configure
%{__make} %{?_smp_mflags}
%install
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
# Install the package to build area
%makeinstall
%post
%ifos linux
/sbin/ldconfig
%endif
%postun
%ifos linux
/sbin/ldconfig
%endif
%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
# libraries
%ifos aix5.2 || %ifos aix5.3 || %ifos aix6.1 || %ifos aix7.1
%{_libdir}/libpgm.a
%{_libdir}/libpgm-@RELEASE_INFO@.a
%else
%{_libdir}/libpgm-@RELEASE_INFO@.so.0
%{_libdir}/libpgm-@RELEASE_INFO@.so.0.0.@VERSION_MICRO@
%endif
%files devel
%defattr(-,root,root,-)
%{_includedir}/pgm-@RELEASE_INFO@/pgm/atomic.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/engine.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/error.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/gsi.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/if.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/in.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/list.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/macros.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/mem.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/messages.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/msgv.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/packet.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/pgm.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/skbuff.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/socket.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/time.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/tsi.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/types.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/version.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/winint.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/wininttypes.h
%{_includedir}/pgm-@RELEASE_INFO@/pgm/zinttypes.h
%ifos aix5.2 || %ifos aix5.3 || %ifos aix6.1 || %ifos aix7.1
%{_libdir}/libpgm.la
%else
%{_libdir}/libpgm.a
%{_libdir}/libpgm.la
%{_libdir}/libpgm.so
%endif
%{_libdir}/pkgconfig/openpgm-@RELEASE_INFO@.pc
%changelog
* Thu Sep 12 2013 Jim Hague <jim.hague@acm.org>
- Adapting for AIX
* Fri Apr 8 2011 Mikko Koppanen <mikko@kuut.io> 5.1.116-1
- Initial packaging