liblqr/liblqr.spec

98 lines
2.7 KiB
RPMSpec

#
# spec file for package liblqr
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Summary: LiquidRescale seam-carving library
Name: liblqr
Version: 0.4.1
Release: 9
Group: System/Libraries
License: GPL-2.0+
Url: http://liquidrescale.wikidot.com/
Source0: http://liblqr.wikidot.com/local--files/en:download-page/liblqr-1-%{version}.tar.bz2
BuildRequires: glib2-devel
%if 0%{?mandriva_version}
BuildRequires: libglib2.0_0-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
License: GPL-2.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
License: GPL-2.0+
Summary: Static library and header files for the LiquidRescale library
Group: Development/Libraries/C and 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)
%dir %{_includedir}/lqr-1
%dir %{_includedir}/lqr-1/lqr
%{_includedir}/lqr-1/*.h
%{_includedir}/lqr-1/lqr/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog