diff --git a/.cvsignore b/.cvsignore index e69de29..8cf576a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1,2 @@ +esc-1.0.0.tar.bz2 +xulrunner-1.8.0.1-source.tar.bz2 diff --git a/esc b/esc new file mode 100755 index 0000000..0fcaf37 --- /dev/null +++ b/esc @@ -0,0 +1,5 @@ +#!/bin/sh +export NSPR_LOG_MODULES=tray:2,coolkey:2,netkey:2,coolKey:2 +export NSPR_LOG_FILE=~/.redhat/esc/esc.log +cd /usr/lib/esc-1.0.0 +./esc diff --git a/esc.desktop b/esc.desktop new file mode 100644 index 0000000..fedee49 --- /dev/null +++ b/esc.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=Smart Card Manager +Comment=Enterprise Security Client Smart Card Manager +Categories=System;Application;SystemSetup;X-Red-Hat-Base; +Exec=esc +Icon=esc.png diff --git a/esc.spec b/esc.spec new file mode 100644 index 0000000..858bb45 --- /dev/null +++ b/esc.spec @@ -0,0 +1,153 @@ +Name: esc +Version: 1.0.0 +Release: 1%{?dist} +Summary: Enterprise Security Client Smart Card Client +License: GPL +URL: http://directory.fedora.redhat.com/wiki/CoolKey +Group: Applications/Internet + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Patch1: firefox-1.5.0.1-dumpstack.patch +Patch2: xulrunner-1.8.0.1-coreconf.patch + +BuildRequires: doxygen fontconfig-devel freetype-devel >= 2.1 +BuildRequires: glib2-devel libIDL-devel atk-devel gtk2-devel libjpeg-devel +BuildRequires: pango-devel libpng-devel pkgconfig zlib-devel +BuildRequires: nspr-devel nss-devel +BuildRequires: autoconf213 libX11-devel libXt-devel + +BuildRequires: pcsc-lite-devel coolkey-devel +BuildRequires: desktop-file-utils zip binutils +Requires: pcsc-lite ifd-egate coolkey +Requires: gtk+ freetype zip nspr nss + +#%define __prelink_undo_cmd %{nil} +%define escname %{name}-%{version} +%define escdir %{_libdir}/%{escname} +%define escbindir %{_bindir} +%define esc_chromepath chrome/content/esc +%define appdir applications +%define icondir %{_datadir}/icons/hicolor/48x48/apps +%define esc_vendor esc +%define autostartdir %{_sysconfdir}/xdg/autostart +%define pixmapdir %{_datadir}/pixmaps +%define docdir %{_defaultdocdir}/%{escname} +%define escappdir src/app/xpcom + + +Source0: %{escname}.tar.bz2 +Source1: esc +Source2: esc.desktop +Source3: xulrunner-1.8.0.1-source.tar.bz2 + + +%description +Enterprise Security Client allows the user to enroll and manage their +cryptographic smartcards. + +%prep + +%setup -q -c -n %{escname} + +#Unpack xulrunner where esc expects it to be. + +%setup -T -D -a 3 -n %{escname}/esc/dist/src + +#Perform the patching of xulrunner + +cd mozilla + +%patch1 -p1 -b .fix1 +%patch2 -p1 -b .fix2 + + +%build + +%ifarch x86_64 ppc64 ia64 s390x +USE_64=1 +export USE_64 +%endif + +# last setup call moved the current directory + +cd ../.. + +make BUILD_OPT=1 + +%install + +cd ../../src/app/xpcom + +mkdir -p $RPM_BUILD_ROOT/%{escbindir} +mkdir -p $RPM_BUILD_ROOT/%{icondir} +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{appdir} +mkdir -p $RPM_BUILD_ROOT/%{autostartdir} +mkdir -p $RPM_BUILD_ROOT/%{pixmapdir} +mkdir -p $RPM_BUILD_ROOT/%{docdir} + +cp %{SOURCE1} $RPM_BUILD_ROOT/%{escbindir} +chmod 755 $RPM_BUILD_ROOT/%{escbindir}/esc + +mkdir -p $RPM_BUILD_ROOT/%{escdir} + +make BUILD_OPT=1 install DESTDIR=$RPM_BUILD_ROOT/%{escdir} + +rm -rf $RPM_BUILD_ROOT/%{escdir}/usr + +cd ../../../dist/*OPT*/esc_build/esc + +cp %{esc_chromepath}/esc.png $RPM_BUILD_ROOT/%{icondir} +ln -s $RPMBUILD_ROOT%{icondir}/esc.png $RPM_BUILD_ROOT/%{pixmapdir}/esc.png + +cp %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/%{appdir} +cp %{SOURCE2} $RPM_BUILD_ROOT/%{autostartdir} + +cd %{_builddir} +cp %{escname}/esc/LICENSE $RPM_BUILD_ROOT/%{docdir} + +%clean + +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) + +%{escdir}/esc +%{escbindir}/esc +%{escdir}/application.ini + +%{escdir}/chrome/chrome.manifest + +%{escdir}/chrome/content +%{escdir}/chrome/locale +%{escdir}/chrome/icons/default +%{escdir}/components + +%{escdir}/defaults/preferences/esc-prefs.js + +%{escdir}/xulrunner +%{icondir}/esc.png +%{pixmapdir}/esc.png +%{autostartdir}/esc.desktop +%{_datadir}/%{appdir}/esc.desktop +%doc %{docdir}/LICENSE + +%post +touch --no-create %{_datadir}/icons/hicolor || : +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + +%postun +touch --no-create %{_datadir}/icons/hicolor || : +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + +rm -rf %{escdir} + +%changelog +* Tue Jun 13 2006 Jack Magne - 1.0.0-1 +- Initial revision for fedora + diff --git a/sources b/sources index e69de29..955fbbb 100644 --- a/sources +++ b/sources @@ -0,0 +1,2 @@ +a344ae0baa8ec2f1e5d916c2df7f7d3c esc-1.0.0.tar.bz2 +d60ccb6cc28afa7d880c8602a2c88450 xulrunner-1.8.0.1-source.tar.bz2