[xorg-x11-drv-nvidia] Remove prelink
by Leigh Scott
commit cc30ec0f7de842f6962bbc69d892cdc357c9ff47
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Fri Feb 24 16:03:07 2017 +0000
Remove prelink
xorg-x11-drv-nvidia.spec | 10 ----------
1 file changed, 10 deletions(-)
---
diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec
index d0054c8..e2848a6 100644
--- a/xorg-x11-drv-nvidia.spec
+++ b/xorg-x11-drv-nvidia.spec
@@ -361,10 +361,6 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d
install -pm 0644 %{SOURCE8} $RPM_BUILD_ROOT%{_datadir}/X11/xorg.conf.d/nvidia.conf
%endif
-#Avoid prelink to mess with nvidia libs - rfbz#3258
-mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d
-touch $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d/nvidia-%{_lib}.conf
-
#Install the initscript
tar jxf nvidia-persistenced-init.tar.bz2
%if 0%{?rhel} > 6 || 0%{?fedora} >= 15
@@ -407,11 +403,6 @@ if [ "$1" -eq "1" ]; then
fi
fi
-%pre libs
-if [ -d %{_sysconfdir}/prelink.conf.d ]; then
-echo "-b %{_nvidia_libdir}" > %{_sysconfdir}/prelink.conf.d/nvidia-%{_lib}.conf
-fi
-
%post
/sbin/ldconfig
if [ "$1" -eq "1" ]; then
@@ -569,7 +560,6 @@ fi ||:
%dir %{_nvidia_libdir}
%dir %{_nvidia_libdir}/tls
%endif
-%ghost %{_sysconfdir}/prelink.conf.d/nvidia-%{_lib}.conf
%{_nvidia_libdir}/alternate-install-present
%{_nvidia_libdir}/*.so.*
%if 0%{?rhel}
7 years, 7 months
[xorg-x11-drv-nvidia] RHEL 6 desktop-file-utils commands are more limited
by Leigh Scott
commit 9380f1efcc26ae68e5362344597702f7f697c089
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Fri Feb 24 10:43:00 2017 +0000
RHEL 6 desktop-file-utils commands are more limited
xorg-x11-drv-nvidia.spec | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec
index 81b9598..d0054c8 100644
--- a/xorg-x11-drv-nvidia.spec
+++ b/xorg-x11-drv-nvidia.spec
@@ -330,13 +330,11 @@ touch -r %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xorg.conf.d/99-nvidia.conf
# Comment Xorg abi override
#install -pm 0644 %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xorg.conf.d
-# Desktop entry for nvidia-settings
+# Fix desktop file and validate
+sed -i -e 's|__UTILS_PATH__/||g' -e 's|__PIXMAP_PATH__/||g' nvidia-settings.desktop
+sed -i -e 's|nvidia-settings.png|nvidia-settings|g' nvidia-settings.desktop
desktop-file-install --vendor "" \
--dir $RPM_BUILD_ROOT%{_datadir}/applications/ \
-%if 0%{?rhel} > 6 || 0%{?fedora} >= 15
- --set-icon=nvidia-settings \
- --set-key=Exec --set-value=nvidia-settings \
-%endif
nvidia-settings.desktop
%if 0%{?rhel} < 8 || 0%{?fedora} <= 24
7 years, 7 months
[xorg-x11-drv-nvidia] build requires libappstream-glib doesn't need a isa
by Leigh Scott
commit 111f20263b2cdaada09e75b91bb0b89fda0736e9
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Fri Feb 24 10:37:06 2017 +0000
build requires libappstream-glib doesn't need a isa
xorg-x11-drv-nvidia.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec
index e3d2f82..81b9598 100644
--- a/xorg-x11-drv-nvidia.spec
+++ b/xorg-x11-drv-nvidia.spec
@@ -54,7 +54,7 @@ Requires(postun): systemd
%if 0%{?fedora} >= 25
# AppStream metadata generation
BuildRequires: python2
-BuildRequires: libappstream-glib%{?_isa} >= 0.6.3
+BuildRequires: libappstream-glib >= 0.6.3
%endif
Requires(post): ldconfig
7 years, 7 months
[xorg-x11-drv-nvidia] RHEL 6 does not have the same read-only modprobe directory available as in RHEL 7+/Fedora
by Leigh Scott
commit 72120cf8f646b76801ee03a2441be2355baa8b23
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Fri Feb 24 10:22:15 2017 +0000
RHEL 6 does not have the same read-only modprobe directory available as in RHEL 7+/Fedora
xorg-x11-drv-nvidia.spec | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec
index 95b5367..e3d2f82 100644
--- a/xorg-x11-drv-nvidia.spec
+++ b/xorg-x11-drv-nvidia.spec
@@ -9,6 +9,12 @@
%global _glvnd_libdir %{_libdir}/libglvnd
%endif
+%if 0%{?rhel} == 6
+%global _modprobe_d %{_sysconfdir}/modprobe.d/
+%else
+%global _modprobe_d %{_prefix}/lib/modprobe.d/
+%endif
+
%global debug_package %{nil}
%global __strip /bin/true
@@ -280,8 +286,8 @@ echo -e "%{_nvidia_libdir} \n%{_glvnd_libdir} \n" > $RPM_BUILD_ROOT%{_sysconfdir
%endif
#Blacklist nouveau (since F-11)
-install -m 0755 -d $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d/
-install -p -m 0644 %{SOURCE6} $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d/
+install -m 0755 -d $RPM_BUILD_ROOT%{_modprobe_d}/
+install -p -m 0644 %{SOURCE6} $RPM_BUILD_ROOT%{_modprobe_d}/
# Install binaries
install -m 0755 -d $RPM_BUILD_ROOT%{_bindir}
@@ -518,7 +524,7 @@ fi ||:
%endif
# Comment Xorg abi override
#%%config %%{_sysconfdir}/X11/xorg.conf.d/00-ignoreabi.conf
-%config(noreplace) %{_prefix}/lib/modprobe.d/blacklist-nouveau.conf
+%config(noreplace) %{_modprobe_d}/blacklist-nouveau.conf
%config(noreplace) %{_sysconfdir}/X11/nvidia-xorg.conf
%config %{_sysconfdir}/xdg/autostart/nvidia-settings.desktop
%{_bindir}/nvidia-bug-report.sh
7 years, 7 months
[xorg-x11-drv-nvidia] reorder spec file
by Leigh Scott
commit 0a0b96da79ba32d9716264a283bdbb6c7d183352
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Mon Feb 20 13:08:14 2017 +0000
reorder spec file
xorg-x11-drv-nvidia.spec | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec
index e833e03..95b5367 100644
--- a/xorg-x11-drv-nvidia.spec
+++ b/xorg-x11-drv-nvidia.spec
@@ -232,6 +232,12 @@ ln -s libEGL_nvidia.so.%{version} $RPM_BUILD_ROOT%{_nvidia_libdir}/libEGL_nvidia
ln -s libGLESv2_nvidia.so.%{version} $RPM_BUILD_ROOT%{_nvidia_libdir}/libGLESv2_nvidia.so.2
ln -s libGLX_nvidia.so.%{version} $RPM_BUILD_ROOT%{_nvidia_libdir}/libGLX_nvidia.so.0
+%if 0%{?rhel} > 6 || 0%{?fedora} <= 24
+#Workaround for cuda availability - rfbz#2916
+ln -fs %{_nvidia_libdir}/libcuda.so.1 $RPM_BUILD_ROOT%{_libdir}/libcuda.so.1
+ln -fs %{_nvidia_libdir}/libcuda.so $RPM_BUILD_ROOT%{_libdir}/libcuda.so
+%endif
+
%ifarch x86_64 i686
# OpenCL config
install -m 0755 -d $RPM_BUILD_ROOT%{_sysconfdir}/OpenCL/vendors/
@@ -332,12 +338,6 @@ desktop-file-install --vendor "" \
ln -fs ../../%{_nvidia_serie}/xorg $RPM_BUILD_ROOT%{_libdir}/xorg/modules/%{_nvidia_serie}-%{version}
%endif
-%if 0%{?rhel} > 6 || 0%{?fedora} <= 24
-#Workaround for cuda availability - rfbz#2916
-ln -fs %{_nvidia_libdir}/libcuda.so.1 $RPM_BUILD_ROOT%{_libdir}/libcuda.so.1
-ln -fs %{_nvidia_libdir}/libcuda.so $RPM_BUILD_ROOT%{_libdir}/libcuda.so
-%endif
-
#Alternate-install-present is checked by the nvidia .run
install -p -m 0644 %{SOURCE7} $RPM_BUILD_ROOT%{_nvidia_libdir}
7 years, 7 months
[xorg-x11-drv-nvidia] reorder spec file
by Leigh Scott
commit e6640a866e0c8ba51f38955caa00a65333b1db7f
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Mon Feb 20 13:01:49 2017 +0000
reorder spec file
xorg-x11-drv-nvidia.spec | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
---
diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec
index 3760fb4..e833e03 100644
--- a/xorg-x11-drv-nvidia.spec
+++ b/xorg-x11-drv-nvidia.spec
@@ -212,18 +212,6 @@ cd nvidiapkg
rm -f nvidia-installer*
-install -m 0755 -d $RPM_BUILD_ROOT%{_bindir}
-
-%if 0%{?rhel} > 6 || 0%{?fedora} <= 24
-# ld.so.conf.d file
-install -m 0755 -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/
-echo -e "%{_nvidia_libdir} \n%{_glvnd_libdir} \n" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia-%{_lib}.conf
-%endif
-
-#Blacklist nouveau (since F-11)
-install -m 0755 -d $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d/
-install -p -m 0644 %{SOURCE6} $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d/
-
# GLVND
rm libGL.so*
rm libEGL.so*
@@ -279,7 +267,18 @@ install -p -m 0755 libnvidia-wfb.so.%{version} $RPM_BUILD_ROOT%{_nvidia_xorgdir}
install -p -m 0755 libglx.so.%{version} $RPM_BUILD_ROOT%{_nvidia_xorgdir}
install -p -m 0755 nvidia_drv.so $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers/
+# ld.so.conf.d file
+%if 0%{?rhel} > 6 || 0%{?fedora} <= 24
+install -m 0755 -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/
+echo -e "%{_nvidia_libdir} \n%{_glvnd_libdir} \n" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/nvidia-%{_lib}.conf
+%endif
+
+#Blacklist nouveau (since F-11)
+install -m 0755 -d $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d/
+install -p -m 0644 %{SOURCE6} $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d/
+
# Install binaries
+install -m 0755 -d $RPM_BUILD_ROOT%{_bindir}
install -p -m 0755 nvidia-{bug-report.sh,debugdump,smi,cuda-mps-control,cuda-mps-server,xconfig,settings,persistenced,modprobe} \
$RPM_BUILD_ROOT%{_bindir}
7 years, 7 months
[xorg-x11-drv-nvidia] Change buildroot macro
by Leigh Scott
commit 33b00b1c53bd1597d85fe2e4ee26f3a1d40711ff
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Mon Feb 20 13:29:04 2017 +0000
Change buildroot macro
xorg-x11-drv-nvidia.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec
index 065c54f..3760fb4 100644
--- a/xorg-x11-drv-nvidia.spec
+++ b/xorg-x11-drv-nvidia.spec
@@ -388,7 +388,7 @@ install -D -p -m 0644 %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/nvi
%if 0%{?fedora} >= 25
# install AppData and add modalias provides
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata/
-install -pm 0644 %{SOURCE12} %{buildroot}%{_datadir}/appdata/
+install -pm 0644 %{SOURCE12} $RPM_BUILD_ROOT%{_datadir}/appdata/
fn=$RPM_BUILD_ROOT%{_datadir}/appdata/xorg-x11-drv-nvidia.metainfo.xml
%{SOURCE13} README.txt "NVIDIA GEFORCE GPUS" | xargs appstream-util add-provide ${fn} modalias
%{SOURCE13} README.txt "NVIDIA QUADRO GPUS" | xargs appstream-util add-provide ${fn} modalias
7 years, 7 months
[xorg-x11-drv-nvidia] fix directory ownership
by Leigh Scott
commit b7a4d05f67355f14f3cc453059e7d4916095b6bc
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Fri Feb 24 10:08:29 2017 +0000
fix directory ownership
xorg-x11-drv-nvidia.spec | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec
index 823d194..065c54f 100644
--- a/xorg-x11-drv-nvidia.spec
+++ b/xorg-x11-drv-nvidia.spec
@@ -1,11 +1,12 @@
-%global _nvidia_serie nvidia
+%global _nvidia_serie nvidia
%if 0%{?fedora} >= 25
-%global _nvidia_libdir %{_libdir}
-%global _nvidia_xorgdir %{_libdir}/%{_nvidia_serie}/xorg
+%global _nvidia_libdir %{_libdir}
+%global _nvidia_serie_libdir %{_libdir}/%{_nvidia_serie}
+%global _nvidia_xorgdir %{_libdir}/%{_nvidia_serie}/xorg
%else
-%global _nvidia_libdir %{_libdir}/%{_nvidia_serie}
-%global _nvidia_xorgdir %{_nvidia_libdir}/xorg
-%global _glvnd_libdir %{_libdir}/libglvnd
+%global _nvidia_libdir %{_libdir}/%{_nvidia_serie}
+%global _nvidia_xorgdir %{_nvidia_libdir}/xorg
+%global _glvnd_libdir %{_libdir}/libglvnd
%endif
%global debug_package %{nil}
@@ -525,8 +526,10 @@ fi ||:
%{_bindir}/nvidia-settings
%{_bindir}/nvidia-xconfig
# Xorg libs that do not need to be multilib
-%dir %{_nvidia_xorgdir}
-%{_nvidia_xorgdir}/*.so*
+%if 0%{?fedora} >= 25
+%{_nvidia_serie_libdir}
+%endif
+%{_nvidia_xorgdir}
%{_libdir}/xorg/modules/drivers/nvidia_drv.so
%if 0%{?rhel} < 8 || 0%{?fedora} <= 24
%{_libdir}/xorg/modules/%{_nvidia_serie}-%{version}
7 years, 7 months
[cmus] Enable MPRIS support
by Leigh Scott
commit d8e36cbe8e79eca3848761c35a70b84a880d9d2c
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Wed Mar 1 09:17:34 2017 +0000
Enable MPRIS support
cmus.spec | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/cmus.spec b/cmus.spec
index 28bd6ca..0441048 100644
--- a/cmus.spec
+++ b/cmus.spec
@@ -1,6 +1,6 @@
Name: cmus
Version: 2.8.0
-Release: 0.1.rc0%{?dist}
+Release: 0.2.rc0%{?dist}
Summary: Ncurses-Based Music Player
Group: Applications/Multimedia
License: GPLv2+
@@ -23,6 +23,7 @@ BuildRequires: libsamplerate-devel
BuildRequires: libvorbis-devel
BuildRequires: opusfile-devel
BuildRequires: pulseaudio-libs-devel
+BuildRequires: systemd-devel
BuildRequires: wavpack-devel
BuildRequires: ncurses-devel
@@ -55,6 +56,7 @@ operating systems
CONFIG_MODPLUG=y \
CONFIG_MP4=y \
CONFIG_MPC=y \
+ CONFIG_MPRIS=y \
CONFIG_OPUS=y \
CONFIG_OSS=n \
CONFIG_PULSE=y \
@@ -70,7 +72,6 @@ operating systems
%install
-rm -rf $RPM_BUILD_ROOT
%{make_install}
mv $RPM_BUILD_ROOT%{_datadir}/%{name}/examples .
@@ -90,6 +91,10 @@ chmod -x examples/*
%changelog
+* Wed Mar 01 2017 Leigh Scott <leigh123linux(a)googlemail.com> - 2.8.0-0.2.rc0
+- Add build requires systemd-devel
+- Enable MPRIS support
+
* Sun Dec 04 2016 leigh scott <leigh123linux(a)googlemail.com> - 2.8.0-0.1.rc0
- Update to 2.8.0-rc0
7 years, 7 months