File lightmediascanner.spec of Package lightmediascanner

#
# spec file for package lightmediascanner (Version _0.3.0.0)
#
# Copyright (c) 2008 SOAD Project, Russia.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments to the Maintainer: sda00@himki.net
#
# git clone git://git.profusion.mobi/lightmediascanner.git

# norootforbuild

Name:           liblightmediascanner0
Version:        20100516_r48925
Release:		1
License:        GPL
URL:			https://garage.maemo.org/projects/lms/
#Provides:		%{name}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:			lightmediascanner_%{version}.tar.bz2
Packager:		sda00 <sda00@himki.net>
#Group:         System/GUI/Enlightenment
Group:          System/Libraries/
Summary:		Lightweight library to scan media, parsing and storing into SQLite3 database

# core
BuildRequires:	gcc-c++ gcc iputils git m4 autoconf automake libtool glibc-devel glibc zlib-devel zlib libjpeg-devel libjpeg doxygen  sqlite3-devel  pkgconfig  git
%if %suse_version < 1100
BuildRequires:  sqlite
%endif
%if %suse_version == 1100
BuildRequires:  sqlite3  
%endif
BuildRequires:	id3lib-devel  libid3tag-devel  libjpeg-devel libjpeg libpng-devel libpng  libogg-devel  libvorbis-devel

%description
Lightweight library to scan media, parsing and storing into SQLite3 database. Provides safe execution by executing the parsers in another process, that will be monitored and killed if it takes more time than allowed.

Prepared by SOAD project.

%package devel
Summary:	lightmediascanner headers, static libraries and documentation
Group:		System/Libraries/
Requires:	%{name} = %{version}

%description devel
Headers, static libraries, test programs and documentation for lightmediascanner

%prep
rm -rf "$RPM_BUILD_ROOT"
#%setup -q
%{?suse_update_config:%{suse_update_config -f}} 

%build
%install

if  [ "`ping profusion.mobi -c 10 2>&1 | grep icmp_seq`" != "" ] ; then

##git clone git://local.profusion.mobi/lightmediascanner.git
git clone git://git.profusion.mobi/lightmediascanner.git
cd lightmediascanner
chmod +x ./autogen.sh
./autogen.sh

else

tar xfm $RPM_SOURCE_DIR/lightmediascanner_%{version}.tar.bz2
cd  lightmediascanner
chmod +x ./autogen.sh
./autogen.sh

fi

%configure
make
%makeinstall

find $RPM_BUILD_ROOT/ -type f  -iname '*.la' -exec rm {} \;
find $RPM_BUILD_ROOT/ -type f  -iname '*.a' -exec rm {} \;

#%fdupes -s $RPM_BUILD_ROOT

%clean
rm -rf "$RPM_BUILD_ROOT"

#%pre

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_libdir}/*.so.*
%{_libdir}/lightmediascanner/*
%dir %{_libdir}/lightmediascanner

%files devel
%defattr(-, root, root)
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_libdir}/*.so

%changelog
* Mon Sep 22 2008  first build <sda00@himki.net>
- first build

openSUSE Build Service is sponsored by