Changeset 31

Show
Ignore:
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
  • trunk/debian/control

    r30 r31  
    22Priority: optional 
    33Maintainer: J. Tang <jtang@tresys.com> 
    4 Build-Depends: cdbs, debhelper (>= 5), sun-java6-jdk 
     4Build-Depends: cdbs, debhelper (>= 5), gcc, sun-java6-jdk 
    55Standards-Version: 3.7.2 
    66Section: libs 
  • trunk/libsipc.spec

    r29 r31  
    33License: GPLv2 
    44BuildRoot: %{_tmppath}/libsipc-%{version} 
    5 Release: 0 
     5Release: 1 
    66Source: libsipc.tar.gz 
    7 Summary: Secure IPC Library 
     7Summary: Secure Inter-Process Library 
    88Group: Development/Libraries 
    99BuildRequires: jdk >= 1.5 glibc-devel gcc 
    10 Requires: jre >= 1.5 
    1110 
    1211%description 
     
    2120%define JFLAGS -target 1.5 
    2221 
     22%package java 
     23Summary: Secure Inter-Process Library (Java bindings) 
     24Group: Development/Languages 
     25Requires: jre >= 1.5 libsipc = %{version}-%{release} 
     26 
     27%description java 
     28The Secure Inter-Process Communications Library uses the best 
     29combination of traditional Linux IPC mechanisms to ensure a one way 
     30information flow that can then be locked down with Security Enhanced 
     31Linux (SELinux) policy.  SELinux provides the mandatory access control 
     32(MAC) mechanisms used to support and ensure secure communication 
     33between processes, as is shown with the SIPC library. 
     34 
     35This package provides bindings to the SIPC library via Java. 
     36 
     37%package devel 
     38Summary: Secure Inter-Process Library (development headers) 
     39Group: Development/Libraries 
     40Requires: libsipc = %{version}-%{release} 
     41 
     42%description devel 
     43The Secure Inter-Process Communications Library uses the best 
     44combination of traditional Linux IPC mechanisms to ensure a one way 
     45information flow that can then be locked down with Security Enhanced 
     46Linux (SELinux) policy.  SELinux provides the mandatory access control 
     47(MAC) mechanisms used to support and ensure secure communication 
     48between processes, as is shown with the SIPC library. 
     49 
     50This package provides C header files. 
     51 
    2352%prep 
    2453%setup -q -n libsipc 
     
    2958%install 
    3059rm -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 
     60make DESTDIR=${RPM_BUILD_ROOT} PREFIX='/usr' ENABLE_JAVA=1 install 
     61# on RedHat systems, shared libraries are installed as executable 
     62chmod 755 ${RPM_BUILD_ROOT}/usr/lib/* 
    3763 
    3864%clean 
     
    4369%doc LICENSE bindings/java/README 
    4470%{_libdir}/libsipc.so.* 
    45 %{_includedir}/sipc/ 
    46 %{_mandir}/man3/* 
     71 
     72%files java 
    4773# The following regexp captures both the library and its symlink; 
    4874# this is needed because Java will dynamically load libsipcwrapper.so, 
     
    5278%{_datadir}/sipc/bindings/java/ 
    5379 
     80%files devel 
     81%{_includedir}/sipc/ 
     82%{_libdir}/libsipc.so 
     83%{_mandir}/man3/* 
     84 
    5485%post 
    5586/sbin/ldconfig 
     
    5889/sbin/ldconfig 
    5990 
     91%post java 
     92/sbin/ldconfig 
     93 
     94%postun java 
     95/sbin/ldconfig 
     96 
    6097%changelog 
     98* Wed May 14 2008 Jason Tang <selinux@tresys.com> 1.0-1 
     99- Split Java bindings from main package. 
     100 
    61101* Tue Apr 29 2008 Jason Tang <selinux@tresys.com> 1.0-0 
    62102- Initial release.