- fc5+: use /etc/kde/(env|shutdown) for scripts (#175744)

This commit is contained in:
Rex Dieter 2006-02-16 19:50:31 +00:00
parent 42dc6dc6a3
commit 15116a9e48

View File

@ -4,10 +4,19 @@
# it can use other implementations too (including non-pcsc ones). # it can use other implementations too (including non-pcsc ones).
%define pcsc_lib libpcsclite.so.0 %define pcsc_lib libpcsclite.so.0
# Keep an eye on http://bugzilla.redhat.com/bugzilla/175744, in case these dirs go away or change
%if "%{?fedora}" > "4"
%define kde_scriptdir %{_sysconfdir}/kde
%else
%define kde_scriptdir %{_prefix}
%define own_scriptdir 1
%endif
Summary: Utility for secure communication and data storage Summary: Utility for secure communication and data storage
Name: gnupg2 Name: gnupg2
Version: 1.9.20 Version: 1.9.20
Release: 1%{?dist}.1 Release: 2%{?dist}
License: GPL License: GPL
Group: Applications/System Group: Applications/System
@ -105,10 +114,9 @@ rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
# enable auto-startup/shutdown of gpg-agent # enable auto-startup/shutdown of gpg-agent
# Keep an eye on http://bugzilla.redhat.com/bugzilla/175744, in case these dirs go away or change mkdir -p $RPM_BUILD_ROOT%{kde_scriptdir}/{env,shutdown}
mkdir -p $RPM_BUILD_ROOT%{_prefix}/{env,shutdown} install -p -m0755 %{SOURCE10} $RPM_BUILD_ROOT%{kde_scriptdir}/env/
install -p -m0755 %{SOURCE10} $RPM_BUILD_ROOT%{_prefix}/env/ install -p -m0755 %{SOURCE11} $RPM_BUILD_ROOT%{kde_scriptdir}/shutdown/
install -p -m0755 %{SOURCE11} $RPM_BUILD_ROOT%{_prefix}/shutdown/
%find_lang %{name} %find_lang %{name}
@ -146,9 +154,13 @@ fi
%{_libdir}/gnupg/ %{_libdir}/gnupg/
%{_libexecdir}/* %{_libexecdir}/*
%{_infodir}/* %{_infodir}/*
# Own dirs until someone else does (filesystem,kdebase?) %if "%{?own_scriptdir}" == "1"
%{_prefix}/env/ %{kde_scriptdir}/env/
%{_prefix}/shutdown/ %{kde_scriptdir}/shutdown/
%else
%{kde_scriptdir}/env/*.sh
%{kde_scriptdir}/shutdown/*.sh
%endif
%clean %clean
@ -156,6 +168,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Thu Feb 16 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.9.20-2
- fc5+: use /etc/kde/(env|shutdown) for scripts (#175744)
* Fri Feb 10 2006 Rex Dieter <rexdieter[AT]users.sf.net> * Fri Feb 10 2006 Rex Dieter <rexdieter[AT]users.sf.net>
- fc5: gcc/glibc respin - fc5: gcc/glibc respin