]> git.pld-linux.org Git - packages/libdvbpsi.git/blob - libdvbpsi.spec
- updated to 1.2.0
[packages/libdvbpsi.git] / libdvbpsi.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        Library for decoding and generation of MPEG TS and DVB PSI tables
6 Summary(pl.UTF-8):      Biblioteka do dekodowania i generowania tablic MPEG TS i DVB PSI
7 Name:           libdvbpsi
8 Version:        1.2.0
9 Release:        1
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        http://download.videolan.org/pub/libdvbpsi/%{version}/%{name}-%{version}.tar.bz2
13 # Source0-md5:  69e38e93c4db4f2a58cbd0b6f9f38228
14 URL:            http://www.videolan.org/developers/libdvbpsi.html
15 BuildRequires:  autoconf >= 2.50
16 BuildRequires:  automake
17 BuildRequires:  libtool
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 libdvbpsi is a very simple and fully portable library designed for
22 MPEG TS and DVB PSI table decoding and generation.
23
24 %description -l pl.UTF-8
25 libdvdpsi to bardzo prosta i przenośna biblioteka zaprojektowana do
26 dekodowania i generowania tablic MPEG TS i DVB PSI.
27
28 %package devel
29 Summary:        Header files for libdvbpsi library
30 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libdvbpsi
31 Group:          Development/Libraries
32 Requires:       %{name} = %{version}-%{release}
33
34 %description devel
35 Header files for libdvbpsi library.
36
37 %description devel -l pl.UTF-8
38 Pliki nagłówkowe biblioteki libdvbpsi.
39
40 %package static
41 Summary:        Static libdvbpsi library
42 Summary(pl.UTF-8):      Statyczna biblioteka libdvbpsi
43 Group:          Development/Libraries
44 Requires:       %{name}-devel = %{version}-%{release}
45
46 %description static
47 Static libdvbpsi library.
48
49 %description static -l pl.UTF-8
50 Statyczna biblioteka libdvbpsi.
51
52 %prep
53 %setup -q
54
55 %build
56 %{__libtoolize}
57 %{__aclocal}
58 %{__autoconf}
59 %{__autoheader}
60 %{__automake}
61 %configure \
62         %{!?with_static_libs:--disable-static}
63 %{__make}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdvbpsi.la
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %post   -p /sbin/ldconfig
77 %postun -p /sbin/ldconfig
78
79 %files
80 %defattr(644,root,root,755)
81 %doc AUTHORS NEWS README
82 %attr(755,root,root) %{_libdir}/libdvbpsi.so.*.*.*
83 %attr(755,root,root) %ghost %{_libdir}/libdvbpsi.so.9
84
85 %files devel
86 %defattr(644,root,root,755)
87 %doc ChangeLog
88 %attr(755,root,root) %{_libdir}/libdvbpsi.so
89 %{_includedir}/dvbpsi
90 %{_pkgconfigdir}/libdvbpsi.pc
91
92 %if %{with static_libs}
93 %files static
94 %defattr(644,root,root,755)
95 %{_libdir}/libdvbpsi.a
96 %endif
This page took 0.069236 seconds and 3 git commands to generate.