[packages/libmpeg2] - cleaned up package naming mess derived from non-lib* mpeg2dec.spec: mpeg2dec app moved to mpeg2d

qboosh qboosh at pld-linux.org
Wed May 20 20:22:42 CEST 2020


commit f3ed845f0ace7e64934f5e7261929babe1466eb8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed May 20 20:23:11 2020 +0200

    - cleaned up package naming mess derived from non-lib* mpeg2dec.spec:
      mpeg2dec app moved to mpeg2dec package
      libraries moved from -libs to base package
    - release 6

 libmpeg2.spec | 57 +++++++++++++++++++++++++++++----------------------------
 1 file changed, 29 insertions(+), 28 deletions(-)
---
diff --git a/libmpeg2.spec b/libmpeg2.spec
index 4ba9d7b..51f74f9 100644
--- a/libmpeg2.spec
+++ b/libmpeg2.spec
@@ -1,10 +1,10 @@
-Summary:	MPEG-2 Decoder
-Summary(pl.UTF-8):	Dekoder plików MPEG-2
+Summary:	MPEG-2 Decoder library
+Summary(pl.UTF-8):	Biblioteka dekodująca pliki MPEG-2
 Name:		libmpeg2
 Version:	0.5.1
-Release:	5
+Release:	6
 License:	GPL v2+
-Group:		X11/Applications/Graphics
+Group:		Libraries
 #Source0Download: http://libmpeg2.sourceforge.net/downloads.html
 Source0:	http://libmpeg2.sourceforge.net/files/%{name}-%{version}.tar.gz
 # Source0-md5:	0f92c7454e58379b4a5a378485bbd8ef
@@ -21,34 +21,23 @@ BuildRequires:	libtool
 BuildRequires:	xorg-lib-libXext-devel
 BuildRequires:	xorg-lib-libXv-devel
 Requires:	%{name}-libs = %{version}-%{release}
-Provides:	mpeg2dec = %{version}
-Obsoletes:	mpeg2dec < 0.5.1
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-MPEG-2 Decoder.
-
-%description -l pl.UTF-8
-Dekoder MPEG-2.
-
-%package libs
-Summary:	MPEG-2 Decoder library
-Summary(pl.UTF-8):	Biblioteka dekodująca pliki MPEG-2
-Group:		Libraries
+Provides:	libmpeg2-libs = %{version}-%{release}
 Provides:	mpeg2dec-lib = %{version}
 Obsoletes:	mpeg2dec-lib < 0.5.1
+Obsoletes:	libmpeg2-libs < 0.5.1-6
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%description libs
+%description
 MPEG-2 Decoder library and extract_mpeg2 utility.
 
-%description libs -l pl.UTF-8
+%description -l pl.UTF-8
 Biblioteka dekodująca pliki MPEG-2 i narzędzie extract_mpeg2.
 
 %package devel
 Summary:	MPEG-2 Decoder development files
 Summary(pl.UTF-8):	Pliki dla programistów używających dekodera MPEG-2
 Group:		Development/Libraries
-Requires:	%{name}-libs = %{version}-%{release}
+Requires:	%{name} = %{version}-%{release}
 Provides:	mpeg2dec-devel = %{version}
 Obsoletes:	mpeg2dec-devel < 0.5.1
 
@@ -72,6 +61,18 @@ MPEG-2 Decoder static libraries.
 %description static -l pl.UTF-8
 Statyczne biblioteki dekodera MPEG-2.
 
+%package -n mpeg2dec
+Summary:	MPEG-2 Decoder
+Summary(pl.UTF-8):	Dekoder plików MPEG-2
+Group:		X11/Applications/Graphics
+Requires:	%{name} = %{version}-%{release}
+
+%description -n mpeg2dec
+MPEG-2 Decoder.
+
+%description -n mpeg2dec -l pl.UTF-8
+Dekoder MPEG-2.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -98,16 +99,11 @@ rm -rf $RPM_BUILD_ROOT
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post	libs -p /sbin/ldconfig
-%postun	libs -p /sbin/ldconfig
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/mpeg2dec
-%{_mandir}/man1/mpeg2dec.1*
-
-%files libs
-%defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README TODO
 %attr(755,root,root) %{_bindir}/corrupt_mpeg2
 %attr(755,root,root) %{_bindir}/extract_mpeg2
@@ -131,3 +127,8 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/libmpeg2.a
 %{_libdir}/libmpeg2convert.a
+
+%files -n mpeg2dec
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/mpeg2dec
+%{_mandir}/man1/mpeg2dec.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libmpeg2.git/commitdiff/f3ed845f0ace7e64934f5e7261929babe1466eb8



More information about the pld-cvs-commit mailing list