libdvbpsi.spec 3.45 KB
Newer Older
1
%define name		libdvbpsi
Jean-Paul Saman's avatar
Jean-Paul Saman committed
2
%define version		0.1.7
3
%define release		1
Yves Duret's avatar
Yves Duret committed
4

5
%define major		5
6 7
%define lib_name	%{name}%{major}

8 9
%define redhat 0
%if %redhat
Yves Duret's avatar
Yves Duret committed
10 11 12 13 14 15 16 17
# some mdk macros that do not exist in rh
%define configure2_5x CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
%define make %__make
%define makeinstall_std %__make DESTDIR="$RPM_BUILD_ROOT" install
# adjust define for Redhat.
%endif


18 19 20 21
Summary:	A library for decoding and generating MPEG 2 and DVB PSI sections.
Name:		%{name}
Version:	%{version}
Release:	%{release}
22
Packager:	Yves Duret <yves@zarb.org>
Christophe Massiot's avatar
Christophe Massiot committed
23
License:	GPL
Yves Duret's avatar
Yves Duret committed
24
URL:		http://developers.videolan.org/libdvbpsi/
Yves Duret's avatar
Yves Duret committed
25
Group:		System/Libraries
26
Source:		http://www.videolan.org/pub/videolan/libdvbpsi/%{version}/%{name}%{major}-%{version}.tar.bz2
Sam Hocevar's avatar
Sam Hocevar committed
27
BuildRoot:	%_tmppath/%name%major-%version-%release-root
28 29 30 31 32 33 34 35 36

%description
libdvbpsi is a simple library designed for MPEG 2 TS and DVB PSI tables
decoding and generating. The important features are:
 * PAT decoder and genarator.
 * PMT decoder and generator.

%package -n %{lib_name}
Summary:	A library for decoding and generating MPEG 2 and DVB PSI sections.
Yves Duret's avatar
Yves Duret committed
37
Group:		System/Libraries
38 39 40 41 42 43 44 45 46 47 48
Provides:	%name

%description -n %{lib_name}
libdvbpsi is a simple library designed for MPEG 2 TS and DVB PSI tables
decoding and generating. The important features are:
 * PAT decoder and genarator.
 * PMT decoder and generator.

%package -n %{lib_name}-devel
Summary:	Development tools for programs which will use the libdvbpsi library.
Group:		Development/C
49
Provides:	%name-devel = %version-%release
Yves Duret's avatar
Yves Duret committed
50
Requires:	%{lib_name} = %version-%release
51 52 53 54 55 56 57 58 59 60 61 62

%description -n %{lib_name}-devel
The %{name}-devel package includes the header files and static libraries
necessary for developing programs which will manipulate MPEG 2 and DVB PSI
information using the %{name} library.

If you are going to develop programs which will manipulate MPEG 2 and DVB PSI
information you should install %{name}-devel.  You'll also need to have
the %name package installed.


%prep
63
%setup -q -n %{lib_name}-%{version}
64 65

%build
Yves Duret's avatar
Yves Duret committed
66
%configure2_5x --enable-release
Yves Duret's avatar
Yves Duret committed
67
%make 
68 69

%install
Yves Duret's avatar
Yves Duret committed
70 71
rm -rf %buildroot
%makeinstall_std
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87

%clean
rm -rf %buildroot

%post -n %{lib_name} -p /sbin/ldconfig

%postun -n %{lib_name} -p /sbin/ldconfig

%files -n %{lib_name}
%defattr(-,root,root,-)
%doc AUTHORS README COPYING ChangeLog
%{_libdir}/*.so.*

%files -n %{lib_name}-devel
%defattr(-,root,root)
%doc COPYING
Yves Duret's avatar
Yves Duret committed
88
%{_libdir}/*a
89 90 91 92
%{_libdir}/*.so
%{_includedir}/*

%changelog
Jean-Paul Saman's avatar
Jean-Paul Saman committed
93 94 95 96
* Tue Dec, 18 2007 Jean-Paul Saman <jpsaman@videolan.org>
- New VBI data descriptor support
- 0.1.7 release

97 98 99 100 101 102
* Thu Oct, 22 2007 Jean-Paul Saman <jpsaman@videolan.org>
- New cat support
- Fix EIT discontinuities
- new example tool for checking an MPEG-2 TS file
- 0.1.6 release

103 104 105 106
* Thu Sep 22 2005 Jean-Paul Saman <jpsaman@videolan.org>
- Remove conflicting redefine of release
- Fix typo's

107 108 109
* Wed Jul 6 2005 Sam Hocevar <sam+rpm@zoy.org>
- 0.1.5 release.

110 111 112
* Fri Jan 2 2004 Sam Hocevar <sam@zoy.org>
- 0.1.4 release.

113 114 115
* Tue Jul 29 2003 Yves Duret <yves@zarb.org>
- 0.1.3 release.

Yves Duret's avatar
Yves Duret committed
116 117 118 119 120 121
* Fri Dec 13 2002 Yves Duret <yves@zarb.org> 0.1.2-2mdk
- s#Copyright#License#
- include the libtool .la files.
- use macros.
- update URL: tag.

122 123 124
* Fri Oct 11 2002 Samuel Hocevar <sam@zoy.org>
- 0.1.2 release.

125 126 127
* Sat May 18 2002 Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
- 0.1.1 release.

128 129 130 131 132 133
* Mon Apr 8 2002 Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
- split into two separate packages.

* Thu Apr 4 2002 Jean-Paul Saman <saman@natlab.research.philips.com>
- first version of package for redhat systems.