/
xplayer-plparser.spec
115 lines (94 loc) · 3.57 KB
/
xplayer-plparser.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
%define major 18
%define gi_major 1.0
%define _name xplayer-pl-parser
%define libname %mklibname %{name} %{major}
%define libnamemini %mklibname %{name}-mini %{major}
%define develname %mklibname %{name} -d
%define girname %mklibname %{name}-gir %{gi_major}
Name: xplayer-plparser
Version: 1.0.3
Release: 4
Summary: Simple GObject-based library to parse playlist formats
License: LGPL-2.0+
Group: System/Libraries
Url: https://github.com/linuxmint/xplayer-plparser
Source: https://github.com/linuxmint/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: baselibs.conf
BuildRequires: meson
BuildRequires: gnome-common
BuildRequires: pkgconfig(libgcrypt)
BuildRequires: pkgconfig(glib-2.0) >= 2.31.0
BuildRequires: pkgconfig(gmime-3.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(libarchive) >= 3.0
BuildRequires: pkgconfig(libquvi-0.9) >= 0.9.1
BuildRequires: pkgconfig(libsoup-2.4) >= 2.43.0
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(gtk-doc)
Requires: libquvi-scripts
%description
xplayer-plparser is a simple GObject-based library to parse a host
of playlist formats, to save them too.
%lang_package
%package -n %{libname}
Summary: A simple GObject-based library to parse playlist formats
Group: System/Libraries
# Main package contains libexec files needed for full functionality.
Requires: %{name} >= %{version}
%description -n %{libname}
xplayer-plparser is a simple GObject-based library to parse a host
of playlist formats, to save them too.
%package -n %{girname}
Summary: Simple GObject-based library to parse playlist formats -- Introspection Bindings
Group: System/Libraries
# Main package contains libexec files needed for full functionality.
Requires: %{name} >= %{version}
%description -n %{girname}
xplayer-plparser is a simple GObject-based library to parse a host
of playlist formats, to save them too.
This package provides the GObject Introspection bindings for the
xplayer-plparser library.
%package -n %{libnamemini}
Summary: Simple GObject-based library to parse playlist formats -- Mini Version
Group: System/Libraries
# Main package contains libexec files needed for full functionality.
Requires: %{name} >= %{version}
%description -n %{libnamemini}
xplayer-plparser is a simple GObject-based library to parse a host
of playlist formats, to save them too.
%package -n %{develname}
Summary: Simple GObject-based library to parse playlist formats
Group: Development/C
Requires: %{libnamemini} = %{version}
Requires: %{libname} = %{version}
Requires: %{girname} = %{version}
%description -n %{develname}
xplayer-plparser is a simple GObject-based library to parse a host
of playlist formats, to save them too.
%prep
%autosetup -p1
%build
%meson \
-Denable-quvi=yes
%meson_build
%install
%meson_install
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{_name}
%files -f %{_name}.lang
%doc COPYING.LIB README debian/changelog
%{_prefix}/libexec/xplayer-pl-parser-videosite
#{_libexecdir}/%{name}/xplayer-pl-parser-videosite
%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}{,.*}
%files -n %{girname}
%{_libdir}/girepository-1.0/XplayerPlParser-1.0.typelib
%files -n %{libnamemini}
%{_libdir}/lib%{name}-mini.so.%{major}{,.*}
%files -n %{develname}
%{_includedir}/%{_name}/
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}-mini.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/%{name}-mini.pc
%{_datadir}/gir-1.0/*.gir