ca265e
Name: esc 
ca265e
Version: 1.1.2
b97243
Release: 16%{?dist}
ca265e
Summary: Enterprise Security Client Smart Card Client
ca265e
License: GPL+
ca265e
URL: http://directory.fedora.redhat.com/wiki/CoolKey 
ca265e
Group: Applications/Internet
ca265e
ca265e
#Fix to harden linker flags.
ca265e
Patch0: esc-gcc11.patch
ca265e
Patch1: esc-1.1.2-fix1.patch
ca265e
Patch2: esc-1.1.2-fix2.patch
ca265e
Patch3: esc-1.1.2-fix3.patch
ca265e
Patch4: esc-1.1.2-fix4.patch
ca265e
Patch5: esc-1.1.2-fix5.patch
ca265e
Patch6: esc-1.1.2-fix6.patch
ca265e
Patch7: esc-1.1.2-fix7.patch
ca265e
Patch8: esc-1.1.2-fix8.patch
ca265e
Patch9: esc-1.1.2-fix9.patch
ca265e
Patch10: esc-1.1.2-fix10.patch
ca265e
Patch11: esc-1.1.2-fix11.patch
ca265e
Patch12: esc-1.1.2-fix12.patch
b97243
Patch13: esc-1.1.2-fix13.patch
ca265e
ca265e
ca265e
#BuildRequires: doxygen fontconfig-devel
ca265e
BuildRequires: glib2-devel atk-devel
ca265e
BuildRequires: pkgconfig
ca265e
BuildRequires: nspr-devel nss-devel nss-static
ca265e
#BuildRequires: libX11-devel libXt-devel
ca265e
ca265e
BuildRequires: pcsc-lite-devel
ca265e
BuildRequires: desktop-file-utils
ca265e
BuildRequires: gcc-c++
ca265e
%if ! 0%{?rhel} >= 9
ca265e
BuildRequires: pkgconfig(gconf-2.0)
ca265e
%endif
ca265e
BuildRequires: dbus-glib-devel
ca265e
BuildRequires: glib2-devel
ca265e
BuildRequires: opensc
ca265e
BuildRequires: gobject-introspection-devel
ca265e
BuildRequires: gtk3-devel
ca265e
BuildRequires: gjs-devel
ca265e
BuildRequires: chrpath
ca265e
ca265e
ca265e
Requires: pcsc-lite >=  1.9.1-3
ca265e
Requires: pcsc-lite-ccid >= 1.4.34-4
ca265e
Requires: nss nspr
ca265e
Requires: dbus
ca265e
Requires: opensc
ca265e
Requires: gjs
ca265e
Requires: gobject-introspection
ca265e
Requires: gtk3
ca265e
Requires: glib2
ca265e
ca265e
AutoReqProv: 0
ca265e
ca265e
%define debug_build       0
ca265e
ca265e
%define escname %{name}-%{version}
ca265e
%define escdir %{_libdir}/%{escname}
ca265e
%define escbindir %{_bindir}
ca265e
%define esc_chromepath   chrome/content/esc
ca265e
%define appdir applications
ca265e
%define icondir %{_datadir}/icons/hicolor/48x48/apps
ca265e
%define esc_vendor esc 
ca265e
%define autostartdir %{_sysconfdir}/xdg/autostart
ca265e
%define pixmapdir  %{_datadir}/pixmaps
ca265e
%define docdir    %{_defaultdocdir}/%{name}
ca265e
ca265e
Source0: http://pki.fedoraproject.org/pki/sources/%name/%{escname}.tar.bz2 
ca265e
Source1: http://pki.fedoraproject.org/pki/sources/%name/esc
ca265e
Source2: http://pki.fedoraproject.org/pki/sources/%name/esc.desktop
ca265e
Source3: http://pki.fedoraproject.org/pki/sources/%name/esc.png
ca265e
ca265e
ca265e
%description
ca265e
Enterprise Security Client allows the user to enroll and manage their
ca265e
cryptographic smartcards.
ca265e
ca265e
%prep
ca265e
ca265e
%setup -q -c -n %{escname}
ca265e
ca265e
#patch esc 
ca265e
%patch0 -p1
ca265e
%patch1 -p1 -b .fix1
ca265e
%patch2 -p1 -b .fix2
ca265e
%patch3 -p1 -b .fix3
ca265e
%patch4 -p1 -b .fix4
ca265e
%patch5 -p1 -b .fix5
ca265e
%patch6 -p1 -b .fix6
ca265e
%patch7 -p1 -b .fix7
ca265e
%patch8 -p1 -b .fix8
ca265e
%patch9 -p1 -b .fix9
ca265e
%patch10 -p1 -b .fix10
ca265e
%patch11 -p1 -b .fix11
ca265e
%patch12 -p1 -b .fix12
b97243
%patch13 -p1 -b .fix13
ca265e
ca265e
ca265e
%build
ca265e
ca265e
echo $RPM_BUILD_DIR
ca265e
ca265e
echo "build section" $PWD
ca265e
cd esc 
ca265e
ca265e
./autogen.sh
ca265e
make 
ca265e
%install
ca265e
echo "install section" $PWD
ca265e
cd esc
ca265e
make DESTDIR=$RPM_BUILD_ROOT install
ca265e
ca265e
mkdir -p $RPM_BUILD_ROOT/%{escbindir}
ca265e
mkdir -p $RPM_BUILD_ROOT/%{icondir}
ca265e
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{appdir}
ca265e
mkdir -p $RPM_BUILD_ROOT/%{pixmapdir}
ca265e
mkdir -p $RPM_BUILD_ROOT/%{docdir}
ca265e
ca265e
echo "dir: "  $RPM_BUILD_ROOT/%{escbindir}/%{name}
ca265e
sed -e 's;\$LIBDIR;'%{_libdir}';g' -e 's;\$VERSION;'%{version}';g'  %{SOURCE1} > $RPM_BUILD_ROOT/%{escbindir}/%{name}
ca265e
chmod 755 $RPM_BUILD_ROOT/%{escbindir}/%{name}
ca265e
ca265e
mkdir -p $RPM_BUILD_ROOT/%{escdir}
ca265e
mkdir -p $RPM_BUILD_ROOT/%{escdir}/lib
ca265e
ca265e
cp $RPM_BUILD_ROOT/usr/local/bin/* $RPM_BUILD_ROOT/%{escdir}
ca265e
ca265e
cp -rf $RPM_BUILD_ROOT/usr/local/lib $RPM_BUILD_ROOT/%{escdir}
ca265e
ca265e
rm $RPM_BUILD_ROOT/%{escdir}/lib/*.a
ca265e
rm $RPM_BUILD_ROOT/%{escdir}/lib/*.la
ca265e
ca265e
ca265e
rm -rf $RPM_BUILD_ROOT/usr/local
ca265e
ca265e
cp %{SOURCE3} $RPM_BUILD_ROOT/%{icondir}
ca265e
ln -s $RPMBUILD_ROOT%{icondir}/esc.png $RPM_BUILD_ROOT/%{pixmapdir}/esc.png
ca265e
ca265e
cp %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/%{appdir}
ca265e
ca265e
cd %{_builddir}
ca265e
cp %{escname}/esc/LICENSE $RPM_BUILD_ROOT/%{docdir}
ca265e
ca265e
#Get rid of rpath
ca265e
chrpath --delete $RPM_BUILD_ROOT/%{escdir}/lib/libcoolkeymgr-1.0.so
ca265e
ca265e
ca265e
%files
ca265e
%{!?_licensedir:%global license %%doc}
ca265e
%license %{docdir}/LICENSE
ca265e
ca265e
%{escbindir}/esc
ca265e
%{escdir}/lib
ca265e
%{escdir}/esc.js
ca265e
%{escdir}/esc.properties
ca265e
%{escdir}/operationDialog.js
ca265e
%{escdir}/phoneHome.js
ca265e
%{escdir}/pinDialog.js
ca265e
%{escdir}/opensc.esc.conf
ca265e
ca265e
ca265e
%{icondir}/esc.png
ca265e
%{pixmapdir}/esc.png
ca265e
%{_datadir}/%{appdir}/esc.desktop
ca265e
ca265e
%changelog
b97243
* Wed Jun 29 2022 Jack Magne <jmagne@redhat.com> - 1.1.2-16
b97243
Resolves: rhbs #2050849
b97243
- Bug 2050849 - Volkswagen Siemens CardOS M4.4 and 5.0 cards display incorrect status in ESC [RHEL 9.1]
ca265e
* Thu Dec 16 2021 Jack Magne <jmagne@redhat.com> - 1.1.2-15
ca265e
Resolves: rhbs #2007544,2000928,2000929
ca265e
- Appease rpminspect
ca265e
* Tue Dec 13 2021 Jack Magne <jmagne@redhat.com> - 1.1.2-14
ca265e
Resolves: rhbs #2007544,2000928,2000929
ca265e
- Bugzilla Bug  2007544 - The esc provides outdated configuration for opensc
ca265e
- Bugzilla Bug  2000928 - ESC does not detect smart cards and crashes upon launch [rhel-9.0.0]
ca265e
- Bugzilla Bug  2000929 - [RHEL-9][AppStream] esc present in comps but missing from repository [rhel-9.0.0] 
ca265e
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.2-11
ca265e
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
ca265e
-
ca265e
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.2-10
ca265e
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
ca265e
-
ca265e
* Tue Jan 26 2021 Tomas Popela <tpopela@redhat.com> - 1.1.2-9
ca265e
- Don't enable GConf2 on RHEL 9 as it won't be available there.
ca265e
-
ca265e
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-8
ca265e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
ca265e
-
ca265e
* Tue Jul 28 2020 Jeff Law <law@redhat.com> - 1.1.2-7
ca265e
- Force C++14 as this code is not C++17 ready
ca265e
- Fix sprintf format issue
ca265e
- Fix ordered comparison of a pointer against zero issue
ca265e
-
ca265e
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-6
ca265e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ca265e
-
ca265e
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-5
ca265e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
ca265e
-
ca265e
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-4
ca265e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ca265e
-
ca265e
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-3
ca265e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild