ddccontrol/ddccontrol.spec

165 lines
5.2 KiB
RPMSpec

Name: ddccontrol
Version: 0.5.1
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: libatk-devel
BuildRequires: libbzip2-devel
BuildRequires: libcairo-devel
BuildRequires: libexpat-devel
BuildRequires: libffi-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libGL-devel
BuildRequires: libglib-devel
BuildRequires: libgtk2-devel
BuildRequires: liblzma-devel
BuildRequires: libpango-devel
BuildRequires: libpci-devel
BuildRequires: libpixman-devel
BuildRequires: libpng-devel
BuildRequires: libpthread-stubs-devel
BuildRequires: libselinux-devel
BuildRequires: libstdc++6-devel
BuildRequires: libX11-devel
BuildRequires: libXau-devel
BuildRequires: libxcb-devel
BuildRequires: libXdmcp-devel
BuildRequires: libxml2-devel
BuildRequires: libXrender-devel
BuildRequires: libz-devel
BuildRequires: udev-devel
## AUTOBUILDREQ-END
Requires: ddccontrol-db
Obsoletes: ddcci-tool
Provides: ddcci-tool
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
%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
%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
%{_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.la
%{_libdir}/libddccontrol.so
%{_libdir}/libddccontrol_dbus_client.a
%{_libdir}/libddccontrol_dbus_client.la
%{_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
* 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