Blame SPECS/esc.spec

f477a5
Name: esc 
f477a5
Version: 1.1.2
f477a5
Release: 13%{?dist}
f477a5
Summary: Enterprise Security Client Smart Card Client
f477a5
License: GPL+
f477a5
URL: http://directory.fedora.redhat.com/wiki/CoolKey 
f477a5
Group: Applications/Internet
f477a5
f477a5
#Fix to harden linker flags.
f477a5
Patch0: esc-gcc11.patch
f477a5
Patch1: esc-1.1.2-fix1.patch
f477a5
Patch2: esc-1.1.2-fix2.patch
f477a5
Patch3: esc-1.1.2-fix3.patch
f477a5
Patch4: esc-1.1.2-fix4.patch
f477a5
Patch5: esc-1.1.2-fix5.patch
f477a5
Patch6: esc-1.1.2-fix6.patch
f477a5
Patch7: esc-1.1.2-fix7.patch
f477a5
Patch8: esc-1.1.2-fix8.patch
f477a5
Patch9: esc-1.1.2-fix9.patch
f477a5
Patch10: esc-1.1.2-fix10.patch
f477a5
Patch11: esc-1.1.2-fix11.patch
f477a5
Patch12: esc-1.1.2-fix12.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
f477a5
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
f477a5
f477a5
f477a5
Requires: pcsc-lite >=  1.9.1-3
f477a5
Requires: pcsc-lite-ccid >= 1.4.34-4
f477a5
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
f477a5
%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
f477a5
#patch esc 
f477a5
%patch0 -p1
f477a5
%patch1 -p1 -b .fix1
f477a5
%patch2 -p1 -b .fix2
f477a5
%patch3 -p1 -b .fix3
f477a5
%patch4 -p1 -b .fix4
f477a5
%patch5 -p1 -b .fix5
f477a5
%patch6 -p1 -b .fix6
f477a5
%patch7 -p1 -b .fix7
f477a5
%patch8 -p1 -b .fix8
f477a5
%patch9 -p1 -b .fix9
f477a5
%patch10 -p1 -b .fix10
f477a5
%patch11 -p1 -b .fix11
f477a5
%patch12 -p1 -b .fix12
f477a5
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
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}
f477a5
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
f477a5
f477a5
%files
f477a5
%{!?_licensedir:%global license %%doc}
f477a5
%license %{docdir}/LICENSE
f477a5
f477a5
%{escbindir}/esc
f477a5
%{escdir}/lib
f477a5
%{escdir}/esc.js
f477a5
%{escdir}/esc.properties
f477a5
%{escdir}/operationDialog.js
f477a5
%{escdir}/phoneHome.js
f477a5
%{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
f477a5
* Thu Sep 23 2021 Jack Magne <jmagne@redhat.com> - 1.1.2-13
f477a5
- Related: rhbz#1993390 - ESC does not detect smart cards and crashes upon launch
f477a5
- Gating issues.
f477a5
* Tue Sep 14 2021 Jack Magne <jmagne@redhat.com> - 1.1.2-12
f477a5
- Resolves: rhbz#1993390 - ESC does not detect smart cards and crashes upon launch
f477a5
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.2-11
f477a5
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
f477a5
-
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
f477a5
-
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.
f477a5
-
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
f477a5
-
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
f477a5
-
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
f477a5
-
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
f477a5
-
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
f477a5
-
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