2012-01-10 14:38:55 +01:00
|
|
|
#
|
|
|
|
# spec file for package libquvi
|
|
|
|
#
|
2022-04-22 16:01:41 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2012-01-10 14:38:55 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2022-04-22 16:01:41 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-01-10 14:38:55 +01:00
|
|
|
#
|
|
|
|
|
2012-01-11 11:23:58 +01:00
|
|
|
|
2014-02-11 10:26:42 +01:00
|
|
|
%define soname -0_9-0_9_4
|
2012-01-10 14:38:55 +01:00
|
|
|
|
|
|
|
Name: libquvi
|
2014-02-11 10:26:42 +01:00
|
|
|
Version: 0.9.4
|
2012-01-17 19:52:13 +01:00
|
|
|
Release: 0
|
2012-01-10 14:38:55 +01:00
|
|
|
Summary: Library to parse flash media stream URLs
|
2022-04-22 16:01:41 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2012-01-17 19:52:13 +01:00
|
|
|
Group: System/Libraries
|
2022-04-22 16:01:41 +02:00
|
|
|
URL: http://quvi.sourceforge.net/
|
2014-02-11 10:26:42 +01:00
|
|
|
Source: http://sourceforge.net/projects/quvi/files/0.9/libquvi/libquvi-0.9.4.tar.xz
|
2015-03-10 13:50:29 +01:00
|
|
|
Source1: %{name}.rpmlintrc
|
2015-03-10 13:05:05 +01:00
|
|
|
# PATCH-FEATURE-OPENSUSE libquvi-stable-build-date.patch sbrabec@suse.cz -- Don't embed build date. Triggers rebuild.
|
|
|
|
Patch0: %{name}-stable-build-date.patch
|
2015-07-18 13:16:01 +02:00
|
|
|
# PATCH-FIX-UPSTREAM marguerite@opensuse.org -- compatibility for lua 5.2+
|
|
|
|
Patch1: %{name}-%{version}-lua-5.2.patch
|
2022-04-22 16:01:41 +02:00
|
|
|
# PATCH-FIX-UPSTREAM libquvi-autoconf-2.70.patch dimstar@opensuse.org -- Fix build with autconfig 2.70
|
|
|
|
Patch2: libquvi-autoconf-2.70.patch
|
2015-03-10 13:05:05 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
2013-08-26 12:51:35 +02:00
|
|
|
BuildRequires: lua-devel
|
2012-01-10 14:38:55 +01:00
|
|
|
# For pkgconfig() Provides
|
2013-08-26 12:51:35 +02:00
|
|
|
BuildRequires: libgcrypt-devel
|
2012-01-10 14:38:55 +01:00
|
|
|
BuildRequires: pkg-config
|
2013-08-26 12:51:35 +02:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.24
|
2012-01-10 14:38:55 +01:00
|
|
|
BuildRequires: pkgconfig(libcurl) >= 7.18.2
|
2013-08-26 12:51:35 +02:00
|
|
|
BuildRequires: pkgconfig(libproxy-1.0) >= 0.3.1
|
|
|
|
BuildRequires: pkgconfig(libquvi-scripts-0.9) >= 0.9
|
2012-01-10 14:38:55 +01:00
|
|
|
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
|
2015-03-10 13:05:05 +01:00
|
|
|
# Up to openSUSE 13.2 and SLE 12 *.so files were in the main package. Now it does not exist.
|
|
|
|
Provides: libquvi = %{version}-%{release}
|
|
|
|
Obsoletes: libquvi < %{version}-%{release}
|
2012-01-10 14:38:55 +01:00
|
|
|
|
|
|
|
%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++
|
2015-03-10 13:05:05 +01:00
|
|
|
Requires: libquvi%{soname} = %{version}
|
2012-01-10 14:38:55 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libquvi is a cross-platform library for parsing flash media stream
|
|
|
|
URLs with C API.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2015-03-10 13:05:05 +01:00
|
|
|
if test -f %{_sourcedir}/%{name}.changes ; then
|
2024-03-01 16:03:00 +01:00
|
|
|
%patch -P 0
|
2015-03-10 13:05:05 +01:00
|
|
|
echo "timestamp for BUILD_TIME" >stamp-build-time
|
|
|
|
touch -d "$(sed -n '2s/ - .*$//p' <%{_sourcedir}/%{name}.changes)" stamp-build-time
|
|
|
|
fi
|
2024-03-01 16:03:00 +01:00
|
|
|
%patch -P 1 -p1
|
|
|
|
%patch -P 2 -p1
|
2012-01-10 14:38:55 +01:00
|
|
|
|
|
|
|
%build
|
2013-08-26 12:51:35 +02:00
|
|
|
export CFLAGS="%{optflags} -DLUA_COMPAT_MODULE"
|
2015-03-10 13:05:05 +01:00
|
|
|
autoreconf -f -i
|
2012-01-10 14:38:55 +01:00
|
|
|
%configure \
|
|
|
|
--disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
|
|
|
|
|
2015-03-10 13:05:05 +01:00
|
|
|
%post -n libquvi%{soname} -p /sbin/ldconfig
|
2012-01-10 14:38:55 +01:00
|
|
|
|
2015-03-10 13:05:05 +01:00
|
|
|
%postun -n libquvi%{soname} -p /sbin/ldconfig
|
2012-01-10 14:38:55 +01:00
|
|
|
|
2015-03-10 13:05:05 +01:00
|
|
|
%files -n libquvi%{soname}
|
2012-01-10 14:38:55 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
2013-08-26 12:51:35 +02:00
|
|
|
%{_libdir}/*.so
|
2012-01-10 14:38:55 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2013-08-26 12:51:35 +02:00
|
|
|
%{_includedir}/quvi-0.9/
|
|
|
|
#{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/libquvi-0.9.pc
|
|
|
|
%{_mandir}/man3/libquvi.3%{?ext_man}
|
|
|
|
%{_mandir}/man7/quvi-object.7%{?ext_man}
|
2012-01-10 14:38:55 +01:00
|
|
|
|
|
|
|
%changelog
|