Secondary arch fixes, Use %%license

This commit is contained in:
Peter Robinson 2016-05-08 12:23:30 +01:00
parent 61e6bb68f9
commit 662e4a437a

View File

@ -1,13 +1,11 @@
Name: esc
Version: 1.1.0
Release: 29%{?dist}
Release: 30%{?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)
#Fix to build against XUlrunner SDK.
Patch1: esc-1.1.0-fix1.patch
#Fix to the smart card handling thread
@ -127,7 +125,7 @@ GECKO_BIN_PATH=%{_libdir}/xulrunner
GECKO_INCLUDE_PATH=%{_includedir}/xulrunner-%{geckoversion}
GECKO_IDL_PATH=/usr/share/idl/xulrunner-%{geckoversion}
%ifarch x86_64 ppc64 ia64
%ifarch x86_64 %{power64} ia64 aarch64
USE_64=1
export USE_64
%endif
@ -166,7 +164,7 @@ chmod 755 $RPM_BUILD_ROOT/%{escbindir}/esc
mkdir -p $RPM_BUILD_ROOT/%{escdir}
%ifarch x86_64 ppc64 ia64
%ifarch x86_64 %{power64} ia64 aarch64
USE_64=1
export USE_64
%endif
@ -198,12 +196,10 @@ chmod 755 -R $RPM_BUILD_ROOT/%{escdir}/defaults
chmod 755 $RPM_BUILD_ROOT/%{escdir}/application.ini
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license %{docdir}/LICENSE
%{escdir}/esc
%{escdir}/escd
@ -225,7 +221,6 @@ rm -rf $RPM_BUILD_ROOT
%{pixmapdir}/esc.png
%{autostartdir}/esc.desktop
%{_datadir}/%{appdir}/esc.desktop
%doc %{docdir}/LICENSE
%post
touch --no-create %{_datadir}/icons/hicolor || :
@ -245,10 +240,14 @@ if [ -x %{_bindir}/gtk-update-icon-cache ]; then
fi
%changelog
* Mon Feb 08 2016 Jack Magne <jmagne@redhat.com>=1.1.0-29
* Sun May 8 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.0-30
- Secondary arch fixes
- Use %%license
* Mon Feb 08 2016 Jack Magne <jmagne@redhat.com> 1.1.0-29
- Apease latest xullrunner api changes.
* Thu Apr 09 2015 Jack Magne <jmagne@redhat.com>=1.1.0-27
* Thu Apr 09 2015 Jack Magne <jmagne@redhat.com> 1.1.0-27
- More xulrunner adjustments.
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild