%global snapshot 20150220 Name: libmpdclient Summary: A library for interfacing Music Player Daemon (MPD) Version: 2.10 Release: 0.n0i.9%{?snapshot:.%{snapshot}git}%{?dist} License: GPLv2+ Group: System Environment/Libraries URL: http://mpd.wikia.com/wiki/ClientLib:libmpdclient %if %{?snapshot:1}0 Source0: %{name}-%{snapshot}.tar.bz2 Source99: %{name}-snapshot.sh %else Source0: http://downloads.sourceforge.net/musicpd/%{name}-%{version}.tar.bz2 %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description A stable, documented, asynchronous API library for interfacing MPD in the C, C++ & Objective C languages. %package devel Summary: Header files and development libraries for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: pkgconfig %description devel This package contains the header files and development libraries for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel. %prep %if %{?snapshot:1}0 %setup -q -n %{name}-%{snapshot} %else %setup -q %endif %build %configure --disable-static make %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %{__make} install DESTDIR="%{buildroot}" %{__mv} %{buildroot}%{_docdir}/%{name}/html . %{__rm} -rf %{buildroot}%{_docdir}/%{name} %clean %{__rm} -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr (-,root,root,-) %doc AUTHORS COPYING NEWS README %{_libdir}/%{name}.so.* %files devel %defattr (-,root,root,-) %doc html/ %{_includedir}/* %{_libdir}/%{name}.so %exclude %{_libdir}/*.la %{_libdir}/pkgconfig/%{name}.pc %{_datadir}/vala/vapi/%{name}.vapi %changelog * Fri Feb 20 2015 Marius FERARU - 2.10-0.n0i.9.20150220git - git snapshot from 20150220 (16585de) * Thu Jan 15 2015 Marius FERARU - 2.10-0.n0i.8.20150115git - git snapshot from 20150115 (37510c1) * Wed Aug 06 2014 Marius FERARU - 2.10-0.n0i.7.20140806git - git snapshot from 20140806 * Tue Jun 18 2013 Marius FERARU - 2.9-0.n0i.6.20130618git - git snapshot from 20130618 * Thu Feb 24 2011 Marius FERARU - 2.5-0.n0i.5.20110224git - git snapshot from 20110224 * Mon Jan 03 2011 Marius FERARU - 2.4-0.n0i.4.20110103git - git snapshot from 20110103 * Thu Jun 24 2010 Marius FERARU - 2.3-0.n0i.3.20100624git - 2.3 git snapshot from 20100624 * Fri Jan 15 2010 Marius FERARU - 2.2-0.n0i.2.20100115git - 2.2 git snapshot from 20100115 * Sun Nov 22 2009 Marius FERARU - 2.1-0.n0i.1.20091122git - initial build using a 2.1 git snapshot from 20091122