Diego Biurrun
2014-10-20 17:10:21 UTC
libdvdcss | branch: master | Diego Biurrun <***@biurrun.de> | Mon Oct 20 11:59:01 2014 +0200| [12ba391ec75dd389f1a4b094e4a475b364726334] | committer: Jean-Baptiste Kempf
build: Generate RPM spec file from an autoconf template
This allows filling in things like the library version number automatically.
.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 <***@zarb.org>
BuildRoot: %_tmppath/%name-%version-%release-root
Conflicts: libdvdcss0.0.1, libdvdcss0.0.2
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=12ba391ec75dd389f1a4b094e4a475b364726334
---.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 <***@zarb.org>
BuildRoot: %_tmppath/%name-%version-%release-root
Conflicts: libdvdcss0.0.1, libdvdcss0.0.2