Commit 40ffc4b2 authored by Jean-Paul Saman's avatar Jean-Paul Saman

update rpm specfile

parent 531f8b93
...@@ -2,10 +2,9 @@ ...@@ -2,10 +2,9 @@
%define version 0.1.7 %define version 0.1.7
%define release 1 %define release 1
%define major 5 %define lib_name %{name}
%define lib_name %{name}%{major}
%define redhat 0 %define redhat 1
%if %redhat %if %redhat
# some mdk macros that do not exist in rh # some mdk macros that do not exist in rh
%define configure2_5x CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr %define configure2_5x CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
...@@ -14,30 +13,18 @@ ...@@ -14,30 +13,18 @@
# adjust define for Redhat. # adjust define for Redhat.
%endif %endif
Summary: A library for decoding and generating MPEG 2 and DVB PSI sections. Summary: A library for decoding and generating MPEG 2 and DVB PSI sections.
Name: %{name} Name: %{name}
Version: %{version} Version: %{version}
Release: %{release} Release: %{release}
Packager: Yves Duret <yves@zarb.org>
License: GPL License: GPL
URL: http://developers.videolan.org/libdvbpsi/ URL: http://developers.videolan.org/libdvbpsi/
Group: System/Libraries Group: System/Libraries
Source: http://www.videolan.org/pub/videolan/libdvbpsi/%{version}/%{name}%{major}-%{version}.tar.bz2 Source: http://www.videolan.org/pub/videolan/libdvbpsi/%{version}/%{name}-%{version}.tar.bz2
BuildRoot: %_tmppath/%name%major-%version-%release-root BuildRoot: %_tmppath/%name-%version-%release-root
%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.
Group: System/Libraries
Provides: %name Provides: %name
%description -n %{lib_name} %description
libdvbpsi is a simple library designed for MPEG 2 TS and DVB PSI tables libdvbpsi is a simple library designed for MPEG 2 TS and DVB PSI tables
decoding and generating. The important features are: decoding and generating. The important features are:
* PAT decoder and genarator. * PAT decoder and genarator.
...@@ -58,7 +45,6 @@ If you are going to develop programs which will manipulate MPEG 2 and DVB PSI ...@@ -58,7 +45,6 @@ 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 information you should install %{name}-devel. You'll also need to have
the %name package installed. the %name package installed.
%prep %prep
%setup -q -n %{lib_name}-%{version} %setup -q -n %{lib_name}-%{version}
...@@ -73,28 +59,34 @@ rm -rf %buildroot ...@@ -73,28 +59,34 @@ rm -rf %buildroot
%clean %clean
rm -rf %buildroot rm -rf %buildroot
%post -n %{lib_name} -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -n %{lib_name} -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files -n %{lib_name} %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc AUTHORS README COPYING ChangeLog %doc AUTHORS README COPYING ChangeLog
%{_libdir}/*.so.* %{_libdir}/*.so.*
%{_libdir}/*.so
%files -n %{lib_name}-devel %files -n %{lib_name}-devel
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING %doc COPYING NEWS
%{_libdir}/*a %{_libdir}/*a
%{_libdir}/*.so %{_libdir}/pkgconfig/libdvbpsi.pc
%{_includedir}/* %{_includedir}/*
%changelog %changelog
* Tue Dec, 18 2007 Jean-Paul Saman <jpsaman@videolan.org> * Tue Apr 13 2010 Jean-Paul Saman <jpsaman@videolan.org>
- add pkgconfig file libdvbpsi.pc
- removed packager and vendor from specfile, these should
be supplied by the package builder from ~/.rpmmacros
* Tue Dec 18 2007 Jean-Paul Saman <jpsaman@videolan.org>
- New VBI data descriptor support - New VBI data descriptor support
- 0.1.7 release - 0.1.7 release
* Thu Oct, 22 2007 Jean-Paul Saman <jpsaman@videolan.org> * Thu Oct 22 2007 Jean-Paul Saman <jpsaman@videolan.org>
- New cat support - New cat support
- Fix EIT discontinuities - Fix EIT discontinuities
- new example tool for checking an MPEG-2 TS file - new example tool for checking an MPEG-2 TS file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment