Changeset 31
- Timestamp:
- 05/14/08 16:17:31
(7 months ago)
- Author:
- jtang
- Message:
Updated RPM spec file so as to generate library, devel, and Java packages.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r30 |
r31 |
|
| 2 | 2 | Priority: optional |
|---|
| 3 | 3 | Maintainer: J. Tang <jtang@tresys.com> |
|---|
| 4 | | Build-Depends: cdbs, debhelper (>= 5), sun-java6-jdk |
|---|
| | 4 | Build-Depends: cdbs, debhelper (>= 5), gcc, sun-java6-jdk |
|---|
| 5 | 5 | Standards-Version: 3.7.2 |
|---|
| 6 | 6 | Section: libs |
|---|
| r29 |
r31 |
|
| 3 | 3 | License: GPLv2 |
|---|
| 4 | 4 | BuildRoot: %{_tmppath}/libsipc-%{version} |
|---|
| 5 | | Release: 0 |
|---|
| | 5 | Release: 1 |
|---|
| 6 | 6 | Source: libsipc.tar.gz |
|---|
| 7 | | Summary: Secure IPC Library |
|---|
| | 7 | Summary: Secure Inter-Process Library |
|---|
| 8 | 8 | Group: Development/Libraries |
|---|
| 9 | 9 | BuildRequires: jdk >= 1.5 glibc-devel gcc |
|---|
| 10 | | Requires: jre >= 1.5 |
|---|
| 11 | 10 | |
|---|
| 12 | 11 | %description |
|---|
| … | … | |
| 21 | 20 | %define JFLAGS -target 1.5 |
|---|
| 22 | 21 | |
|---|
| | 22 | %package java |
|---|
| | 23 | Summary: Secure Inter-Process Library (Java bindings) |
|---|
| | 24 | Group: Development/Languages |
|---|
| | 25 | Requires: jre >= 1.5 libsipc = %{version}-%{release} |
|---|
| | 26 | |
|---|
| | 27 | %description java |
|---|
| | 28 | The Secure Inter-Process Communications Library uses the best |
|---|
| | 29 | combination of traditional Linux IPC mechanisms to ensure a one way |
|---|
| | 30 | information flow that can then be locked down with Security Enhanced |
|---|
| | 31 | Linux (SELinux) policy. SELinux provides the mandatory access control |
|---|
| | 32 | (MAC) mechanisms used to support and ensure secure communication |
|---|
| | 33 | between processes, as is shown with the SIPC library. |
|---|
| | 34 | |
|---|
| | 35 | This package provides bindings to the SIPC library via Java. |
|---|
| | 36 | |
|---|
| | 37 | %package devel |
|---|
| | 38 | Summary: Secure Inter-Process Library (development headers) |
|---|
| | 39 | Group: Development/Libraries |
|---|
| | 40 | Requires: libsipc = %{version}-%{release} |
|---|
| | 41 | |
|---|
| | 42 | %description devel |
|---|
| | 43 | The Secure Inter-Process Communications Library uses the best |
|---|
| | 44 | combination of traditional Linux IPC mechanisms to ensure a one way |
|---|
| | 45 | information flow that can then be locked down with Security Enhanced |
|---|
| | 46 | Linux (SELinux) policy. SELinux provides the mandatory access control |
|---|
| | 47 | (MAC) mechanisms used to support and ensure secure communication |
|---|
| | 48 | between processes, as is shown with the SIPC library. |
|---|
| | 49 | |
|---|
| | 50 | This package provides C header files. |
|---|
| | 51 | |
|---|
| 23 | 52 | %prep |
|---|
| 24 | 53 | %setup -q -n libsipc |
|---|
| … | … | |
| 29 | 58 | %install |
|---|
| 30 | 59 | rm -rf ${RPM_BUILD_ROOT} |
|---|
| 31 | | make DESTDIR=${RPM_BUILD_ROOT} PREFIX='$(DESTDIR)/usr' LIBDIR=${RPM_BUILD_ROOT}%{_libdir} ENABLE_JAVA=1 install |
|---|
| 32 | | # fix symlink so that it doesn't point into BuildRoot |
|---|
| 33 | | ln -sf ../sipc/bindings/java/libsipc.jar ${RPM_BUILD_ROOT}/usr/share/java/libsipc.jar |
|---|
| 34 | | # Normally, the library's symlink goes into a devel package, but because |
|---|
| 35 | | # there is no libsipc-devel, just remove it. |
|---|
| 36 | | rm ${RPM_BUILD_ROOT}/%{_libdir}/libsipc.so |
|---|
| | 60 | make DESTDIR=${RPM_BUILD_ROOT} PREFIX='/usr' ENABLE_JAVA=1 install |
|---|
| | 61 | # on RedHat systems, shared libraries are installed as executable |
|---|
| | 62 | chmod 755 ${RPM_BUILD_ROOT}/usr/lib/* |
|---|
| 37 | 63 | |
|---|
| 38 | 64 | %clean |
|---|
| … | … | |
| 43 | 69 | %doc LICENSE bindings/java/README |
|---|
| 44 | 70 | %{_libdir}/libsipc.so.* |
|---|
| 45 | | %{_includedir}/sipc/ |
|---|
| 46 | | %{_mandir}/man3/* |
|---|
| | 71 | |
|---|
| | 72 | %files java |
|---|
| 47 | 73 | # The following regexp captures both the library and its symlink; |
|---|
| 48 | 74 | # this is needed because Java will dynamically load libsipcwrapper.so, |
|---|
| … | … | |
| 52 | 78 | %{_datadir}/sipc/bindings/java/ |
|---|
| 53 | 79 | |
|---|
| | 80 | %files devel |
|---|
| | 81 | %{_includedir}/sipc/ |
|---|
| | 82 | %{_libdir}/libsipc.so |
|---|
| | 83 | %{_mandir}/man3/* |
|---|
| | 84 | |
|---|
| 54 | 85 | %post |
|---|
| 55 | 86 | /sbin/ldconfig |
|---|
| … | … | |
| 58 | 89 | /sbin/ldconfig |
|---|
| 59 | 90 | |
|---|
| | 91 | %post java |
|---|
| | 92 | /sbin/ldconfig |
|---|
| | 93 | |
|---|
| | 94 | %postun java |
|---|
| | 95 | /sbin/ldconfig |
|---|
| | 96 | |
|---|
| 60 | 97 | %changelog |
|---|
| | 98 | * Wed May 14 2008 Jason Tang <selinux@tresys.com> 1.0-1 |
|---|
| | 99 | - Split Java bindings from main package. |
|---|
| | 100 | |
|---|
| 61 | 101 | * Tue Apr 29 2008 Jason Tang <selinux@tresys.com> 1.0-0 |
|---|
| 62 | 102 | - Initial release. |
|---|
Download in other formats:
* Generating other formats may take time.