]> git.pld-linux.org Git - SPECS.git/blob - liblo.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / liblo.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        Open Sound Control library
6 Summary(pl.UTF-8):      Biblioteka Open Sound Control
7 Name:           liblo
8 Version:        0.32
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        https://downloads.sourceforge.net/liblo/%{name}-%{version}.tar.gz
13 # Source0-md5:  a93a7a9da084e6a0937bde6fc324a52a
14 Patch0:         %{name}-strncpy.patch
15 URL:            https://liblo.sourceforge.net/
16 BuildRequires:  autoconf >= 2.69
17 BuildRequires:  automake
18 BuildRequires:  doxygen
19 BuildRequires:  libtool
20 BuildRequires:  rpm-build >= 4.6
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 liblo is an implementation of the Open Sound Control protocol for
25 POSIX systems.
26
27 %description -l pl.UTF-8
28 liblo jest implementacją protokołu Open Sound Control dla systemów
29 POSIX.
30
31 %package devel
32 Summary:        Header files for liblo
33 Summary(pl.UTF-8):      Pliki nagłówkowe dla liblo
34 Group:          Development/Libraries
35 Requires:       %{name} = %{version}-%{release}
36
37 %description devel
38 Header files and development documentation for liblo.
39
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe i dokumentacja dla liblo.
42
43 %package static
44 Summary:        liblo static library
45 Summary(pl.UTF-8):      Biblioteka statyczna liblo
46 Group:          Development/Libraries
47 Requires:       %{name} = %{version}-%{release}
48
49 %description static
50 liblo static library.
51
52 %description static -l pl.UTF-8
53 Biblioteka statyczna liblo.
54
55 %package apidocs
56 Summary:        API documentation for liblo library
57 Summary(pl.UTF-8):      Dokumentacja API biblioteki liblo
58 Group:          Documentation
59 BuildArch:      noarch
60
61 %description apidocs
62 API documentation for liblo library.
63
64 %description apidocs -l pl.UTF-8
65 Dokumentacja API biblioteki liblo.
66
67 %prep
68 %setup -q
69 %patch0 -p1
70
71 %build
72 %{__libtoolize}
73 %{__aclocal} -I m4
74 %{__autoconf}
75 %{__autoheader}
76 %{__automake}
77 %configure \
78         --disable-silent-rules \
79         --enable-ipv6 \
80         %{?with_static_libs:--enable-static}
81 %{__make}
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85
86 %{__make} install \
87         DESTDIR=$RPM_BUILD_ROOT
88
89 # obsoleted by pkg-config
90 %{__rm} $RPM_BUILD_ROOT%{_libdir}/liblo.la
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post   -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %files
99 %defattr(644,root,root,755)
100 %doc AUTHORS ChangeLog NEWS README TODO
101 %attr(755,root,root) %{_bindir}/oscdump
102 %attr(755,root,root) %{_bindir}/oscsend
103 %attr(755,root,root) %{_bindir}/oscsendfile
104 %attr(755,root,root) %{_libdir}/liblo.so.*.*.*
105 %attr(755,root,root) %ghost %{_libdir}/liblo.so.7
106
107 %files devel
108 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_libdir}/liblo.so
110 %{_includedir}/lo
111 %{_pkgconfigdir}/liblo.pc
112
113 %if %{with static_libs}
114 %files static
115 %defattr(644,root,root,755)
116 %{_libdir}/liblo.a
117 %endif
118
119 %files apidocs
120 %defattr(644,root,root,755)
121 %doc doc/html/*
This page took 0.169994 seconds and 3 git commands to generate.