]> git.pld-linux.org Git - packages/libmpdclient.git/commitdiff
up to 2.22 master auto/th/libmpdclient-2.22-1
authorJan Palus <atler@pld-linux.org>
Fri, 22 Dec 2023 13:24:24 +0000 (14:24 +0100)
committerJan Palus <atler@pld-linux.org>
Fri, 22 Dec 2023 13:24:24 +0000 (14:24 +0100)
- vala bindings dropped upstream

libmpdclient.spec

index 88c59f1b25889a2684741f0ebf100583fce425be..a352e711134e6a0a4da5e3998edc1da5351b5c2c 100644 (file)
@@ -1,16 +1,21 @@
+#
+# Conditional build:
+%bcond_without static_libs     # static library
+
 Summary:       MPD client library
 Summary(pl.UTF-8):     Biblioteka kliencka MPD
 Name:          libmpdclient
-Version:       2.20
+Version:       2.22
 Release:       1
 License:       BSD-like
 Group:         Libraries
-Source0:       http://www.musicpd.org/download/libmpdclient/2/%{name}-%{version}.tar.xz
-# Source0-md5: 2c007da25c0de18921f9fb3155218865
+Source0:       https://www.musicpd.org/download/libmpdclient/2/%{name}-%{version}.tar.xz
+# Source0-md5: 3c9ddd62e1c97f5530733acf6b7bde9f
 URL:           http://www.musicpd.org/doc/libmpdclient/
 BuildRequires: doxygen
-BuildRequires: meson > 0.38.1
+BuildRequires: meson >= 0.56.0
 BuildRequires: ninja
+BuildRequires: rpm-build >= 4.6
 BuildRequires: rpmbuild(macros) >= 1.736
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz
@@ -27,6 +32,7 @@ Summary:      Header files for the MPD client library
 Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki klienckiej MPD
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
+Obsoletes:     vala-libmpdclient < 2.22
 
 %description devel
 Header files for MPD client library.
@@ -46,24 +52,12 @@ Static MPD client library.
 %description static -l pl.UTF-8
 Statyczna biblioteka kliencka MPD.
 
-%package -n vala-libmpdclient
-Summary:       libmpdclient API for Vala language
-Summary(pl.UTF-8):     API libmpdclient dla języka Vala
-Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}-%{release}
-BuildArch:     noarch
-
-%description -n vala-libmpdclient
-libmpdclient API for Vala language.
-
-%description -n vala-libmpdclient -l pl.UTF-8
-API libmpdclient dla języka Vala.
-
 %prep
 %setup -q
 
 %build
 %meson build \
+       %{!?with_static_libs:--default-library=shared} \
        -Ddocumentation=true
 
 %ninja_build -C build
@@ -83,7 +77,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README.rst COPYING AUTHORS NEWS
+%doc AUTHORS LICENSES NEWS README.rst
 %attr(755,root,root) %{_libdir}/libmpdclient.so.*.*
 %attr(755,root,root) %ghost %{_libdir}/libmpdclient.so.2
 
@@ -94,10 +88,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/mpd
 %{_pkgconfigdir}/libmpdclient.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libmpdclient.a
-
-%files -n vala-libmpdclient
-%defattr(644,root,root,755)
-%{_datadir}/vala/vapi/libmpdclient.vapi
+%endif
This page took 0.165599 seconds and 4 git commands to generate.