commit 6ebcc8d01db060c1a44ef07a7ddfdcc688dea27c
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Thu Mar 5 09:58:37 2020 +0000
Update to 1.1 release
.gitignore | 1 +
m2vrequantiser.spec | 29 +++++++++++++++++------------
make_dest_strip.patch | 27 +++++++++++++++++++++++++++
sources | 2 +-
4 files changed, 46 insertions(+), 13 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 4e0604e..9766d6f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
M2VRequantizer.tar.gz
+/M2VRequantiser-v1.1.tar.gz
diff --git a/m2vrequantiser.spec b/m2vrequantiser.spec
index 7315bc8..666c873 100644
--- a/m2vrequantiser.spec
+++ b/m2vrequantiser.spec
@@ -1,11 +1,14 @@
Name: m2vrequantiser
-Version: 20030929
-Release: 14%{?dist}
+Epoch: 1
+Version: 1.1
+Release: 1%{?dist}
Summary: MPEG-2 stream requantizer
-License: GPL+
-URL:
http://www.metakine.com/
-Source0:
http://www.xeatre.tv/community/burn/contrib/M2VRequantizer.tar.gz
+License: GPLv2
+URL:
https://launchpad.net/m2vrequantiser
+Source0: %{url}/trunk/%{version}/+download/M2VRequantiser-v%{version}.tar.gz
+Patch0: make_dest_strip.patch
+
BuildRequires: gcc
%description
@@ -14,26 +17,28 @@ recompressing.
%prep
-%setup -q -n M2VRequantizer
-rm -f requant
+%autosetup -n M2VRequantiser-v%{version}
%build
-%{__cc} $RPM_OPT_FLAGS -lm -o requant main.c
+%set_build_flags
+%make_build
%install
-install -Dpm 755 requant $RPM_BUILD_ROOT%{_bindir}/requant
-ln -s requant $RPM_BUILD_ROOT%{_bindir}/M2VRequantiser
+%make_install PREFIX=%{_prefix}
%files
+%doc README.txt
+%license LICENSE.txt
%{_bindir}/M2VRequantiser
-%{_bindir}/requant
-
%changelog
+* Thu Mar 05 2020 leigh123linux <leigh123linux(a)googlemail.com> - 1:1.1-1
+- Update to 1.1 release
+
* Wed Feb 05 2020 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
20030929-14
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
diff --git a/make_dest_strip.patch b/make_dest_strip.patch
new file mode 100644
index 0000000..42dbecd
--- /dev/null
+++ b/make_dest_strip.patch
@@ -0,0 +1,27 @@
+--- a/Makefile
++++ b/Makefile
+@@ -4,7 +4,7 @@
+ CFLAGS += -D_LARGEFILE_SOURCE -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_REENTRANT
+ CFLAGS += -Wall
+ OBJECTS = main.o
+-LDFLAGS += -s
++LDFLAGS +=
+ LOADLIBES += -lm
+ INSTALL ?= install
+
+@@ -17,11 +17,11 @@
+ $(CC) $(CFLAGS) -c $<
+
+ install: all
+- $(INSTALL) -d $(PREFIX)/bin
+- $(INSTALL) -m 755 M2VRequantiser $(PREFIX)/bin
++ $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
++ $(INSTALL) -m 755 M2VRequantiser $(DESTDIR)$(PREFIX)/bin
+
+ uninstall:
+- rm -f $(PREFIX)/bin/M2VRequantiser
++ rm -f $(DESTDIR)$(PREFIX)/bin/M2VRequantiser
+
+ clean:
+ rm -f M2VRequantiser *.o *~ core
+
diff --git a/sources b/sources
index 71172bb..1af36ca 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-5d01e53b6051e281a1681654c8481bac M2VRequantizer.tar.gz
+SHA512 (M2VRequantiser-v1.1.tar.gz) =
f9c3d36c835fc20a4e2cad4d74796a1d1777fe6c90893da0885c1e49138b7715e93e7836b0a9a792009962513704e1e04d322a9f2b42c526c2dcfed71ef5929b