Sophie

Sophie

distrib > Arklinux > devel > x86_64 > by-pkgid > 6fe674beef285ab1263864b2d22382f5 > files > 2

liblo-0.26-1ark.src.rpm

%define beta %nil
%define scmrev %nil

Name: liblo
Version: 0.26
%if "%beta" == ""
%if "%scmrev" == ""
Release: 1ark
Source: http://switch.dl.sourceforge.net/project/liblo/liblo/%version/liblo-%version.tar.gz
%else
Release: 0.%scmrev.1ark
Source: %name-%scmrev.tar.xz
%endif
%else
%if "%scmrev" == ""
Release: 0.%beta.1ark
Source: %name-%version%beta.tar.bz2
%else
Release: 0.%beta.%scmrev.1ark
Source: %name-%scmrev.tar.xz
%endif
%endif
Summary: Implementation of the Open Sound Control protocol
URL: http://liblo.sf.net/
License: GPL
Group: System/Libraries
BuildRoot: %_tmppath/%name-root

%track
prog %name = {
	url = http://liblo.sourceforge.net/
	regex = "Latest.*%name (__VER__)"
	version = %version
}

%description
Implementation of the Open Sound Control protocol

%package devel
Summary: Development files for %name
Group: Development/Libraries
Requires: %name = %version-%release

%description devel
Development files (Headers etc.) for %name.

%package static
Summary: Static libraries for linking to %name
Group: Development/Libraries
Requires: %name-devel = %version-%release

%description static
Static libraries for linking to %name.

Install this package if you wish to develop or compile applications using
%name statically (users of the resulting binary won't need %name installed
with static linking).

%prep
%if "%scmrev" == ""
%setup -q -n %name-%version%beta
%else
%setup -q -n %name
%endif
%configure --enable-static

%build
make %?_smp_mflags

%install
rm -rf $RPM_BUILD_ROOT
make %?_smp_mflags install DESTDIR="$RPM_BUILD_ROOT"

%files
%_libdir/*.so*
%_bindir/*

%files devel
%_includedir/*
%_libdir/pkgconfig/*

%files static
%_libdir/*.a

%clean
rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%name-%version

%changelog
* Wed May 11 2011 Bernhard Rosenkraenzer <bero@arklinux.ch> 0.26-1ark
- initial RPM