Remove old $RPM_BUILD_ROOT variable, add the %license macro
This commit is contained in:
parent
e67474fe80
commit
529a475145
47
mutt.spec
47
mutt.spec
@ -12,6 +12,7 @@
|
|||||||
%bcond_with qdbm
|
%bcond_with qdbm
|
||||||
%bcond_with gdbm
|
%bcond_with gdbm
|
||||||
%bcond_without gpgme
|
%bcond_without gpgme
|
||||||
|
%bcond_with sidebar
|
||||||
|
|
||||||
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
||||||
|
|
||||||
@ -34,7 +35,7 @@ Patch3: mutt-1.7.0-syncdebug.patch
|
|||||||
# FIXME make it to upstream
|
# FIXME make it to upstream
|
||||||
Patch8: mutt-1.5.23-system_certs.patch
|
Patch8: mutt-1.5.23-system_certs.patch
|
||||||
Patch9: mutt-1.5.23-ssl_ciphers.patch
|
Patch9: mutt-1.5.23-ssl_ciphers.patch
|
||||||
Url: http://www.mutt.org/
|
Url: http://www.mutt.org
|
||||||
Requires: mailcap, urlview
|
Requires: mailcap, urlview
|
||||||
BuildRequires: ncurses-devel, gettext, automake
|
BuildRequires: ncurses-devel, gettext, automake
|
||||||
# manual generation
|
# manual generation
|
||||||
@ -129,7 +130,7 @@ rm -f mutt_ssl.c
|
|||||||
\
|
\
|
||||||
%{!?with_idn: --without-idn} \
|
%{!?with_idn: --without-idn} \
|
||||||
%{?with_gpgme: --enable-gpgme} \
|
%{?with_gpgme: --enable-gpgme} \
|
||||||
--enable-sidebar \
|
%{?with_sidebar: --enable-sidebar} \
|
||||||
--with-docdir=%{_pkgdocdir}
|
--with-docdir=%{_pkgdocdir}
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
@ -139,48 +140,50 @@ sed -i -r 's/<a id="id[a-z0-9]\+">/<a id="id">/g' doc/manual.html
|
|||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
# we like GPG here
|
# we like GPG here
|
||||||
cat contrib/gpg.rc >> \
|
cat contrib/gpg.rc >> \
|
||||||
$RPM_BUILD_ROOT%{_sysconfdir}/Muttrc
|
%{buildroot}%{_sysconfdir}/Muttrc
|
||||||
|
|
||||||
grep -5 "^color" contrib/sample.muttrc >> \
|
grep -5 "^color" contrib/sample.muttrc >> \
|
||||||
$RPM_BUILD_ROOT%{_sysconfdir}/Muttrc
|
%{buildroot}%{_sysconfdir}/Muttrc
|
||||||
|
|
||||||
cat >> $RPM_BUILD_ROOT%{_sysconfdir}/Muttrc <<\EOF
|
cat >> %{buildroot}%{_sysconfdir}/Muttrc <<\EOF
|
||||||
source %{_sysconfdir}/Muttrc.local
|
source %{_sysconfdir}/Muttrc.local
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo "# Local configuration for Mutt." > \
|
echo "# Local configuration for Mutt." > \
|
||||||
$RPM_BUILD_ROOT%{_sysconfdir}/Muttrc.local
|
%{buildroot}%{_sysconfdir}/Muttrc.local
|
||||||
|
|
||||||
# remove unpackaged files from the buildroot
|
# remove unpackaged files from the buildroot
|
||||||
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.dist
|
rm -f %{buildroot}%{_sysconfdir}/*.dist
|
||||||
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/mime.types
|
rm -f %{buildroot}%{_sysconfdir}/mime.types
|
||||||
# disable mutt_dotlock program - remove the compiled binary
|
# disable mutt_dotlock program - remove the compiled binary
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/mutt_dotlock
|
rm -f %{buildroot}%{_bindir}/mutt_dotlock
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/muttbug
|
rm -f %{buildroot}%{_bindir}/muttbug
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/flea
|
rm -f %{buildroot}%{_bindir}/flea
|
||||||
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/mutt_dotlock.1*
|
rm -f %{buildroot}%{_mandir}/man1/mutt_dotlock.1*
|
||||||
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/muttbug.1*
|
rm -f %{buildroot}%{_mandir}/man1/muttbug.1*
|
||||||
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/flea.1*
|
rm -f %{buildroot}%{_mandir}/man1/flea.1*
|
||||||
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/mbox.5*
|
rm -f %{buildroot}%{_mandir}/man5/mbox.5*
|
||||||
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/mmdf.5*
|
rm -f %{buildroot}%{_mandir}/man5/mmdf.5*
|
||||||
rm -rf $RPM_BUILD_ROOT%{_pkgdocdir}
|
rm -rf %{buildroot}%{_pkgdocdir}
|
||||||
|
|
||||||
# provide muttrc.local(5): the same as muttrc(5)
|
# provide muttrc.local(5): the same as muttrc(5)
|
||||||
ln -sf ./muttrc.5 $RPM_BUILD_ROOT%{_mandir}/man5/muttrc.local.5
|
ln -sf ./muttrc.5 %{buildroot}%{_mandir}/man5/muttrc.local.5
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%config(noreplace) %{_sysconfdir}/Muttrc
|
%{!?_licensedir:%global license %doc}
|
||||||
%config(noreplace) %{_sysconfdir}/Muttrc.local
|
%license COPYRIGHT GPL
|
||||||
%doc COPYRIGHT ChangeLog GPL NEWS README* UPDATING mutt_ldap_query
|
%doc ChangeLog NEWS README* UPDATING mutt_ldap_query
|
||||||
%doc contrib/*.rc contrib/sample.* contrib/colors.*
|
%doc contrib/*.rc contrib/sample.* contrib/colors.*
|
||||||
%doc doc/manual.html doc/manual.txt doc/smime-notes.txt
|
%doc doc/manual.html doc/manual.txt doc/smime-notes.txt
|
||||||
|
%config(noreplace) %{_sysconfdir}/Muttrc
|
||||||
|
%config(noreplace) %{_sysconfdir}/Muttrc.local
|
||||||
%{_bindir}/mutt
|
%{_bindir}/mutt
|
||||||
%{_bindir}/pgpring
|
%{_bindir}/pgpring
|
||||||
%{_bindir}/pgpewrap
|
%{_bindir}/pgpewrap
|
||||||
|
Loading…
Reference in New Issue
Block a user