Blame SPECS/esc.spec

9b58a7
Name: esc 
9b58a7
Version: 1.1.2
16234f
Release: 11%{?dist}
9b58a7
Summary: Enterprise Security Client Smart Card Client
9b58a7
License: GPL+
9b58a7
URL: http://directory.fedora.redhat.com/wiki/CoolKey 
9b58a7
Group: Applications/Internet
9b58a7
9b58a7
#Fix to harden linker flags.
9b58a7
Patch1: esc-1.1.2-fix1.patch
9b58a7
Patch2: esc-1.1.2-fix2.patch
9b58a7
Patch3: esc-1.1.2-fix3.patch
9b58a7
Patch4: esc-1.1.2-fix4.patch
16234f
Patch5: esc-1.1.2-fix5.patch
16234f
Patch6: esc-1.1.2-fix6.patch
9b58a7
9b58a7
9b58a7
#BuildRequires: doxygen fontconfig-devel
9b58a7
BuildRequires: glib2-devel atk-devel
9b58a7
BuildRequires: pkgconfig
9b58a7
BuildRequires: nspr-devel nss-devel nss-static
9b58a7
#BuildRequires: libX11-devel libXt-devel
9b58a7
9b58a7
BuildRequires: pcsc-lite-devel
9b58a7
BuildRequires: desktop-file-utils
9b58a7
BuildRequires: pkgconfig(gconf-2.0)
9b58a7
BuildRequires: dbus-glib-devel
9b58a7
BuildRequires: glib2-devel
9b58a7
BuildRequires: opensc
9b58a7
BuildRequires: gobject-introspection-devel
9b58a7
BuildRequires: gtk3-devel
9b58a7
BuildRequires: gjs-devel
9b58a7
9b58a7
9b58a7
Requires: pcsc-lite nss nspr
9b58a7
Requires: dbus
9b58a7
Requires: opensc
9b58a7
Requires: gjs
9b58a7
Requires: gobject-introspection
9b58a7
Requires: gtk3
9b58a7
Requires: glib2
9b58a7
9b58a7
AutoReqProv: 0
9b58a7
9b58a7
%define debug_build       0
9b58a7
9b58a7
%define escname %{name}-%{version}
9b58a7
%define escdir %{_libdir}/%{escname}
9b58a7
%define escbindir %{_bindir}
9b58a7
%define esc_chromepath   chrome/content/esc
9b58a7
%define appdir applications
9b58a7
%define icondir %{_datadir}/icons/hicolor/48x48/apps
9b58a7
%define esc_vendor esc 
9b58a7
%define autostartdir %{_sysconfdir}/xdg/autostart
9b58a7
%define pixmapdir  %{_datadir}/pixmaps
9b58a7
%define docdir    %{_defaultdocdir}/%{name}
9b58a7
9b58a7
Source0: http://pki.fedoraproject.org/pki/sources/%name/%{escname}.tar.bz2 
9b58a7
Source1: http://pki.fedoraproject.org/pki/sources/%name/esc
9b58a7
Source2: http://pki.fedoraproject.org/pki/sources/%name/esc.desktop
9b58a7
Source3: http://pki.fedoraproject.org/pki/sources/%name/esc.png
9b58a7
9b58a7
9b58a7
%description
9b58a7
Enterprise Security Client allows the user to enroll and manage their
9b58a7
cryptographic smartcards.
9b58a7
9b58a7
%prep
9b58a7
9b58a7
%setup -q -c -n %{escname}
9b58a7
9b58a7
#patch esc 
9b58a7
9b58a7
%patch1 -p1 -b .fix1
9b58a7
%patch2 -p1 -b .fix2
9b58a7
%patch3 -p1 -b .fix3
9b58a7
%patch4 -p1 -b .fix4
16234f
%patch5 -p1 -b .fix5
16234f
%patch6 -p1 -b .fix6
9b58a7
9b58a7
9b58a7
%build
9b58a7
9b58a7
echo $RPM_BUILD_DIR
9b58a7
9b58a7
echo "build section" $PWD
9b58a7
cd esc 
9b58a7
9b58a7
./autogen.sh
9b58a7
make 
9b58a7
%install
9b58a7
9b58a7
echo "install section" $PWD
9b58a7
cd esc
9b58a7
make DESTDIR=$RPM_BUILD_ROOT install
9b58a7
9b58a7
mkdir -p $RPM_BUILD_ROOT/%{escbindir}
9b58a7
mkdir -p $RPM_BUILD_ROOT/%{icondir}
9b58a7
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{appdir}
9b58a7
mkdir -p $RPM_BUILD_ROOT/%{pixmapdir}
9b58a7
mkdir -p $RPM_BUILD_ROOT/%{docdir}
9b58a7
9b58a7
echo "dir: "  $RPM_BUILD_ROOT/%{escbindir}/%{name}
9b58a7
sed -e 's;\$LIBDIR;'%{_libdir}';g' -e 's;\$VERSION;'%{version}';g'  %{SOURCE1} > $RPM_BUILD_ROOT/%{escbindir}/%{name}
9b58a7
chmod 755 $RPM_BUILD_ROOT/%{escbindir}/%{name}
9b58a7
9b58a7
mkdir -p $RPM_BUILD_ROOT/%{escdir}
9b58a7
mkdir -p $RPM_BUILD_ROOT/%{escdir}/lib
9b58a7
9b58a7
cp $RPM_BUILD_ROOT/usr/local/bin/* $RPM_BUILD_ROOT/%{escdir}
9b58a7
9b58a7
cp -rf $RPM_BUILD_ROOT/usr/local/lib $RPM_BUILD_ROOT/%{escdir}
9b58a7
9b58a7
rm $RPM_BUILD_ROOT/%{escdir}/lib/*.a
9b58a7
rm $RPM_BUILD_ROOT/%{escdir}/lib/*.la
9b58a7
9b58a7
9b58a7
rm -rf $RPM_BUILD_ROOT/usr/local
9b58a7
9b58a7
cp %{SOURCE3} $RPM_BUILD_ROOT/%{icondir}
9b58a7
ln -s $RPMBUILD_ROOT%{icondir}/esc.png $RPM_BUILD_ROOT/%{pixmapdir}/esc.png
9b58a7
9b58a7
cp %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/%{appdir}
9b58a7
9b58a7
cd %{_builddir}
9b58a7
cp %{escname}/esc/LICENSE $RPM_BUILD_ROOT/%{docdir}
9b58a7
9b58a7
9b58a7
%files
9b58a7
%{!?_licensedir:%global license %%doc}
9b58a7
%license %{docdir}/LICENSE
9b58a7
9b58a7
%{escbindir}/esc
9b58a7
%{escdir}/lib
9b58a7
%{escdir}/esc.js
9b58a7
%{escdir}/esc.properties
9b58a7
%{escdir}/operationDialog.js
9b58a7
%{escdir}/phoneHome.js
9b58a7
%{escdir}/pinDialog.js
9b58a7
%{escdir}/opensc.esc.conf
9b58a7
9b58a7
9b58a7
%{icondir}/esc.png
9b58a7
%{pixmapdir}/esc.png
9b58a7
%{_datadir}/%{appdir}/esc.desktop
9b58a7
9b58a7
%changelog
16234f
* Wed Nov 13 2019 Jack Magne <jmagne@redhat.com> - 1.1.2-11
16234f
- Resolves: rhbz#1724787 - ESC - HTTP GET Requests incorrectly Being Sent To TPS for Token Operations [8.2] 
16234f
- Resolves: rhbz#1734117 - ESC does not detect/recognize both clean and formatted (with phone home) smart cards
16234f
- Resolves: rhbz#1733645 - Gemalto, CAC, SCP01 cards are not detected by HP keyboard KUS1206 with builtin smartcard reader
16234f
* Fri Jun 14 2019 Jack Magne <jmagne@redhat.com> - 1.1.2-10
16234f
- Resolves: rhbz#1679659 - esc changes blocked until gating tests are added.
16234f
- Added notification list in yaml file, so entities are notified of changes.
16234f
* Thu Apr 25 2019 Jack Magne <jmagne@redhat.com> - 1.1.2-9
16234f
- Resolves:  rhbz#1679659 - esc changes blocked until gating tests are added
16234f
- Fixed the gating test string to adhere to format.
16234f
* Mon Apr 15 2019 Jack Magne <jmagne@redhat.com> - 1.1.2-8
16234f
- Resolves:  rhbz#1679659 - esc changes blocked until gating tests are added
9b58a7
* Fri Feb 01 2019 Jack Magne <jmagne@redhat.com> - 1.1.2-7
9b58a7
- #Related: Bug 1596915 - Remove XULRunner from ESC. Minor launch 
9b58a7
- script fix.
9b58a7
* Thu Jan 10 2019 Jack Magne <jmagne@redhat.com> - 1.1.2-6
9b58a7
- #Resolve: Bug 1638011 - esc docdir should not be versioned in rhel8.
9b58a7
- #Resolve: Bug 1596915 - Remove XULRunner from ESC. 
9b58a7
* Fri Oct 12 2018 Jack Magne <jmagne@redhat.com> - 1.1.2-4
9b58a7
- #Resolve: Bug 1633238 - ESC crashes when smartcard is detected.
9b58a7
* Mon Oct 08 2018 Jack Magne <jmagne@redhat.com> - 1.1.2-4
9b58a7
- #Resolve: Bug 1630560 - Review annocheck distro flag failures in esc.
9b58a7
* Wed Aug 22 2018 Jack Magne <jmagne@redhat.com> - 1.1.2-3
9b58a7
- Remove remaining arch exclusions.
9b58a7
* Wed Aug 01 2018 Jack Magne <jmagne@redhat.com> - 1.1.2-1
9b58a7
- Remove uneeded Requires and no longer put in autostart directory.
9b58a7
* Mon Jul 30 2018 Jack Magne <jmagne@redhat.com> - 1.1.2-1
9b58a7
- Build bare bones esc, without xulrunner, using gjs / gobject 
9b58a7
- introspection.
9b58a7
* Thu Jun 07 2018 Jack Magne <jmagne@redhat.com> - 1.1.1-5
9b58a7
- Rebuild.
9b58a7
* Mon Apr 23 2018 Jack Magne <jmagne@redhat.com> - 1.1.1-4 
9b58a7
- Remove coolkey dependencies, replace with opensc.
9b58a7
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
9b58a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9b58a7
9b58a7
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.1-2
9b58a7
- Remove obsolete scriptlets
9b58a7
9b58a7
* Mon Aug 07 2017 - 1.1.1-1
9b58a7
- Rebuilt using internally built xulrunner, due to the xulrunner package going away.
9b58a7
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-32
9b58a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9b58a7
9b58a7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-31
9b58a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9b58a7
9b58a7
* Sun May  8 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.0-30
9b58a7
- Secondary arch fixes
9b58a7
- Use %%license
9b58a7
9b58a7
* Mon Feb 08 2016 Jack Magne <jmagne@redhat.com> 1.1.0-29
9b58a7
- Apease latest xullrunner api changes.
9b58a7
9b58a7
* Thu Apr 09 2015 Jack Magne <jmagne@redhat.com> 1.1.0-27
9b58a7
- More xulrunner adjustments.
9b58a7
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-26
9b58a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9b58a7
9b58a7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-25
9b58a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9b58a7
9b58a7
* Wed Apr 23 2014 Jack Magne <jmagne@redhat.com>=1.1.0-24
9b58a7
- Fix minor http client error.
9b58a7
* Thu Apr 17 2014 Jack Maghe <jmagne@redhat.com>=1.1.0-23
9b58a7
- Appease more xulrunner changes.
9b58a7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-23
9b58a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9b58a7
9b58a7
* Sun Jul  7 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.1.0-22
9b58a7
- Make buildable with kernels > 3.5.
9b58a7
- %%changelog syntax and bogus date fixes.
9b58a7
- Bump xulrunner version to 22.0.
9b58a7
9b58a7
* Mon Jun 17 2013 Jack Magne <jmagne@redhat.com>- 1.1.0-21
9b58a7
- Appease latest compiler errors and build to xulrunner 21.0.
9b58a7
* Wed Nov 28 2012 Jack Magne <jmagne@redhat.com>- 1.1.0-20
9b58a7
- Gecko no longer supports UniversalXPConnect, remove it.
9b58a7
* Wed Nov 21 2012 Jack Magne <jmagne@redhat.com>- 1.1.0-19
9b58a7
- Pick up latest fixes.
9b58a7
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-18
9b58a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9b58a7
9b58a7
* Fri Jun 22 2012   Jack Magne <jmagne@redhat.com>- 1.1.0-17
9b58a7
- Related #688361 - Get ESC to run on Gecko 2.0, again.
9b58a7
* Thu May 10 2012   Jack Magne <jmagne@redhat.com>- 1.1.0-16
9b58a7
- Related #688361 - Get ESC to run on Gecko 2.0.
9b58a7
* Mon Feb 20 2012   Jack Magne <jmagne@redhat.com>- 1.1.0-15
9b58a7
- Related #688361 - Get ESC to run on Gecko 2.0.
9b58a7
* Tue Nov 29 2011   Jack Magne <jmagne@redhat.com>- 1.1.0-14
9b58a7
- Related #688361 - Get ESC to run on Gecko 2.0.
9b58a7
* Thu Apr 15 2010   Jack Magne <jmagne@redhat.com>- 1.1.0-11
9b58a7
- Adjust for new linking rules.
9b58a7
* Tue Sep 15 2009   Jack Magne <jmagne@redhat.com>- 1.1.0-10
9b58a7
- Pick up latest improvements.
9b58a7
* Mon Jun 22 2009  Jack Magne <jmagne@redhat.com>- 1.1.0-9
9b58a7
- Related: #496410, also IPV6 support.
9b58a7
* Fri Jun 19 2009  Jack Magne <jmagne@redhat.com>- 1.1.0-8
9b58a7
- Related: #496410, SSL Conn fix.
9b58a7
* Mon Jun 8  2009  Jack Magne <jmagne@redhat.com>- 1.1.0-7
9b58a7
- Releated: #496410.
9b58a7
* Thu Apr 23 2009  Jack Magne <jmagne@redhat.com>- 1.1.0-6
9b58a7
- Related: #496410. Appease rpmdiff.
9b58a7
* Wed Apr 22 2009  Jack Magne <jmagne@redhat.com>- 1.1.0-5
9b58a7
- Related: #496410, addresses 494981, better error message.
9b58a7
* Wed Apr 22 2009  Jack Magne <jmagne@redhat.com>- 1.1.0-4
9b58a7
- Move to latest rebased code. Related #496410.
9b58a7
* Thu Dec 04 2008  Jack Magne <jmagne@redhat.com>- 1.0.0-39
9b58a7
- Resolves #469202 - Cert Viewer issue              
9b58a7
* Tue Nov 11 2008  Jack Magne <jmagne@redhat.com>- 1.0.0-38
9b58a7
- Resolves  #471923 - ESC Connection issue.
9b58a7
* Thu Oct 16 2008  Jack Magne <jmagne@redhat.com>- 1.0.0-37
9b58a7
- Resolves #467126 - Blank authentication dialog problem. 
9b58a7
* Fri Sep 26 2008  Jack Magne <jmagne@redhat.com>- 1.0.0-36
9b58a7
- Related #200475 - Require the xulrunner package, Resolves #248493
9b58a7
* Thu Sep 18 2008  Jack Magne <jmagne@redhat.com>- 1.0.0-35
9b58a7
- Related 200475, make rpmdiff tests happy.
9b58a7
* Tue Sep 16 2008  Jack Magne <jmagne@redhat.com>- 1.0.0-34
9b58a7
- Resolves #200475 #253081 #437238
9b58a7
* Thu Jan 10 2008  Jack Magne <jmagne@redhat.com>- 1.0.0-33
9b58a7
- Resolves #25324a8 #253268
9b58a7
* Thu Jul 12 2007  Jack Magne <jmagne@redhat.com>- 1.0.0-32
9b58a7
- Resolves #248071 - ESC RPM unistall failure if daemon not running.
9b58a7
* Fri Jun 22 2007  Jack Magne <jmagne@redhat.com>- 1.0.0-31
9b58a7
- Related #208038 - Top things to put in diagnostics log
9b58a7
* Wed Jun 20 2007  Jack Magne <jmagne@redhat.com>- 1.0.0-30
9b58a7
- Related #204021
9b58a7
* Fri Jun 8 2007   Jack Magne <jmagne@redhat.com>- 1.0-0-29
9b58a7
- Related #212010
9b58a7
* Fri Jun 8 2007   Jack Magne <jmagne@redhat.com>- 1.0.0-28
9b58a7
- Resolves #212010 
9b58a7
* Tue Jun 5 2007   Jack Magne <jmagne@redhat.com>- 1.0.0-27 
9b58a7
- Resolves #203466 Better error message strings.
9b58a7
* Mon May 21 2007  Jack Magne <jmagne@redhat.com>- 1.0.0-26
9b58a7
- Related: #206783 Fix the launcher script to work with new logging.
9b58a7
* Fri May 11 2007  Jack Magne <jmagne@redhat.com>- 1.0.0-25
9b58a7
- Resolves: #206783.
9b58a7
* Mon Apr 23 2007 Jack Magne <jmagne@redhat.com>- 1.0.0-24
9b58a7
- More Desktop appearance fixes.
9b58a7
- Related: #208749
9b58a7
* Mon Apr 23 2007  Jack Magne <jmagne@redhat.com>- 1.0.0-23
9b58a7
- Desktop appearance fixes.
9b58a7
- Related: #208749
9b58a7
* Thu Apr 19 2007 Jack Magne <jmagne@redhat.com>- 1.0.0-22
9b58a7
- Second drop of 5.1 fixes.
9b58a7
- Resolves: #203934, #203935, #204959, #206780, #206792, #207721
9b58a7
- Resolves: #207816, #206791
9b58a7
- Related:  #208749
9b58a7
* Wed Apr 18 2007 Jack Magne <jmagne@redhat.com>- 1.0.0-21
9b58a7
- First 5.1 fixes.
9b58a7
- Resolves: #203757, #203806, #204661, #205856, #206788, #206791
9b58a7
- Resolves: #208037, #208333, #210589, #210590, #213912, #226913
9b58a7
- Resolves: #204021, #205498, #224436
9b58a7
* Tue Nov 28 2006 Jack Magne <jmagne@redhat.com>- 1.0.0-20
9b58a7
- fix for bug to commit config changes immediately.  Bug #210988
9b58a7
* Wed Nov 15 2006 Jack Magne <jmagne@redhat.com>- 1.0.0-19
9b58a7
-fix for escd double free problem. Bug #209882
9b58a7
* Tue Oct 24 2006 Jack Magne <jmagne@redhat.com>- 1.0.0-18
9b58a7
-rebuilt on RHEL-5 branch
9b58a7
* Wed Oct 4  2006 Jack Magne <jmagne@redhat.com>- 1.0.0-17
9b58a7
- Diagnostics display fixes, Mac and Window fixes.
9b58a7
9b58a7
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 1.0.0-16
9b58a7
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
9b58a7
9b58a7
* Fri Sep 22 2006 Jack Magne <jmagne@redhat.com>- 1.0.0-15
9b58a7
- Fix to the build version
9b58a7
9b58a7
* Fri Sep 22 2006 Jack Magne <jmagne@redhat.com>= 1.0.0-14
9b58a7
- Fix to compile error in daemon
9b58a7
9b58a7
* Fri Sep 22 2006 Jack Magne <jmagne@redhat.com>- 1.0.0-13
9b58a7
- Fix to include the new esc daemon.  
9b58a7
9b58a7
* Sat Sep 16 2006 Jack Magne <jmagne@redhat.com>- 1.0.0-12
9b58a7
- Fix for Password Reset and minor UI revision.
9b58a7
9b58a7
* Fri Sep 15 2006 Jack Magne <jmagne@redhat.com>- 1.0.0-11
9b58a7
- Further UI enhancement bug fixes
9b58a7
9b58a7
* Thu Sep 7 2006 Jack Magne <jmagne@redhat.com>- 1.0.0-10
9b58a7
- Further strings revisions.
9b58a7
9b58a7
* Wed Aug 30 2006 Jack Magne <jmagne@redhat.com>-  1.0.0-9
9b58a7
- Revision of the strings used in ESC.
9b58a7
9b58a7
* Wed Aug 30 2006 Jack Magne <jmagne@redhat.com>-  1.0.0-8
9b58a7
- Fixes to get libnotify working properly on FC6 systems.
9b58a7
9b58a7
* Tue Aug 22 2006 Jack Magne <jmagne@redhat.com> - 1.0.0-7
9b58a7
- Fix for bug #203211, use of system NSS and NSPR for
9b58a7
- Xulrunner ,addressing the problem running on 64 bit.
9b58a7
- Overwriting 5 and 6 due to important bug #203211.
9b58a7
9b58a7
* Fri Aug  18 2006 Jack Magne <jmagne@redhat.com> - 1.0.0-6
9b58a7
- Correct problem with Patch #6
9b58a7
9b58a7
* Fri Aug  18 2006 Jack Magne <jmagne@redhat.com> - 1.0.0-5
9b58a7
- Build ESC's xulrunner component using system nss and nspr
9b58a7
- Build process creates run script based on {_libdir} variable,
9b58a7
  accounting for differences on 64 bit machines.
9b58a7
- UI enhancements
9b58a7
9b58a7
* Tue Aug  1 2006 Matthias Clasen <mclasen@redhat.com> - 1.0.0-4
9b58a7
- Don't auto-generate requires either
9b58a7
9b58a7
* Mon Jul 31 2006 Matthias Clasen <mclasen@redhat.com> - 1.0.0-3
9b58a7
- Don't provide mozilla libraries
9b58a7
9b58a7
* Fri Jul 28 2006 Ray Strode <rstrode@redhat.com> - 1.0.0-2
9b58a7
- remove bogus gtk+ requires (and some others that will
9b58a7
  be automatic)
9b58a7
9b58a7
* Tue Jun 13 2006 Jack Magne <jmagne@redhat.com> - 1.0.0-1
9b58a7
- Initial revision for fedora
9b58a7