[vlc-devel] [PATCH] A few tweaks to the rpm spec file.

Sam Varshavchik mrsam at courier-mta.com
Sat Feb 14 18:18:22 CET 2015


Have make clean remove libdvdcss.spec that autoconf creates from
libdvdcss.spec.in

Include %{?dist} tag into the RPM release tag, this a convention with
most RPM-based distributions.

The rpm packages were missing a few files.
---
 Makefile.am       | 2 +-
 libdvdcss.spec.in | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 0469c0c..fff0579 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -66,7 +66,7 @@ stamp-doxygen: doc/doxygen.cfg src/libdvdcss.c src/dvdcss/dvdcss.h
 tools: test/csstest$(EXEEXT) test/dvd_region$(EXEEXT)

 clean-local:
-	-rm -Rf stamp-doxygen doc/doxygen_sqlite3.db doc/html
+	-rm -Rf stamp-doxygen doc/doxygen_sqlite3.db libdvdcss.spec doc/html

 install-apidoc:
 	$(MKDIR_P) $(DESTDIR)$(htmldir)
diff --git a/libdvdcss.spec.in b/libdvdcss.spec.in
index 0558661..b82963b 100644
--- a/libdvdcss.spec.in
+++ b/libdvdcss.spec.in
@@ -18,7 +18,7 @@

 Name:           %{name}
 Version:        %{version}
-Release:        %{release}
+Release:        %{release}%{?dist}
 Summary:        Library for accessing DVDs like block devices with transparent decryption
 Source:         %{name}-%{version}.tar.bz2
 License:        GPL
@@ -90,6 +90,7 @@ package installed.
 %files -n %{libname}
 %defattr(-,root,root)
 %doc AUTHORS COPYING NEWS
+%{_docdir}/libdvdcss
 %{_libdir}/*.so.*

 %files -n %{libname}-devel
@@ -98,6 +99,7 @@ package installed.
 %{_libdir}/*.a
 %{_libdir}/*.so
 %{_libdir}/*.la
+%{_libdir}/pkgconfig/*
 %{_includedir}/*

 %changelog
--
2.1.0





More information about the vlc-devel mailing list