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

[email protected] (Diego Biurrun)
Newsgroups gmane.comp.video.videolan.libdvdcss,gmane.comp.video.videolan.libdvdcss.devel
Message-ID <[email protected]>
libdvdcss | branch: master | Diego Biurrun <[email protected]> | Mon Oct 20 11:59:01 2014 +0200| [62186151af70bf995c52c0a7e90a2ad160452888] | committer: Diego Biurrun

build: Generate RPM spec file from an autoconf template

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

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

 .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 <[email protected]>
 BuildRoot:      %_tmppath/%name-%version-%release-root
 Conflicts:      libdvdcss0.0.1, libdvdcss0.0.2

_______________________________________________
libdvdcss-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libdvdcss-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.