new spec (lyricue)

Caleb Maclennan pld at chiefworks.com
Sat Nov 10 03:25:11 CET 2007


On Sat, Nov 10, 2007 at 04:14:38AM +0200, Elan Ruusamäe wrote:
> > %{_desktopdir}/*
> 
> this is dangerous -- you might package %{_desktopdir}/kde if you don't look 
> each time what you package.

Ok, I have specified these individually. I tried globing them with {,_server}
but that kind of globing apparently doesn't work there.

> this is usually wrapped:
> %{make} install \
> 	DESTDIR=$RPM_BUILD_ROOT

done.

> %file list order of items seems usually to 
> be %{_sysconfig}, %{_bindir}, %{_datadir}, then rest

done.

Caleb
-------------- next part --------------
# $Revision:$, $Date:$
Summary:	The GNU Lyric Display System
Name:		lyricue
Version:	1.9.6
Release:	0.7
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
mv docs doc

%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/*
%dir %{_docdir}/lyricue
%doc %{_docdir}/lyricue/*
%{_desktopdir}/lyricue.desktop
%{_desktopdir}/lyricue_server.desktop

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

$Log:$


More information about the pld-devel-en mailing list