ddccontrol/ddccontrol.spec

168 lines
5.4 KiB
RPMSpec

Name: ddccontrol
Version: 0.6.3
Release: 1mamba
Summary: A program used to control monitor parameters without using the OSD
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/ddccontrol/ddccontrol
Source: https://github.com/ddccontrol/ddccontrol.git/%{version}/ddccontrol-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libat-spi2-core-devel
BuildRequires: libcairo-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgtk2-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libpango-devel
BuildRequires: libpci-devel
BuildRequires: libxml2-devel
## AUTOBUILDREQ-END
Requires: ddccontrol-db
Provides: ddcci-tool
Obsoletes: ddcci-tool < 0.6.1
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
DDCcontrol is a program running on Linux, used to control monitor parameters, like brightness and contrast, by software, i.e. without using the OSD (On Screen Display) and the buttons in front of the monitor.
%package -n lib%{name}
Summary: Shared libraries provided by %{name}
Group: System/Libraries
%description -n lib%{name}
DDCcontrol is a program running on Linux, used to control monitor parameters, like brightness and contrast, by software, i.e. without using the OSD (On Screen Display) and the buttons in front of the monitor.
This package contains the shared libraries provided with %{name}.
%package -n lib%{name}-devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: ddccontrol-devel
Obsoletes: ddccontrol-devel < 0.5.1
%description -n lib%{name}-devel
DDCcontrol is a program running on Linux, used to control monitor parameters, like brightness and contrast, by software, i.e. without using the OSD (On Screen Display) and the buttons in front of the monitor.
This package contains the headers and static libraries needed for development.
%package gui
Summary: GUI for DDCcontrol, a program used to control monitor OSD parameters
Group: Graphical Desktop/Applications/Configuration
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description gui
DDCcontrol is a program running on Linux, used to control monitor parameters, like brightness and contrast, by software, i.e. without using the OSD (On Screen Display) and the buttons in front of the monitor.
This package contains the graphical user interface.
%debug_package
%prep
%setup -q
autoreconf -f -i
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall \
modulesdir=%{_modulesloaddir}
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post
%systemd_post ddccontrol
:
%preun
%systemd_preun ddccontrol
:
%postun
%systemd_postun_with_restart ddccontrol
:
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%{_sysconfdir}/dbus-1/system.d/ddccontrol.DDCControl.conf
%{_bindir}/ddccontrol
%{_unitdir}/ddccontrol.service
%{_modulesloaddir}/ddccontrol-i2c-dev.conf
%{_datadir}/dbus-1/interfaces/ddccontrol.DDCControl.xml
%{_datadir}/dbus-1/system-services/ddccontrol.DDCControl.service
%{_mandir}/man1/ddccontrol.1*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libddccontrol_dbus_client.so.*
%{_libdir}/libddccontrol.so.*
%{_libexecdir}/ddccontrol/ddccontrol_service
%{_libexecdir}/ddccontrol/ddcpci
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/ddccontrol
%{_includedir}/ddccontrol/*.h
%{_libdir}/libddccontrol.a
%{_libdir}/libddccontrol.so
%{_libdir}/libddccontrol_dbus_client.a
%{_libdir}/libddccontrol_dbus_client.so
%{_libdir}/pkgconfig/ddccontrol.pc
%files gui
%defattr(-,root,root)
%{_bindir}/gddccontrol
%{_datadir}/applications/gddccontrol.desktop
%{_datadir}/icons/Bluecurve/48x48/apps/gddccontrol.png
%{_datadir}/icons/hicolor/48x48/apps/gddccontrol.png
%{_mandir}/man1/gddccontrol.1*
%changelog
* Thu Sep 07 2023 Automatic Build System <autodist@mambasoft.it> 0.6.3-1mamba
- automatic version update by autodist
* Sat Jul 22 2023 Automatic Build System <autodist@mambasoft.it> 0.6.2-1mamba
- automatic version update by autodist
* Sat Nov 12 2022 Automatic Build System <autodist@mambasoft.it> 0.6.1-1mamba
- automatic version update by autodist
* Tue Oct 05 2021 Automatic Build System <autodist@mambasoft.it> 0.6.0-1mamba
- automatic version update by autodist
* Mon Oct 04 2021 Automatic Build System <autodist@mambasoft.it> 0.5.3-1mamba
- automatic version update by autodist
* Thu May 13 2021 Automatic Build System <autodist@mambasoft.it> 0.5.2-1mamba
- automatic version update by autodist
* Sun Feb 07 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.1-1mamba
- update to 0.5.1
* Tue Sep 18 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.2-3mamba
- rebuilt with(out) gnome 3
* Sun May 17 2009 Automatic Build System <autodist@mambasoft.it> 0.4.2-2mamba
- automatic rebuild by autodist
* Wed Jan 23 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.2-1mamba
- update to 0.4.2
* Thu Feb 17 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 0.04-1qilnx
- package created by autospec