aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Paul Saman <jpsaman@videolan.org>2010-04-23 08:14:46 +0000
committerJean-Paul Saman <jpsaman@videolan.org>2010-04-23 08:14:46 +0000
commit9031efc3f2aaee571f589ae8ea19999de65959bd (patch)
treea9ccaa82dfde688765bdd4da5bf3dca26c5c8342
parent40ffc4b2d0e795df5a3311af9a909e4144a168d7 (diff)
libdvbpsi.spec: keep version consistent
- added libdvbpsi.spec.in - generate libdvbpsi.spec from configure
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac3
-rw-r--r--libdvbpsi.spec6
-rw-r--r--libdvbpsi.spec.in129
4 files changed, 137 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index f0e0612..67b2d16 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,7 +3,7 @@
SUBDIRS = src examples misc
DIST_SUBDIRS = $(SUBDIRS) doc debian wince
-EXTRA_DIST = libdvbpsi.spec libdvbpsi.pc.in bootstrap
+EXTRA_DIST = libdvbpsi.spec libdvbpsi.spec.in libdvbpsi.pc.in bootstrap
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libdvbpsi.pc
diff --git a/configure.ac b/configure.ac
index 8389f03..ee271d8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,7 +82,8 @@ AC_OUTPUT([Makefile
doc/Makefile
debian/Makefile
wince/Makefile
- libdvbpsi.pc])
+ libdvbpsi.pc
+ libdvbpsi.spec])
echo "
libdvbpsi configuration
diff --git a/libdvbpsi.spec b/libdvbpsi.spec
index 8fe2b34..3538d42 100644
--- a/libdvbpsi.spec
+++ b/libdvbpsi.spec
@@ -4,7 +4,7 @@
%define lib_name %{name}
-%define redhat 1
+%define redhat 0
%if %redhat
# some mdk macros that do not exist in rh
%define configure2_5x CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
@@ -23,6 +23,7 @@ Group: System/Libraries
Source: http://www.videolan.org/pub/videolan/libdvbpsi/%{version}/%{name}-%{version}.tar.bz2
BuildRoot: %_tmppath/%name-%version-%release-root
Provides: %name
+Prefix: /usr
%description
libdvbpsi is a simple library designed for MPEG 2 TS and DVB PSI tables
@@ -77,6 +78,9 @@ rm -rf %buildroot
%{_includedir}/*
%changelog
+* Fri Apr 23 2010 Jean-Paul Saman <jpsaman@videolan.org>
+- generalized libdvbpsi.spec
+
* Tue Apr 13 2010 Jean-Paul Saman <jpsaman@videolan.org>
- add pkgconfig file libdvbpsi.pc
- removed packager and vendor from specfile, these should
diff --git a/libdvbpsi.spec.in b/libdvbpsi.spec.in
new file mode 100644
index 0000000..cacfa2f
--- /dev/null
+++ b/libdvbpsi.spec.in
@@ -0,0 +1,129 @@
+%define name libdvbpsi
+%define version @PACKAGE_VERSION@
+%define release 1
+
+%define lib_name %{name}
+
+%define redhat 0
+%if %redhat
+# 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
+
+Summary: A library for decoding and generating MPEG 2 and DVB PSI sections.
+Name: %{name}
+Version: %{version}
+Release: %{release}
+License: GPL
+URL: http://developers.videolan.org/libdvbpsi/
+Group: System/Libraries
+Source: http://www.videolan.org/pub/videolan/libdvbpsi/%{version}/%{name}-%{version}.tar.bz2
+BuildRoot: %_tmppath/%name-%version-%release-root
+Provides: %name
+Prefix: @prefix@
+
+%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}-devel
+Summary: Development tools for programs which will use the libdvbpsi library.
+Group: Development/C
+Provides: %name-devel = %version-%release
+Requires: %{lib_name} = %version-%release
+
+%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
+%setup -q -n %{lib_name}-%{version}
+
+%build
+%configure2_5x --enable-release
+%make
+
+%install
+rm -rf %buildroot
+%makeinstall_std
+
+%clean
+rm -rf %buildroot
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS README COPYING ChangeLog
+%{_libdir}/*.so.*
+%{_libdir}/*.so
+
+%files -n %{lib_name}-devel
+%defattr(-,root,root)
+%doc COPYING NEWS
+%{_libdir}/*a
+%{_libdir}/pkgconfig/libdvbpsi.pc
+%{_includedir}/*
+
+%changelog
+* Fri Apr 23 2010 Jean-Paul Saman <jpsaman@videolan.org>
+- generalized libdvbpsi.spec
+
+* 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
+- 0.1.7 release
+
+* 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
+
+* Thu Sep 22 2005 Jean-Paul Saman <jpsaman@videolan.org>
+- Remove conflicting redefine of release
+- Fix typo's
+
+* Wed Jul 6 2005 Sam Hocevar <sam+rpm@zoy.org>
+- 0.1.5 release.
+
+* Fri Jan 2 2004 Sam Hocevar <sam@zoy.org>
+- 0.1.4 release.
+
+* Tue Jul 29 2003 Yves Duret <yves@zarb.org>
+- 0.1.3 release.
+
+* 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.
+
+* Fri Oct 11 2002 Samuel Hocevar <sam@zoy.org>
+- 0.1.2 release.
+
+* Sat May 18 2002 Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
+- 0.1.1 release.
+
+* 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.
+

Privacy Policy