3 %bcond_without gnome # don't build gnome applet
4 %bcond_without gtk # don't build GTK+ GUI
6 %define dbversion 20060308
7 %define ddcdb %{name}-db-%{dbversion}
9 Summary: DDCcontrol - control the monitor parameters
10 Summary(pl): DDCcontrol - narzêdzie do regulacji parametrów monitora
16 Source0: http://dl.sourceforge.net/ddccontrol/%{name}-%{version}.tar.bz2
17 # Source0-md5: bef6825f7dfffbb4fd40eb4a848cd438
18 Source1: http://dl.sourceforge.net/ddccontrol/%{ddcdb}.tar.bz2
19 # Source1-md5: 973a5db6081054bbb336254331820b0c
20 Patch0: %{name}-SAM0197.patch
21 Patch1: %{name}-desktop.patch
22 Patch2: %{name}-gnome.patch
23 Patch3: %{name}-pl.patch
24 URL: http://ddccontrol.sourceforge.net/
25 BuildRequires: autoconf >= 2.50
26 BuildRequires: automake
27 %{?with_gnome:BuildRequires: gnome-panel-devel >= 2.10}
28 %{?with_gtk:BuildRequires: gtk+2-devel >= 2:2.4}
29 BuildRequires: libtool
30 BuildRequires: libxml2-devel
31 BuildRequires: pciutils-devel
32 BuildRequires: pkgconfig
33 Requires: %{name}-libs = %{version}-%{release}
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 DDCcontrol is a program used to control monitor parameters, like
38 brightness and contrast, by software, i.e. without using the OSD and
39 the buttons in front of the monitor.
42 DDCcontrol jest programem s³u¿±cym do regulacji parametrów monitora
43 takich jak jaskrawo¶æ i kontrast, bez u¿ywania OSD i przycisków na
47 Summary: GTK+ GUI for ddccontrol
48 Summary(pl): Graficzny interfejs GTK+ dla ddccontrol
49 Group: X11/Applications
50 Requires: %{name} = %{version}-%{release}
53 GTK+ GUI for ddccontrol.
55 %description gtk -l pl
56 Graficzny interfejs GTK+ dla ddccontrol.
59 Summary: GNOME applet for ddccontrol
60 Summary(pl): Aplet GNOME dla ddccontrol
61 Group: X11/Applications
62 Requires: %{name} = %{version}-%{release}
65 GNOME applet for ddccontrol.
67 %description applet -l pl
68 Aplet GNOME dla ddccontrol.
71 Summary: ddccontrol library
72 Summary(pl): Biblioteka ddccontrol
78 %description libs -l pl
79 Biblioteka DDCcontrol.
82 Summary: Development files for ddccontrol library
83 Summary(pl): Pliki niezbêdne programistom u¿ywaj±cym biblioteki ddccontrol
84 Group: Development/Libraries
85 Requires: %{name}-libs = %{version}-%{release}
86 Requires: libxml2-devel
87 Requires: pciutils-devel
90 Development files for ddccontrol library.
92 %description devel -l pl
93 Pliki niezbêdne programistom u¿ywaj±cym biblioteki ddccontrol.
96 Summary: Static ddccontrol library
97 Summary(pl): Biblioteka statyczna ddccontrol
98 Group: Development/Libraries
99 Requires: %{name}-devel = %{version}-%{release}
102 Static ddccontrol library.
104 %description static -l pl
105 Biblioteka statyczna ddccontrol.
121 %{!?with_gtk:--disable-gnome} \
122 %{!?with_gnome:--disable-gnome-applet}
129 rm -rf $RPM_BUILD_ROOT
131 DESTDIR=$RPM_BUILD_ROOT
133 %{__make} -C %{ddcdb} install \
134 DESTDIR=$RPM_BUILD_ROOT
136 %find_lang %{name} --all-name
139 rm -rf $RPM_BUILD_ROOT
141 %post -p /sbin/ldconfig
142 %postun -p /sbin/ldconfig
144 %files -f %{name}.lang
145 %defattr(644,root,root,755)
146 %doc AUTHORS ChangeLog NEWS README TODO doc/html
147 %attr(755,root,root) %{_bindir}/ddccontrol
148 %attr(755,root,root) %{_bindir}/ddcpci
149 %{_datadir}/ddccontrol-db
153 %defattr(644,root,root,755)
154 %attr(755,root,root) %{_bindir}/gddccontrol
155 %{_desktopdir}/gddccontrol.desktop
156 %{_pixmapsdir}/gddccontrol.png
161 %defattr(644,root,root,755)
162 %dir %{_libdir}/ddccontrol
163 %attr(755,root,root) %{_libdir}/ddccontrol/ddcc-applet
164 %{_datadir}/ddccontrol
165 %{_libdir}/bonobo/servers/*
169 %defattr(644,root,root,755)
170 %attr(755,root,root) %{_libdir}/libddccontrol.so.*.*.*
173 %defattr(644,root,root,755)
174 %attr(755,root,root) %{_libdir}/libddccontrol.so
175 %{_libdir}/libddccontrol.la
176 %{_includedir}/ddccontrol
179 %defattr(644,root,root,755)
180 %{_libdir}/libddccontrol.a