[libdvdcss-devel] build: Generate RPM spec file from an autoconf template

Diego Biurrun git at videolan.org
Mon Oct 20 19:14:56 CEST 2014


libdvdcss | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Oct 20 11:59:01 2014 +0200| [317801b7bf56916fc78001e678ef19f79fb648cb] | committer: Jean-Baptiste Kempf

build: Generate RPM spec file from an autoconf template

This allows filling in things like the library version number automatically.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=317801b7bf56916fc78001e678ef19f79fb648cb
---

 .gitignore                          |    1 +
 configure.ac                        |    1 +
 libdvdcss.spec => libdvdcss.spec.in |    6 +++---
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore
index 3b03515..82241fa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,7 @@
 /depcomp
 /install-sh
 /libdvdcss.la
+/libdvdcss.spec
 /libdvdcss*.tar.*
 /libtool
 /ltmain.sh
diff --git a/configure.ac b/configure.ac
index 860705f..6d58e96 100644
--- a/configure.ac
+++ b/configure.ac
@@ -239,6 +239,7 @@ AM_CONDITIONAL([APIDOC], [test "x$DOXYGEN" != "x"])
 AC_SUBST(DVDCSS_LDFLAGS)
 AC_OUTPUT([
   Makefile
+  libdvdcss.spec
   doc/doxygen.cfg
   src/libdvdcss.pc
 ])
diff --git a/libdvdcss.spec b/libdvdcss.spec.in
similarity index 98%
rename from libdvdcss.spec
rename to libdvdcss.spec.in
index 6cef084..b86782f 100644
--- a/libdvdcss.spec
+++ b/libdvdcss.spec.in
@@ -1,5 +1,5 @@
-%define name    libdvdcss
-%define version 1.2.9
+%define name    @PACKAGE_NAME@
+%define version @PACKAGE_VERSION@
 %define release 1
 
 %define major   2
@@ -23,7 +23,7 @@ Summary:        Library for accessing DVDs like block devices with transparent d
 Source:         %{name}-%{version}.tar.bz2
 License:        GPL
 Group:          System/Libraries
-URL:            http://www.videolan.org/libdvdcss/
+URL:            @PACKAGE_URL@
 Packager:       Yves Duret <yves at zarb.org>
 BuildRoot:      %_tmppath/%name-%version-%release-root
 Conflicts:      libdvdcss0.0.1, libdvdcss0.0.2



More information about the libdvdcss-devel mailing list