Package init
This commit is contained in:
commit
c801d8d214
76
xvattr-1.3-Convert-documentation-to-UTF-8.patch
Normal file
76
xvattr-1.3-Convert-documentation-to-UTF-8.patch
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
From aac7c4e1028a74ff03d7a855bb300afa789ca8a4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||||
|
Date: Mon, 26 Oct 2015 13:24:59 +0100
|
||||||
|
Subject: [PATCH] Convert documentation to UTF-8
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
Signed-off-by: Petr PÃsaÅ™ <ppisar@redhat.com>
|
||||||
|
---
|
||||||
|
AUTHORS | 4 ++--
|
||||||
|
ChangeLog | 4 ++--
|
||||||
|
xvattr.pod.in | 6 ++++--
|
||||||
|
3 files changed, 8 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/AUTHORS b/AUTHORS
|
||||||
|
index ec0e8d3..f68e848 100644
|
||||||
|
--- a/AUTHORS
|
||||||
|
+++ b/AUTHORS
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
-Björn Englund <d4bjorn@dtek.chalmers.se> (xvattr)
|
||||||
|
-Martin Norbäck <d95mback@dtek.chalmers.se> (gxvattr)
|
||||||
|
+Björn Englund <d4bjorn@dtek.chalmers.se> (xvattr)
|
||||||
|
+Martin Norbäck <d95mback@dtek.chalmers.se> (gxvattr)
|
||||||
|
R. Bernstein <rocky@panix.com> (automake/autoconf/man-page)
|
||||||
|
Greetings to Billy Biggs who hacked together a very similar program
|
||||||
|
(with the same name) a week before this program was created.
|
||||||
|
diff --git a/ChangeLog b/ChangeLog
|
||||||
|
index 03b3ac3..c34a8a0 100644
|
||||||
|
--- a/ChangeLog
|
||||||
|
+++ b/ChangeLog
|
||||||
|
@@ -1,9 +1,9 @@
|
||||||
|
-2001-11-09 Björn Englund <d4bjorn@dtek.chalmers.se>
|
||||||
|
+2001-11-09 Björn Englund <d4bjorn@dtek.chalmers.se>
|
||||||
|
|
||||||
|
* xvattr.c: version 1.1
|
||||||
|
Tell when the Xv extension is not found.
|
||||||
|
Do not list the values of attributes that are not gettable.
|
||||||
|
|
||||||
|
-2001-11-08 Björn Englund <d4bjorn@dtek.chalmers.se>
|
||||||
|
+2001-11-08 Björn Englund <d4bjorn@dtek.chalmers.se>
|
||||||
|
|
||||||
|
* xvattr.c: version 1.0
|
||||||
|
diff --git a/xvattr.pod.in b/xvattr.pod.in
|
||||||
|
index c8bebb6..679a640 100644
|
||||||
|
--- a/xvattr.pod.in
|
||||||
|
+++ b/xvattr.pod.in
|
||||||
|
@@ -1,5 +1,7 @@
|
||||||
|
=pod
|
||||||
|
|
||||||
|
+=encoding utf8
|
||||||
|
+
|
||||||
|
=head1 NAME
|
||||||
|
|
||||||
|
@PACKAGE@ - Query/Set X11 XVideo Setting(s)
|
||||||
|
@@ -103,7 +105,7 @@ Example:
|
||||||
|
|
||||||
|
=head1 AUTHOR
|
||||||
|
|
||||||
|
-Björn Englund. Send bug reports to C<d4bjorn@dtek.chalmers.se>
|
||||||
|
+Björn Englund. Send bug reports to C<d4bjorn@dtek.chalmers.se>
|
||||||
|
C<rocky@panix.com> turned the README into this document.
|
||||||
|
|
||||||
|
|
||||||
|
@@ -114,7 +116,7 @@ and L<XvGetPortAttribute>.
|
||||||
|
|
||||||
|
=head1 COPYRIGHT
|
||||||
|
|
||||||
|
- Copyright (C) 2001-2002 Björn Englund
|
||||||
|
+ Copyright (C) 2001-2002 Björn Englund
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
--
|
||||||
|
2.4.3
|
||||||
|
|
||||||
49
xvattr-1.3-Make-GTK-tools-optional.patch
Normal file
49
xvattr-1.3-Make-GTK-tools-optional.patch
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
From 1017e62f6f55d074d955e2920f9eded59b2211f5 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||||
|
Date: Mon, 26 Oct 2015 14:07:56 +0100
|
||||||
|
Subject: [PATCH] Make GTK tools optional
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||||
|
---
|
||||||
|
Makefile.am | 5 ++++-
|
||||||
|
configure.in | 5 ++++-
|
||||||
|
2 files changed, 8 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile.am b/Makefile.am
|
||||||
|
index 81bb95a..9159666 100644
|
||||||
|
--- a/Makefile.am
|
||||||
|
+++ b/Makefile.am
|
||||||
|
@@ -1,6 +1,9 @@
|
||||||
|
#
|
||||||
|
|
||||||
|
-bin_PROGRAMS = xvattr gxvattr
|
||||||
|
+bin_PROGRAMS = xvattr
|
||||||
|
+if BUILD_GTK
|
||||||
|
+bin_PROGRAMS += gxvattr
|
||||||
|
+endif
|
||||||
|
xvattr_SOURCES = xvattr.c
|
||||||
|
|
||||||
|
xvattr_LDADD = $(X_LIBS) $(X_PRE_LIBS) $(X_EXTRA_LIBS) -lX11 -lXext @LIBOBJS@
|
||||||
|
diff --git a/configure.in b/configure.in
|
||||||
|
index 8c2eeb9..bd735b9 100644
|
||||||
|
--- a/configure.in
|
||||||
|
+++ b/configure.in
|
||||||
|
@@ -16,8 +16,11 @@ dnl Checks for X11
|
||||||
|
dnl
|
||||||
|
AC_PATH_XTRA
|
||||||
|
|
||||||
|
-dnl check for gtk
|
||||||
|
+dnl check for gtk.
|
||||||
|
AM_PATH_GTK
|
||||||
|
+AC_ARG_ENABLE(gtk, [AS_HELP_STRING([--disable-gtk],
|
||||||
|
+ [Do not build GTK interface])])
|
||||||
|
+AM_CONDITIONAL([BUILD_GTK], [test "$enable_gtk" != "no"])
|
||||||
|
|
||||||
|
dnl Checks for libraries.
|
||||||
|
AC_ARG_WITH(xv-path,[ --with-xv-path=path Where libXv is installed],
|
||||||
|
--
|
||||||
|
2.4.3
|
||||||
|
|
||||||
31
xvattr-1.3-Use-GTK_CFLAGS-properly.patch
Normal file
31
xvattr-1.3-Use-GTK_CFLAGS-properly.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From c1c1e7b0d0fccaa9b3ea9284c4e09fdc0058a1ec Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||||
|
Date: Mon, 26 Oct 2015 13:49:30 +0100
|
||||||
|
Subject: [PATCH] Use GTK_CFLAGS properly
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
Do not reset CFLAGS and do do it for gxvattr only.
|
||||||
|
|
||||||
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||||
|
---
|
||||||
|
Makefile.am | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile.am b/Makefile.am
|
||||||
|
index 7d7ba22..81bb95a 100644
|
||||||
|
--- a/Makefile.am
|
||||||
|
+++ b/Makefile.am
|
||||||
|
@@ -6,7 +6,7 @@ xvattr_SOURCES = xvattr.c
|
||||||
|
xvattr_LDADD = $(X_LIBS) $(X_PRE_LIBS) $(X_EXTRA_LIBS) -lX11 -lXext @LIBOBJS@
|
||||||
|
|
||||||
|
gxvattr_SOURCES = gxvattr.c
|
||||||
|
-CFLAGS = @GTK_CFLAGS@
|
||||||
|
+gxvattr_CPPFLAGS = @CPPFLAGS@ @GTK_CFLAGS@
|
||||||
|
gxvattr_LDADD = @GTK_LIBS@ $(X_LIBS) $(X_PRE_LIBS) $(X_EXTRA_LIBS) -lX11 -lXext
|
||||||
|
noinst_HEADERS = getopt.h
|
||||||
|
|
||||||
|
--
|
||||||
|
2.4.3
|
||||||
|
|
||||||
BIN
xvattr-1.3.tar.gz
Normal file
BIN
xvattr-1.3.tar.gz
Normal file
Binary file not shown.
58
xvattr.spec
Normal file
58
xvattr.spec
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
Name: xvattr
|
||||||
|
Version: 1.3
|
||||||
|
Release: 38
|
||||||
|
Summary: A software for getting and setting values of Xv attributes
|
||||||
|
License: GPLv2+
|
||||||
|
URL: http://www.dtek.chalmers.se/groups/dvd/
|
||||||
|
Source0: http://www.dtek.chalmers.se/~dvd/dist/xvattr-1.3.tar.gz
|
||||||
|
Patch0: xvattr-1.3-Convert-documentation-to-UTF-8.patch
|
||||||
|
Patch1: xvattr-1.3-Use-GTK_CFLAGS-properly.patch
|
||||||
|
Patch2: xvattr-1.3-Make-GTK-tools-optional.patch
|
||||||
|
|
||||||
|
BuildRequires: gcc git autoconf automake coreutils gtk+-devel
|
||||||
|
BuildRequires: make libX11-devel libXv-devel perl-podlators
|
||||||
|
|
||||||
|
%description
|
||||||
|
xvattr is a software that allows you to get and set the values of Xv
|
||||||
|
attributes (brightness, color key, etc.) of a X11 server.
|
||||||
|
|
||||||
|
%package -n gxvattr
|
||||||
|
Summary: GTK1-based GUI for Xv attributes
|
||||||
|
|
||||||
|
%description -n gxvattr
|
||||||
|
GTK1-based GUI for inspecting and setting Xv attributes.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Doc files for xvattr
|
||||||
|
Buildarch: noarch
|
||||||
|
|
||||||
|
%description help
|
||||||
|
The xvattr-help package contains doc files for xvattr.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n xvattr-1.3 -p1 -S git
|
||||||
|
autoreconf -ivf
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --enable-gtk
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc AUTHORS
|
||||||
|
%license COPYING
|
||||||
|
%{_bindir}/xvattr
|
||||||
|
|
||||||
|
%files -n gxvattr
|
||||||
|
%license COPYING
|
||||||
|
%{_bindir}/gxvattr
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%doc ChangeLog NEWS README
|
||||||
|
%{_mandir}/man1/xvattr.1.gz
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Aug 30 2019 luhuaxin <luhuaxin@huawei.com> - 1.3-38
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user