rpms/eclipse-setools/devel eclipse-setools.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

David Sugar (dsugar) fedora-extras-commits at redhat.com
Wed Dec 5 13:22:10 UTC 2007


Author: dsugar

Update of /cvs/pkgs/rpms/eclipse-setools/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18585/devel

Modified Files:
	.cvsignore sources 
Added Files:
	eclipse-setools.spec 
Log Message:
Added source and spec



--- NEW FILE eclipse-setools.spec ---
Exclusiveos:linux

%define require_setools_major_ver	3.3
%define require_setools_fix_ver		.2
#BuildRequires: perl(XML::XPath)
BuildRequires: eclipse-pde
BuildRequires: ant >= 1.6
BuildRequires: jpackage-utils >= 0:1.5
BuildRequires: java-gcj-compat >= 1.0.33
BuildRequires: setools-libs-java >= %{require_setools_major_ver}%{require_setools_fix_ver}

%define eclipse_name		eclipse
%define eclipse_base		%{_datadir}/%{eclipse_name}
%define eclipse_lib_base	%{_libdir}/%{eclipse_name}
%define svnbase			http://oss.tresys.com/repos/slide/trunk/

Summary: Eclipse plugin wrapper for SETools Java policy analysis tools for SELinux
Name: eclipse-setools
Group: System Environment/Base
Vendor: Tresys Technology, LLC
License: LGPLv2+
URL: http://oss.tresys.com/projects/setools
Version: 3.3.2

# mkdir eclipse-setools
# cd eclipse-setools
# svn export http://oss.tresys.com/repos/slide/trunk/setools-plugin setools-plugin
# svn export http://oss.tresys.com/repos/slide/trunk/setools-feature setools-feature
# svn export http://oss.tresys.com/repos/slide/trunk/setools.linux.x86 setools.linux.x86
# svn export http://oss.tresys.com/repos/slide/trunk/setools.linux.x86_64 setools.linux.x86_64
# svn export http://oss.tresys.com/repos/slide/trunk/setools.linux.ppc setools.linux.ppc
# svn export http://oss.tresys.com/repos/slide/trunk/setools.linux.ppc64 setools.linux.ppc64
# tar -czf eclipse-setools.tar.gz *
#Source0: %{name}.tar.gz 
#Release: 0%{?dist}.2.svn1998

Source0: http://oss.tresys.com/projects/slide/chrome/site/src/%{name}-%{version}.tar.gz
Release: 1%{?dist}
%ifarch i386
%define arch	x86
%else
%define arch %{_arch}
%endif

Requires: setools-libs-java >= %{require_setools_major_ver}%{require_setools_fix_ver}
Requires: eclipse-platform
Requires: java-gcj-compat >= 1.0.33

BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
# Files under %%_libdir are either text files or symlinks to the libraries
# in setools-libs-java, so debuginfo rpm is useless.
%define debug_package %{nil}

%description
Eclipse SETools is an eclipse plugin exposing the java interfaces for SELinux
policy analysis tools for use in eclipse plugins.
The package inclues java runtime libraries for the following:

 libapol		policy analysis library
 libpoldiff		semantic policy difference library
 libqpol		library tha abstracts policy internals
 libseaudit		parse and filer SELinux audit messages in log files

%prep
%setup -q -c -n eclipse-setools

%build
#cd ${RPM_BUILD_DIR}%{plugin_dir}
cd setools-plugin
ant -f rpmbuild.xml build

%install
PLUGIN_VER=`grep Bundle-Version setools-plugin/META-INF/MANIFEST.MF | cut -d : -f 2 | tr -d " "`
FRAGMENT_VER=`grep Bundle-Version setools.%{_os}.%{arch}/META-INF/MANIFEST.MF | cut -d : -f 2 | tr -d " "`

FEATURE_DIR=%{eclipse_base}/features/com.tresys.setools_%{version}
PLUGIN_DIR=%{eclipse_base}/plugins/com.tresys.setools_${PLUGIN_VER}
FRAGMENT_DIR=%{eclipse_lib_base}/plugins/com.tresys.setools.%{_os}.%{arch}_${FRAGMENT_VER}
FRAGMENT_SRC=eclipse-setools/setools.%{_os}.%{arch}

rm -rf ${RPM_BUILD_ROOT}
install -dp -m755 ${RPM_BUILD_ROOT}${PLUGIN_DIR}
install -dp -m755 ${RPM_BUILD_ROOT}${FEATURE_DIR}
install -dp -m755 ${RPM_BUILD_ROOT}${FRAGMENT_DIR}

install -dp -m755 ${RPM_BUILD_ROOT}${PLUGIN_DIR}/META-INF
#ln -s /usr/share/setools-3.3 ${RPM_BUILD_ROOT}/${PLUGIN_DIR}/setools
ln -s ../../../setools-%{require_setools_major_ver} ${RPM_BUILD_ROOT}/${PLUGIN_DIR}/setools

install -dp -m755 ${RPM_BUILD_ROOT}${FRAGMENT_DIR}/lib
install -dp -m755 ${RPM_BUILD_ROOT}${FRAGMENT_DIR}/META-INF

install -p -m644 ${RPM_BUILD_DIR}/eclipse-setools/setools-plugin/setools.jar ${RPM_BUILD_ROOT}${PLUGIN_DIR}
install -p -m644 ${RPM_BUILD_DIR}/eclipse-setools/setools-plugin/build.properties ${RPM_BUILD_ROOT}${PLUGIN_DIR}
install -p -m644 ${RPM_BUILD_DIR}/eclipse-setools/setools-plugin/plugin.properties ${RPM_BUILD_ROOT}${PLUGIN_DIR}
install -p -m644 ${RPM_BUILD_DIR}/eclipse-setools/setools-plugin/about.html ${RPM_BUILD_ROOT}${PLUGIN_DIR}
install -p -m644 ${RPM_BUILD_DIR}/eclipse-setools/setools-plugin/META-INF/MANIFEST.MF ${RPM_BUILD_ROOT}${PLUGIN_DIR}/META-INF

install -p -m644 ${RPM_BUILD_DIR}/${FRAGMENT_SRC}/build.properties ${RPM_BUILD_ROOT}${FRAGMENT_DIR}
install -p -m644 ${RPM_BUILD_DIR}/${FRAGMENT_SRC}/META-INF/MANIFEST.MF ${RPM_BUILD_ROOT}${FRAGMENT_DIR}/META-INF
#cp -pd ${RPM_BUILD_DIR}/${FRAGMENT_SRC}/lib/* ${RPM_BUILD_ROOT}${FRAGMENT_DIR}/lib
ln -s ../../../../libjapol.so.4 ${RPM_BUILD_ROOT}${FRAGMENT_DIR}/lib/libjapol.so
ln -s ../../../../libjpoldiff.so.1 ${RPM_BUILD_ROOT}${FRAGMENT_DIR}/lib/libjpoldiff.so
ln -s ../../../../libjqpol.so.1 ${RPM_BUILD_ROOT}${FRAGMENT_DIR}/lib/libjqpol.so
ln -s ../../../../libjseaudit.so.4 ${RPM_BUILD_ROOT}${FRAGMENT_DIR}/lib/libjseaudit.so

install -p -m644 ${RPM_BUILD_DIR}/eclipse-setools/setools-feature/feature.xml ${RPM_BUILD_ROOT}${FEATURE_DIR}

%clean
rm -rf ${RPM_BUILD_ROOT}

%post
if [ -x %{_bindir}/rebuild-gcj-db ] 
then
	%{_bindir}/rebuild-gcj-db
fi

%postun
if [ -x %{_bindir}/rebuild-gcj-db ] 
then
	%{_bindir}/rebuild-gcj-db 
fi

%files
%defattr(-,root,root,-)
%{eclipse_base}/plugins/com.tresys.setools*/
%{eclipse_base}/features/com.tresys.setools*/
%{eclipse_lib_base}/plugins/com.tresys.setools*/

%changelog
* Fri Nov 30 2007 Dave Sugar <dsugar at tresys.com> - 3.3.2-0.2.svn1998
- correct version because this is still pre-release

* Fri Nov 30 2007 Dave Sugar <dsugar at tresys.com> - 3.3.2-1
- don't build debug info - not useful here
- update license

* Wed Nov 28 2007 Dave Sugar <dsugar at tresys.com> - 3.3.2-1
- update dependency for SETools 3.3.2
- keep timestamps when copying
- remove perl XPath dependency, no longer needed, major version is now in SPEC.
- simplify file entries
- remove exclusive building on x86/x86_64, might work on ppc, but I can't test
- install files about.html and plugin.properties

* Fri Nov 23 2007 Dave Sugar <dsugar at tresys.com> - 3.3.0-4
- move the fragments into the %%{_libdir} for LSB compliance

* Tue Nov 20 2007 Dave Sugar <dsugar at tresys.com> - 3.3.0-3
- fixed incorrect path to imported SETools jar files

* Wed Nov 11 2007 Dave Sugar <dsugar at tresys.com> - 3.3.0-2
- ok, needed to move version into the SPEC - put major version
	in spec and pull other versions from source during install

* Thu Oct 11 2007 Dave Sugar <dsugar at tresys.com> - 3.3.0
- Include src in tar

* Tue Aug 21 2007 Dave Sugar <dsugar at tresys.com> - 3.3.0
- Public release 


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/eclipse-setools/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	4 Dec 2007 19:56:48 -0000	1.1
+++ .cvsignore	5 Dec 2007 13:21:37 -0000	1.2
@@ -0,0 +1 @@
+eclipse-setools-3.3.2.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/eclipse-setools/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	4 Dec 2007 19:56:48 -0000	1.1
+++ sources	5 Dec 2007 13:21:38 -0000	1.2
@@ -0,0 +1 @@
+45b48e01505ad6fbfacb30c62587ee56  eclipse-setools-3.3.2.tar.gz




More information about the fedora-extras-commits mailing list