root/trunk/libsipc.spec

Revision 51, 3.3 kB (checked in by jtang, 5 months ago)

Fixed all Java unit tests to work correctly.
Update RPM and Debian build files.

Line 
1 Name: libsipc
2 Version: 1.2
3 License: GPLv2
4 BuildRoot: %{_tmppath}/libsipc-%{version}
5 Release: 0
6 Source: libsipc.tar.gz
7 Summary: Secure Inter-Process Library
8 Group: Development/Libraries
9 BuildRequires: jdk >= 1.5 glibc-devel gcc
10
11 %description
12 The Secure Inter-Process Communications Library uses the best
13 combination of traditional Linux IPC mechanisms to ensure a one way
14 information flow that can then be locked down with Security Enhanced
15 Linux (SELinux) policy.  SELinux provides the mandatory access control
16 (MAC) mechanisms used to support and ensure secure communication
17 between processes, as is shown with the SIPC library.
18
19 %define JAVA_HOME /usr/java/default
20 %define JFLAGS -target 1.5
21
22 %package java
23 Summary: Secure Inter-Process Library (Java bindings)
24 Group: Development/Languages
25 BuildRequires: swig >= 1.3.28
26 Requires: jre >= 1.5 libsipc = %{version}-%{release}
27
28 %description java
29 The Secure Inter-Process Communications Library uses the best
30 combination of traditional Linux IPC mechanisms to ensure a one way
31 information flow that can then be locked down with Security Enhanced
32 Linux (SELinux) policy.  SELinux provides the mandatory access control
33 (MAC) mechanisms used to support and ensure secure communication
34 between processes, as is shown with the SIPC library.
35
36 This package provides bindings to the SIPC library via Java.
37
38 %package devel
39 Summary: Secure Inter-Process Library (development headers)
40 Group: Development/Libraries
41 Requires: libsipc = %{version}-%{release}
42
43 %description devel
44 The Secure Inter-Process Communications Library uses the best
45 combination of traditional Linux IPC mechanisms to ensure a one way
46 information flow that can then be locked down with Security Enhanced
47 Linux (SELinux) policy.  SELinux provides the mandatory access control
48 (MAC) mechanisms used to support and ensure secure communication
49 between processes, as is shown with the SIPC library.
50
51 This package provides C header files.
52
53 %prep
54 %setup -q -n libsipc
55
56 %build
57 make %{?_smp_mflags} JAVA_HOME="%{JAVA_HOME}" JFLAGS="%{JFLAGS}" ENABLE_JAVA=1
58
59 %install
60 rm -rf ${RPM_BUILD_ROOT}
61 make DESTDIR=${RPM_BUILD_ROOT} PREFIX='/usr' LIBDIR=%{_libdir} ENABLE_JAVA=1 install
62 # on RedHat systems, shared libraries are installed as executable
63 chmod 755 ${RPM_BUILD_ROOT}/%{_libdir}/*
64
65 %clean
66 rm -rf ${RPM_BUILD_ROOT}
67
68 %files
69 %defattr(-,root,root,-)
70 %doc LICENSE bindings/java/README
71 %{_libdir}/libsipc.so.*
72
73 %files java
74 # The following regexp captures both the library and its symlink;
75 # this is needed because Java will dynamically load libsipcwrapper.so,
76 # not its full soname.
77 %{_libdir}/libsipcwrapper.so*
78 %{_datadir}/java/*
79 %{_datadir}/sipc/bindings/java/
80
81 %files devel
82 %{_includedir}/sipc/
83 %{_libdir}/libsipc.so
84 %{_mandir}/man3/*
85
86 %post
87 /sbin/ldconfig
88
89 %postun
90 /sbin/ldconfig
91
92 %post java
93 /sbin/ldconfig
94
95 %postun java
96 /sbin/ldconfig
97
98 %changelog
99 * Tue Jul 01 2008 Jason Tang <selinux@tresys.com> 1.2-0
100 - Added sipc_ioctl() function; rewrote Java SWIG bindings.
101
102 * Tue Jun 24 2008 Jason Tang <selinux@tresys.com> 1.1-1
103 - Set install library install location to %{_libdir}, for 64-bit systems.
104
105 * Wed Jun 04 2008 Jason Tang <selinux@tresys.com> 1.1-0
106 - Fixed buffer size calculations.
107
108 * Wed May 14 2008 Jason Tang <selinux@tresys.com> 1.0-1
109 - Split Java bindings from main package.
110
111 * Tue Apr 29 2008 Jason Tang <selinux@tresys.com> 1.0-0
112 - Initial release.
Note: See TracBrowser for help on using the browser.