|
|
|
@ -1,32 +1,47 @@
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.7.3)
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 1;
|
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
|
|
|
|
|
Name: libXNVCtrl
|
|
|
|
|
Version: 352.21
|
|
|
|
|
Release: 9%{?dist}
|
|
|
|
|
Version: 565.57.01
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Library providing the NV-CONTROL API
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: ftp://download.nvidia.com/XFree86/nvidia-settings/
|
|
|
|
|
Source0: ftp://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-%{version}.tar.bz2
|
|
|
|
|
Patch0: libxnvctrl_so_0.patch
|
|
|
|
|
Patch1: libxnvctrl_optflags.patch
|
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
|
URL: https://download.nvidia.com/XFree86/nvidia-settings
|
|
|
|
|
Source: %{url}/nvidia-settings-%{version}.tar.bz2
|
|
|
|
|
Patch: libxnvctrl_so_0.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: libX11-devel
|
|
|
|
|
BuildRequires: libXext-devel
|
|
|
|
|
BuildRequires: hostname
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
|
|
|
|
|
|
# Obsoletes older package provided in the NVIDIA CUDA repository
|
|
|
|
|
Obsoletes: nvidia-%{name} < 3:%{version}-100
|
|
|
|
|
Provides: nvidia-%{name} = 3:%{version}-100
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This packages contains the libXNVCtrl library from the nvidia-settings
|
|
|
|
|
application. This library provides the NV-CONTROL API for communicating with
|
|
|
|
|
the proprietary NVidia xorg driver. This package does not contain the
|
|
|
|
|
the proprietary NVIDIA xorg driver. This package does not contain the
|
|
|
|
|
nvidia-settings tool itself as that is included with the proprietary drivers
|
|
|
|
|
themselves.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: libX11-devel
|
|
|
|
|
Requires: libX11-devel%{?_isa}
|
|
|
|
|
# Obsoletes older package provided in the NVIDIA CUDA repository
|
|
|
|
|
Obsoletes: nvidia-%{name}-devel < 3:%{version}-100
|
|
|
|
|
Provides: nvidia-%{name}-devel = 3:%{version}-100
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
@ -34,47 +49,112 @@ developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n nvidia-settings-%{version}
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%autosetup -p1 -n nvidia-settings-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
make %{?_smp_mflags} \
|
|
|
|
|
CC="gcc" \
|
|
|
|
|
%make_build \
|
|
|
|
|
CC="%{__cc}" \
|
|
|
|
|
NV_VERBOSE=1 \
|
|
|
|
|
OPTFLAGS="%{optflags}" \
|
|
|
|
|
LDFLAGS="%{build_ldflags}" \
|
|
|
|
|
-C src/%{name}
|
|
|
|
|
DO_STRIP=0 \
|
|
|
|
|
STRIP_CMD=/bin/true \
|
|
|
|
|
-C src/%{name} \
|
|
|
|
|
libXNVCtrl.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
pushd src/%{name}
|
|
|
|
|
install -m 0755 -d $RPM_BUILD_ROOT%{_libdir}/
|
|
|
|
|
install -p -m 0755 libXNVCtrl.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/
|
|
|
|
|
ln -s libXNVCtrl.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libXNVCtrl.so.0
|
|
|
|
|
ln -s libXNVCtrl.so.0 $RPM_BUILD_ROOT%{_libdir}/libXNVCtrl.so
|
|
|
|
|
install -m 0755 -d $RPM_BUILD_ROOT%{_includedir}/NVCtrl/
|
|
|
|
|
install -p -m 0644 {nv_control,NVCtrl,NVCtrlLib}.h $RPM_BUILD_ROOT%{_includedir}/NVCtrl/
|
|
|
|
|
install -m 0755 -d %{buildroot}%{_libdir}/
|
|
|
|
|
cp -Prp libXNVCtrl.so* %{buildroot}%{_libdir}/
|
|
|
|
|
install -m 0755 -d %{buildroot}%{_includedir}/NVCtrl/
|
|
|
|
|
install -p -m 0644 *.h %{buildroot}%{_includedir}/NVCtrl/
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_post
|
|
|
|
|
|
|
|
|
|
%ldconfig_postun
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc COPYING
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_libdir}/%{name}.so.0*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc doc/NV-CONTROL-API.txt doc/FRAMELOCK.txt
|
|
|
|
|
%{_includedir}/NVCtrl
|
|
|
|
|
%{_includedir}/NVCtrl/
|
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Dec 23 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 565.57.01-1
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
* Tue Nov 19 2024 Nicolas Chauvet <kwizart@gmail.com> - 565.57.01-1
|
|
|
|
|
- Update to 565.57.01
|
|
|
|
|
|
|
|
|
|
* Wed Sep 18 2024 Nicolas Chauvet <kwizart@gmail.com> - 560.35.03-3
|
|
|
|
|
- Add obsoltes for the devel package also
|
|
|
|
|
|
|
|
|
|
* Wed Sep 18 2024 Nicolas Chauvet <kwizart@gmail.com> - 560.35.03-2
|
|
|
|
|
- Fixup strip
|
|
|
|
|
|
|
|
|
|
* Wed Sep 18 2024 Nicolas Chauvet <kwizart@gmail.com> - 560.35.03-1
|
|
|
|
|
- Update to 560.35.03
|
|
|
|
|
|
|
|
|
|
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 535.113.01-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 535.113.01-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 535.113.01-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Oct 10 2023 Nicolas Chauvet <kwizart@gmail.com> - 535.113.01-2
|
|
|
|
|
- Remove vendor special case
|
|
|
|
|
|
|
|
|
|
* Tue Oct 10 2023 Pavel Solovev <daron439@gmail.com> - 535.113.01-1
|
|
|
|
|
- update to 535.113.01
|
|
|
|
|
- Migrated license tag to SPDX
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 435.17-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 435.17-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 435.17-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 435.17-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 435.17-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 435.17-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 435.17-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 435.17-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 17 2020 Tom Stellard <tstellar@redhat.com> - 435.17-2
|
|
|
|
|
- Replace hard-coded gcc with __cc macro
|
|
|
|
|
|
|
|
|
|
* Mon Aug 26 2019 Nicolas Chauvet <kwizart@gmail.com> - 435.17-1
|
|
|
|
|
- Update to 435.17
|
|
|
|
|
- Obsoletes older nvidia-libXNVCtrl from cuda repo
|
|
|
|
|
- Switch URL to https
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 352.21-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 352.21-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 352.21-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 29 2018 Adam Jackson <ajax@redhat.com> - 352.21-9
|
|
|
|
|
- Use ldconfig scriptlet macros
|
|
|
|
|
|
|
|
|
@ -162,3 +242,5 @@ popd
|
|
|
|
|
|
|
|
|
|
* Sun Jul 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.0-1
|
|
|
|
|
- Initial Fedora Extras version
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|
|