File liblqr.spec of Package liblqr

# norootforbuild
Summary:	LiquidRescale seam-carving library
Name:		liblqr
Version:	0.2.0
Release:	0
Group:		System/Libraries
License:	GPLv2+
URL:		http://liquidrescale.wikidot.com/
Source0:	http://liblqr.wikidot.com/local--files/en:download-page/liblqr-1-%{version}.tar.bz2
BuildRequires:  glib2-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
%define debug_package_requires liblqr-1-0 = %{version}-%{release}


%description
The Liquid Rescale (lqr) library provides a C/C++ API for performing
non-uniform resizing of images by the seam-carving technique.


%package -n liblqr-1-0
Summary:	LiquidRescale seam-carving library
Group:		System/Libraries

%description -n liblqr-1-0
The Liquid Rescale (lqr) library provides a C/C++ API for performing
non-uniform resizing of images by the seam-carving technique.

%package 	devel
Summary:	Static library and header files for the LiquidRescale library
Group:		Development/C
Requires:       liblqr-1-0 = %{version}

%description    devel
The Liquid Rescale (lqr) library provides a C/C++ API for performing
non-uniform resizing of images by the seam-carving technique.

This package contains the static LiquidRescale library and its header files.

%prep

%setup -q -n liblqr-1-%{version}

%build

export CXXFLAGS="$RPM_OPT_FLAGS"  
export CFLAGS="$CXXFLAGS"  

%configure
make

%install
make install DESTDIR=%buildroot
# remove .la files
find %buildroot -name \*.la -exec %__rm -f {} \;

%post -n  liblqr-1-0 -p /sbin/ldconfig

%postun -n  liblqr-1-0 -p /sbin/ldconfig

%clean
rm -rf %{buildroot}

%files -n  liblqr-1-0
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/*.so.*

%files  devel
%defattr(-,root,root)
#%doc docs/html/* examples
%dir %{_includedir}/lqr-1
%dir %{_includedir}/lqr-1/lqr
%{_includedir}/lqr-1/*.h
%{_includedir}/lqr-1/lqr/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc



%changelog
* Thu Feb 21 2008  <mrdocs @scribus.info  
- initial Build Service Package
openSUSE Build Service is sponsored by