Blame SPECS/esc.spec

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