4c411e3c84
Copy from KDE:KDE4:Factory:Desktop/liblqr based on submit request 30821 from user llunak OBS-URL: https://build.opensuse.org/request/show/30821 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liblqr?expand=0&rev=1
99 lines
2.8 KiB
RPMSpec
99 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package liblqr (Version 0.4.1)
|
|
#
|
|
# Copyright (c) 2010 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: 1
|
|
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
|
|
%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: GPLv2+
|
|
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: GPLv2+
|
|
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
|