%global githash a721049 Name: npapi-vlc Version: 2.0.0 Release: 0.1%{?githash:git%{githash}}%{?dist} Summary: NPAPI plugin for libvlc Group: Applications/Internet License: LGPLv2+ URL: http://git.videolan.org/?p=npapi-vlc.git;a=summary Source0: npapi-vlc-%{?githash}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Buildrequires: libtool BuildRequires: gecko-devel BuildRequires: vlc-devel Provides: mozilla-vlc = %{version}-%{release} Obsoletes: mozilla-vlc < %{version} %description NPAPI plugin for libvlc. %prep %setup -q -n npapi-vlc-%{githash} sh autogen.sh %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS %{_libdir}/mozilla/plugins/libvlcplugin.so %changelog * Fri Mar 09 2012 Paulo Roma - 2.0.0-0.1gita721049 - git clone git://git.videolan.org/npapi-vlc.git - git log --pretty=format:'%h' -n 1 * Mon Jan 02 2012 Nicolas Chauvet - 1.2.0-0.3gitf568362 - Restore Obsoletes mozilla-vlc * Sun Jan 01 2012 Nicolas Chauvet - 1.2.0-0.2gitf568362 - Update to today's snapshot * Thu Dec 22 2011 Nicolas Chauvet - 1.2.0-0.1git30357f8 - Initial package