# # spec file for package libquvi # # Copyright (c) 2012 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/ # %define soname 7 Name: libquvi Version: 0.4.0 Release: 1 Summary: Library to parse flash media stream URLs Group: System/Libraries License: LGPL-2.1+ Url: http://quvi.sourceforge.net/ Source: %{name}-%{version}.tar.bz2 %if 0%{?suse_version} > 1210 BuildRequires: lua51-devel %else BuildRequires: lua-devel >= 5.1 %endif # For pkgconfig() Provides BuildRequires: pkg-config BuildRequires: pkgconfig(libcurl) >= 7.18.2 BuildRequires: pkgconfig(libquvi-scripts) >= 0.4.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description libquvi is a cross-platform library for parsing flash media stream URLs with C API. %package -n libquvi%{soname} Summary: Library to parse flash media stream URLs Group: System/Libraries Recommends: libquvi-scripts %description -n libquvi%{soname} libquvi is a cross-platform library for parsing flash media stream URLs with C API. %package devel Summary: Library to parse flash media stream URLs -- Development Files Group: Development/Libraries/C and C++ Requires: libquvi%{soname} = %{version} %description devel libquvi is a cross-platform library for parsing flash media stream URLs with C API. %prep %setup -q %build %configure \ --disable-static make %{?_smp_mflags} %install %make_install find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print %post -n libquvi%{soname} -p /sbin/ldconfig %postun -n libquvi%{soname} -p /sbin/ldconfig %files -n libquvi%{soname} %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING NEWS README %{_libdir}/*.so.* %{_mandir}/man3/libquvi.3%{?ext_man} %files devel %defattr(-,root,root) %{_includedir}/quvi/ %{_libdir}/*.so %{_libdir}/pkgconfig/libquvi.pc %changelog