diff --git a/.cvsignore b/.cvsignore index e69de29..136f5fb 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +liblqr-1-0.1.0-1.tar.gz diff --git a/liblqr-1-0.1.0-pkgconfig.patch b/liblqr-1-0.1.0-pkgconfig.patch new file mode 100755 index 0000000..ef2f29c --- /dev/null +++ b/liblqr-1-0.1.0-pkgconfig.patch @@ -0,0 +1,9 @@ +--- liblqr-1-0.1.0/lqr-1.pc.in.debug 2007-11-28 07:40:01.000000000 +0900 ++++ liblqr-1-0.1.0/lqr-1.pc.in 2008-02-26 03:26:13.000000000 +0900 +@@ -7,5 +7,5 @@ + Description: LiquidRescale seam-carving library + Requires: glib-2.0 + Version: @PACKAGE_VERSION@ +-Libs: -L${libdir}/@LIBRARY_SNAME@ -l@LIBRARY_SNAME@ ++Libs: -l@LIBRARY_SNAME@ + Cflags: -I${includedir}/@LIBRARY_SNAME@ diff --git a/liblqr-1.spec b/liblqr-1.spec new file mode 100644 index 0000000..93d1e0b --- /dev/null +++ b/liblqr-1.spec @@ -0,0 +1,104 @@ +%define tarversion 1 + +Name: liblqr-1 +Version: 0.1.0 +Release: 5%{?dist} +Summary: LiquidRescale library +Group: System Environment/Libraries +License: GPLv3 +URL: http://liquidrescale.wikidot.com/ +Source0: http://liblqr.wikidot.com/local--files/en:download-page/%{name}-%{version}-%{tarversion}.tar.gz +Patch0: liblqr-1-0.1.0-pkgconfig.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n) +BuildRequires: glib2-devel + +%description +The LiquidRescale (lqr) library provides a C/C++ API for +performing non-uniform resizing of images by the seam-carving +technique. + +%package devel +Summary: LiquidRescale library development kit +Group: Development/Libraries +License: GPLv3 +Requires: %{name} = %{version}-%{release} +Requires: glib2-devel, pkgconfig + +%description devel +The libqr-devel package contains the header files +needed to develop applications with liblqr + + +%prep +%setup -q + +# Patches + +%patch -p1 -b .pkgconfig + +%build +export LDFLAGS="`pkg-config --libs glib-2.0` -lm" +%configure +%{__make} %{?_smp_mflags} + + +%install +%{__rm} -rf $RPM_BUILD_ROOT +%{__make} install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" + +# remove .la files +find $RPM_BUILD_ROOT -name \*.la -exec %{__rm} -f {} \; + +# Fedora MUST +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%clean +%{__rm} -rf $RPM_BUILD_ROOT + + + +%files +%defattr(-,root,root,-) +%doc README ChangeLog COPYING +%{_libdir}/liblqr-1.so.0.0.0 +%{_libdir}/liblqr-1.so.0 + +%files devel +%defattr (-, root, root,-) +%doc docs/liblqr_manual.docbook +%{_libdir}/liblqr-1.so +%{_includedir}/lqr-1/ +%{_libdir}/pkgconfig/lqr-1.pc + + + +%changelog + +* Fri Feb 29 2008 Alexandru Ciobanu - 0.1.0-5 + +- Applied pkgconfig patch to remove unneeded directories. +- Changed permissions of files to 0644. +- Fixed minor typos. + +* Mon Feb 25 2008 Alexandru Ciobanu - 0.1.0-4 + +- Cleaned SPEC file, again. + +* Wed Feb 20 2008 Alexandru Ciobanu - 0.1.0-3 + +- Cleaned SPEC file. + +* Tue Feb 19 2008 Alexandru Ciobanu - 0.1.0-2 + +- Fixed licensing issue. + +* Thu Jan 17 2008 Alexandru Ciobanu - 0.1.0-1 + +- Update to latest upstream release. +- Added glib BuildRequires. + +* Mon Dec 10 2007 Alexandru Ciobanu - 0.1.0-0 + +- Initial RPM release. diff --git a/sources b/sources index e69de29..2685e02 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6c8be281b11b9782e45fa7f401e05087 liblqr-1-0.1.0-1.tar.gz