On Sat, Nov 10, 2007 at 04:16:36AM +0200, Elan Ruusamäe wrote:
> but rather using rpmbuildroot paths use relative %doc from builddir, then 
> documents get compressed too:
> 
> %doc docs/*

Ok, this didn't quite make sense to me but I think I figured out
what you were after. See if this fits the bill. It throws a warning
about unpackaged (doc) files on build, but they do end up getting
included and installed correctly so I guess it makes sense.

Thanks for the help.

Caleb
# $Revision:$, $Date:$
Summary:        The GNU Lyric Display System
Name:           lyricue
Version:        1.9.6
Release:        0.8
License:        GPL
Group:          X11/Applications/Graphics
URL:            http://www.adebenham.com/lyricue/
Source0:        http://www.adebenham.com/debian/%{name}_%{version}.tar.gz
Patch0:         %{name}-makefile.patch
Patch1:         %{name}-desktop.patch
Requires:       mysql-client
Requires:       perl-DBD-mysql
Requires:       perl-DBI
Requires:       perl-Gnome2-Canvas
Requires:       perl-Gtk2-GladeXML
Requires:       perl-Gtk2-Spell
Requires:       perl-URI
Suggests:       perl-Gtk2-TrayIcon
Suggests:       perl-Locale-gettext
Suggests:       sword-devel
BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
This application is used to edit/display song lyrics and passages of
text on a second screen/projector for use at live events such as
church services, concerts and seminars.

%prep
%setup -q
%patch0
%patch1

%build
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
%{make} install \
        DESTDIR=$RPM_BUILD_ROOT

mv $RPM_BUILD_ROOT%{_datadir}/locale/es{_ES,}

%{find_lang} %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(644,root,root,755)
%dir %{_sysconfdir}/lyricue
%config(noreplace) %{_sysconfdir}/lyricue/*
%attr(755,root,root) %{_bindir}/*
%dir %{_datadir}/lyricue
%{_datadir}/lyricue/*
%doc docs/*
%{_desktopdir}/lyricue.desktop
%{_desktopdir}/lyricue_server.desktop

%define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <[EMAIL PROTECTED]>
All persons listed below can be reached at <cvs_login>@pld-linux.org

$Log:$
_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to