[packages/ddccontrol] - up to 1.0.3, still some work needed
mrozowik
mrozowik at pld-linux.org
Wed Aug 20 02:02:55 CEST 2025
commit 3267341022354e8dd04a36a3d5684a4d5dfd1de1
Author: Krzysztof Mrozowicz <mrozowik at pld-linux.org>
Date: Wed Aug 20 00:02:44 2025 +0000
- up to 1.0.3, still some work needed
ddccontrol-desktop.patch | 20 ++++++-------
ddccontrol.spec | 75 +++++++++++++++++++++---------------------------
2 files changed, 41 insertions(+), 54 deletions(-)
---
diff --git a/ddccontrol.spec b/ddccontrol.spec
index b7d3766..30696b4 100644
--- a/ddccontrol.spec
+++ b/ddccontrol.spec
@@ -1,23 +1,22 @@
#
# Conditional build:
-%bcond_with gnome # don't build gnome applet
%bcond_without gtk # don't build GTK+ GUI
%bcond_without static_libs # don't build static library
#
-%define dbversion 20061014
+%define dbversion 20250814
%define ddcdb %{name}-db-%{dbversion}
Summary: DDCcontrol - control the monitor parameters
Summary(pl.UTF-8): DDCcontrol - narzędzie do regulacji parametrów monitora
Name: ddccontrol
-Version: 0.4.2
-Release: 6
+Version: 1.0.3
+Release: 0.1
License: GPL v2+
Group: Applications
-Source0: http://dl.sourceforge.net/ddccontrol/%{name}-%{version}.tar.bz2
-# Source0-md5: b0eb367f3bc0564bd577e38d0b4107fc
-Source1: http://dl.sourceforge.net/ddccontrol/%{ddcdb}.tar.bz2
-# Source1-md5: 91951918e5bc553c251776cdff8cea9c
+Source0: https://github.com/ddccontrol/ddccontrol/archive/refs/tags/%{version}.tar.gz
+# Source0-md5: 104f0ea40bee4f615c202775c4672e3e
+Source1: https://github.com/ddccontrol/ddccontrol-db/archive/refs/tags/%{dbversion}.tar.gz
+# Source1-md5: 8ce537400ab9b1a0fafa90ae89acf3bb
Patch0: %{name}-desktop.patch
Patch1: %{name}-gnome.patch
Patch2: %{name}-pl.patch
@@ -58,18 +57,6 @@ GTK+ GUI for ddccontrol.
%description gtk -l pl.UTF-8
Graficzny interfejs GTK+ dla ddccontrol.
-%package applet
-Summary: GNOME applet for ddccontrol
-Summary(pl.UTF-8): Aplet GNOME dla ddccontrol
-Group: X11/Applications
-Requires: %{name} = %{version}-%{release}
-
-%description applet
-GNOME applet for ddccontrol.
-
-%description applet -l pl.UTF-8
-Aplet GNOME dla ddccontrol.
-
%package libs
Summary: ddccontrol library
Summary(pl.UTF-8): Biblioteka ddccontrol
@@ -110,23 +97,19 @@ Biblioteka statyczna ddccontrol.
%prep
%setup -q -a 1
%patch -P0 -p1
-%patch -P1 -p1
-%patch -P2 -p1
-%patch -P3 -p1
+#patch -P1 -p1
+#patch -P2 -p1
+#patch -P3 -p1
%build
-%{__intltoolize}
-%{__libtoolize}
-%{__aclocal} -I m4
-%{__autoconf}
-%{__autoheader}
-%{__automake}
+./autogen.sh
%configure \
+ --enable-doc \
%{!?with_gtk:--disable-gnome} \
- %{!?with_gnome:--disable-gnome-applet} \
%{!?with_static_libs:--disable-static}
%{__make}
cd %{ddcdb}
+./autogen.sh
%configure
%{__make}
@@ -139,6 +122,11 @@ rm -rf $RPM_BUILD_ROOT
DESTDIR=$RPM_BUILD_ROOT
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libddccontrol.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libddccontrol_dbus_client.la
+
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/icons/Bluecurve
+
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ddccontrol
%find_lang %{name} --all-name
@@ -150,9 +138,16 @@ rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README TODO doc/html
+%doc AUTHORS CHANGELOG.md NEWS README.md TODO doc/html
+/etc/dbus-1/system.d/ddccontrol.DDCControl.conf
+%{systemdunitdir}/ddccontrol.service
%attr(755,root,root) %{_bindir}/ddccontrol
-%attr(755,root,root) %{_bindir}/ddcpci
+%dir %{_libexecdir}/ddccontrol
+%attr(755,root,root) %{_libexecdir}/ddccontrol/ddccontrol_service
+%attr(755,root,root) %{_libexecdir}/ddccontrol/ddcpci
+%{_libdir}/modules-load.d/ddccontrol-i2c-dev.conf
+%{_datadir}/dbus-1/interfaces/ddccontrol.DDCControl.xml
+%{_datadir}/dbus-1/system-services/ddccontrol.DDCControl.service
%{_datadir}/ddccontrol-db
%{_mandir}/man1/ddccontrol.1*
@@ -161,31 +156,27 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/gddccontrol
%{_desktopdir}/gddccontrol.desktop
-%{_pixmapsdir}/gddccontrol.png
+%{_iconsdir}/hicolor/48x48/apps/gddccontrol.png
%{_mandir}/man1/gddccontrol.1*
%endif
-%if %{with gnome}
-%files applet
-%defattr(644,root,root,755)
-%dir %{_libdir}/ddccontrol
-%attr(755,root,root) %{_libdir}/ddccontrol/ddcc-applet
-%{_datadir}/ddccontrol
-%{_libdir}/bonobo/servers/*
-%endif
-
%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libddccontrol.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libddccontrol.so.0
+%attr(755,root,root) %{_libdir}/libddccontrol_dbus_client.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libddccontrol_dbus_client.so.0
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libddccontrol.so
+%attr(755,root,root) %{_libdir}/libddccontrol_dbus_client.so
+%{_pkgconfigdir}/ddccontrol.pc
%{_includedir}/ddccontrol
%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libddccontrol.a
+%{_libdir}/libddccontrol_dbus_client.a
%endif
diff --git a/ddccontrol-desktop.patch b/ddccontrol-desktop.patch
index 2485711..6dfbcec 100644
--- a/ddccontrol-desktop.patch
+++ b/ddccontrol-desktop.patch
@@ -1,18 +1,14 @@
-diff -urN ddccontrol-0.4.1/src/gddccontrol/gddccontrol.desktop.in ddccontrol-0.4.1-new/src/gddccontrol/gddccontrol.desktop.in
---- ddccontrol-0.4.1/src/gddccontrol/gddccontrol.desktop.in 2005-10-30 10:11:37.000000000 +0100
-+++ ddccontrol-0.4.1-new/src/gddccontrol/gddccontrol.desktop.in 2006-05-07 22:11:16.387394500 +0200
-@@ -1,9 +1,12 @@
- [Desktop Entry]
- Encoding=UTF-8
- Name=Monitor Settings
--Comment=Set your monitor preferences (contrast, brightness,...) and manage your profiles
-+Name[pl]=Ustawienia monitora
-+Comment=Set your monitor preferences (contrast, brightness, ...) and manage your profiles
+--- ddccontrol-1.0.3/src/gddccontrol/gddccontrol.desktop.in~ 2024-01-31 09:38:39.000000000 +0000
++++ ddccontrol-1.0.3/src/gddccontrol/gddccontrol.desktop.in 2025-08-19 23:00:39.417976924 +0000
+@@ -2,8 +2,10 @@
+ _Name=DDC Control
+ _GenericName=Monitor Settings
+ _Comment=Set your monitor preferences (contrast, brightness,...) and manage your profiles
++GenericName[pl]=Ustawienia monitora
+Comment[pl]=Ustaw parametry pracy monitora (kontrast, jaskrawość, ...) i zarządzaj profilami ustawień
Exec=gddccontrol
-Icon=gddccontrol
+Icon=gddccontrol.png
Terminal=false
Type=Application
- Categories=GNOME;Application;Settings;
-+# vi: encoding=utf-8
+ Categories=GTK;Settings;HardwareSettings;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ddccontrol.git/commitdiff/3267341022354e8dd04a36a3d5684a4d5dfd1de1
More information about the pld-cvs-commit
mailing list