[packages/xvattr] - rel 2, disable gtk1
baggins
baggins at pld-linux.org
Mon Jun 1 22:41:19 CEST 2026
commit 2c404253620ca80ba650c2f7339bd65670e2c368
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Jun 1 22:41:08 2026 +0200
- rel 2, disable gtk1
utf8.patch | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
xvattr.spec | 19 ++++++++++++++++---
2 files changed, 76 insertions(+), 3 deletions(-)
---
diff --git a/xvattr.spec b/xvattr.spec
index 8fa50cb..370794d 100644
--- a/xvattr.spec
+++ b/xvattr.spec
@@ -1,15 +1,20 @@
+#
+# Conditional build:
+%bcond_with gtk1 # Build gxvattr binary
+#
Summary: Getting and setting Xv attributes
Summary(pl.UTF-8): Odczyt i ustawianie atrybutów Xv
Name: xvattr
Version: 1.3
-Release: 1
+Release: 2
License: GPL
Group: X11/Applications
Source0: http://www.dtek.chalmers.se/groups/dvd/dist/%{name}-%{version}.tar.gz
# Source0-md5: 041e0d1f2ebce216e69e08ce78ec2ceb
+Patch0: utf8.patch
BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXv-devel
-BuildRequires: gtk+-devel >= 0.99.7
+%{?with_gtk1:BuildRequires: gtk+-devel >= 0.99.7}
BuildRequires: perl-tools-pod
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -36,11 +41,17 @@ XV_BRIGHTNESS, XV_CONTRAST, XV_SATURATION, XV_HUE, XV_COLORKEY...
%prep
%setup -q
+%patch -P0 -p1
+
+%if %{without gtk1}
+%{__sed} -i -e 's/\(bin_PROGRAMS.*\)gxvattr/\1/' Makefile.in
+%endif
%build
%configure
-%{__make}
+%{__make} \
+ CFLAGS="%{rpmcflags}"
%install
rm -rf $RPM_BUILD_ROOT
@@ -57,6 +68,8 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/xvattr
%{_mandir}/man1/xvattr.1*
+%if %{with gtk1}
%files gtk
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/gxvattr
+%endif
diff --git a/utf8.patch b/utf8.patch
new file mode 100644
index 0000000..03cd383
--- /dev/null
+++ b/utf8.patch
@@ -0,0 +1,60 @@
+diff -ur xvattr-1.3.orig/xvattr.pod xvattr-1.3/xvattr.pod
+--- xvattr-1.3.orig/xvattr.pod 2002-06-13 21:44:08.000000000 +0200
++++ xvattr-1.3/xvattr.pod 2026-06-01 22:38:35.313597782 +0200
+@@ -1,5 +1,7 @@
+ =pod
+
++=encoding UTF-8
++
+ =head1 NAME
+
+ xvattr - Query/Set X11 XVideo Setting(s)
+@@ -103,7 +105,7 @@
+
+ =head1 AUTHOR
+
+-Bj�rn Englund. Send bug reports to C<d4bjorn at dtek.chalmers.se>
++Björn Englund. Send bug reports to C<d4bjorn at dtek.chalmers.se>
+ C<rocky at panix.com> turned the README into this document.
+
+
+@@ -114,7 +116,7 @@
+
+ =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
+Only in xvattr-1.3: xvattr.pod~
+diff -ur xvattr-1.3.orig/xvattr.pod.in xvattr-1.3/xvattr.pod.in
+--- xvattr-1.3.orig/xvattr.pod.in 2002-03-03 21:08:28.000000000 +0100
++++ xvattr-1.3/xvattr.pod.in 2026-06-01 22:38:25.900219006 +0200
+@@ -1,5 +1,7 @@
+ =pod
+
++=encoding UTF-8
++
+ =head1 NAME
+
+ @PACKAGE@ - Query/Set X11 XVideo Setting(s)
+@@ -103,7 +105,7 @@
+
+ =head1 AUTHOR
+
+-Bj�rn Englund. Send bug reports to C<d4bjorn at dtek.chalmers.se>
++Björn Englund. Send bug reports to C<d4bjorn at dtek.chalmers.se>
+ C<rocky at panix.com> turned the README into this document.
+
+
+@@ -114,7 +116,7 @@
+
+ =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
+Only in xvattr-1.3: xvattr.pod.in~
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xvattr.git/commitdiff/2c404253620ca80ba650c2f7339bd65670e2c368
More information about the pld-cvs-commit
mailing list