Blame maildir-utils.spec

877de4
Name:           maildir-utils
b4e0e1
Version:        1.3.3
b4e0e1
Release:        1%{?dist}
877de4
Summary:        A command-line mail organization utility
877de4
877de4
License:        GPLv3+
877de4
URL:            http://www.djcbsoftware.nl/code/mu/index.html
877de4
Source0:        https://github.com/djcb/mu/archive/%{version}.tar.gz
877de4
877de4
BuildRequires:  gcc
877de4
BuildRequires:  gcc-c++
877de4
877de4
# Needed for patching stuff
877de4
BuildRequires:  libtool
877de4
BuildRequires:  automake
877de4
BuildRequires:  pkgconfig(glib-2.0)
877de4
BuildRequires:  pkgconfig(gobject-2.0)
877de4
BuildRequires:  pkgconfig(gio-2.0)
877de4
BuildRequires:  pkgconfig(gmime-3.0)
877de4
BuildRequires:  xapian-core
877de4
BuildRequires:  xapian-core-devel
877de4
BuildRequires:  xapian-core-libs
877de4
BuildRequires:  texinfo
877de4
BuildRequires:  libuuid-devel
877de4
# Current version of mu4e supports emacs versions >= 24.4
877de4
BuildRequires:  emacs >= 24.4
877de4
Requires:       emacs-filesystem >= 24.4
877de4
Requires:       xapian-core
877de4
877de4
%description
877de4
Maildir-utils (mu) is a command-line utility for organizing and
877de4
searching email.
877de4
877de4
%package guile
877de4
Summary:        Guile bindings for mu (maildir-utils)
877de4
BuildRequires:  guile22-devel
877de4
Requires:       guile22
877de4
Requires:       %{name}%{?_isa} = %{version}-%{release}
877de4
%description guile
877de4
This package contains the Guile bindings for mu
877de4
(maildir-utils).
877de4
877de4
%package guile-devel
877de4
Summary:        Mu-Guile development files
877de4
Requires:       %{name}-guile%{?_isa} = %{version}-%{release}
877de4
%description guile-devel
877de4
This package contains the Guile development files for mu
877de4
(maildir-utils).
877de4
877de4
%prep
877de4
%autosetup -n mu-%{version}
877de4
# Patch the guile files to make sure that the module
877de4
# stuff is installed in the right place
877de4
# This is because the build process ignores any flags
877de4
# that could override the scmdir.
877de4
sed -i 's|^scmdir=${prefix}/share/guile/site/2.0/|scmdir=${prefix}/share/guile/site/2.2/|' guile/Makefile.am
877de4
sed -i 's|^scmdir=${prefix}/share/guile/site/2.0/|scmdir=${prefix}/share/guile/site/2.2/|' guile/mu/Makefile.am
aa2ea8
sed -i 's|${prefix}/share/doc/mu|${prefix}/share/doc/%{name}|' configure.ac
877de4
877de4
%build
877de4
# Because of the patch above, we have to regenerate the build files.
877de4
NOCONFIGURE=yes ./autogen.sh
877de4
# Disable the toy GTK GUI "mug".
877de4
%configure --disable-gtk --disable-static --enable-shared
877de4
%make_build
877de4
877de4
877de4
%install
877de4
%make_install
877de4
877de4
# We must remove the "mu"-documentation directory
877de4
# since all of those documents are under
877de4
# maildir-utils
877de4
rm -r %{buildroot}/%{_docdir}/mu
877de4
877de4
# The mug manpage must be removed as we disable mug above.
877de4
# Sadly, passing --disable-gtk doesn't affect the manpages
877de4
# so the mug manpage still gets installed.
877de4
rm %{buildroot}/%{_mandir}/man1/mug.1
877de4
877de4
# Remove the dir that gets installed alongside the info-pages
877de4
# as it would conflict with other packages.
877de4
rm %{buildroot}/%{_infodir}/dir
877de4
877de4
# Remove libtool .la files
877de4
rm %{buildroot}/%{_libdir}/libguile-mu.la
877de4
877de4
%files
877de4
%license COPYING
877de4
%doc NEWS.org mu4e/mu4e-about.org
877de4
%{_bindir}/mu
877de4
%{_emacs_sitelispdir}/mu4e
877de4
%{_infodir}/mu4e.info.gz
877de4
%{_mandir}/man1/*
877de4
%{_mandir}/man5/*
877de4
%{_mandir}/man7/*
877de4
877de4
%files guile
877de4
%{_infodir}/mu-guile.info.gz
877de4
%{_datadir}/mu/
877de4
%{_libdir}/libguile-mu.so.0*
877de4
%{_datadir}/guile/site/2.2/mu.scm
877de4
%{_datadir}/guile/site/2.2/mu/
877de4
877de4
%files guile-devel
877de4
%{_libdir}/libguile-mu.so
877de4
877de4
877de4
%changelog
b4e0e1
* Sun Sep 08 2019 Maximiliano Sandoval <msandova@protonmail.com> - 1.3.3-1
b4e0e1
- Update to 1.3.3, removed patch merged upstream
b4e0e1
98a6e6
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
98a6e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
98a6e6
aa2ea8
* Sat Jul 06 2019 Omair Majid <omajid@redhat.com> - 1.3.1-2
aa2ea8
- Fix mu4e-news by fixing mu4e's documentation root path
aa2ea8
877de4
* Wed Jun 19 2019 Jani Juhani Sinervo <jani@sinervo.fi> - 1.3.1-1
877de4
- Initial spec