153158a1024b42f06ef70e35fa21e864f4464353
[packages/libmpdclient.git] / libmpdclient.spec
1 Summary:        MPD client library
2 Summary(pl.UTF-8):      Biblioteka kliencka MPD
3 Name:           libmpdclient
4 Version:        2.16
5 Release:        1
6 License:        BSD-like
7 Group:          Libraries
8 Source0:        http://www.musicpd.org/download/libmpdclient/2/%{name}-%{version}.tar.xz
9 # Source0-md5:  2a870c73a0b87183e944d2eb89e4411b
10 URL:            http://www.musicpd.org/doc/libmpdclient/
11 BuildRequires:  doxygen
12 BuildRequires:  meson > 0.38.1
13 BuildRequires:  ninja
14 BuildRequires:  rpmbuild(macros) >= 1.727
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Library for Music Player Daemon client development.
19
20 %description -l pl.UTF-8
21 Biblioteka do tworzenia klientów demona MPD (Music Player Daemon).
22
23 %package devel
24 Summary:        Header files for the MPD client library
25 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki klienckiej MPD
26 Group:          Development/Libraries
27 Requires:       %{name} = %{version}-%{release}
28
29 %description devel
30 Header files for MPD client library.
31
32 %description devel -l pl.UTF-8
33 Pliki nagłówkowe biblioteki klienckiej MPD.
34
35 %package static
36 Summary:        Static MPD client library
37 Summary(pl.UTF-8):      Statyczna biblioteka kliencka MPD
38 Group:          Development/Libraries
39 Requires:       %{name}-devel = %{version}-%{release}
40
41 %description static
42 Static MPD client library.
43
44 %description static -l pl.UTF-8
45 Statyczna biblioteka kliencka MPD.
46
47 %package -n vala-libmpdclient
48 Summary:        libmpdclient API for Vala language
49 Summary(pl.UTF-8):      API libmpdclient dla języka Vala
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52 %if "%{_rpmversion}" >= "5"
53 BuildArch:      noarch
54 %endif
55
56 %description -n vala-libmpdclient
57 libmpdclient API for Vala language.
58
59 %description -n vala-libmpdclient -l pl.UTF-8
60 API libmpdclient dla języka Vala.
61
62 %prep
63 %setup -q
64
65 %build
66 %meson build \
67         -Ddocumentation=true
68
69 %meson_build -C build
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %meson_install -C build
75
76 rm -rf $RPM_BUILD_ROOT%{_docdir}
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %post   -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
83
84 %files
85 %defattr(644,root,root,755)
86 %doc README.rst COPYING AUTHORS NEWS
87 %attr(755,root,root) %{_libdir}/libmpdclient.so.*.*
88 %attr(755,root,root) %ghost %{_libdir}/libmpdclient.so.2
89
90 %files devel
91 %defattr(644,root,root,755)
92 %doc build/doc/html
93 %attr(755,root,root) %{_libdir}/libmpdclient.so
94 %{_includedir}/mpd
95 %{_pkgconfigdir}/libmpdclient.pc
96
97 %files static
98 %defattr(644,root,root,755)
99 %{_libdir}/libmpdclient.a
100
101 %files -n vala-libmpdclient
102 %defattr(644,root,root,755)
103 %{_datadir}/vala/vapi/libmpdclient.vapi
This page took 0.033123 seconds and 2 git commands to generate.