3 %bcond_without gnome # don't build gnome applet
4 %bcond_without gtk # don't build GTK+ GUI
5 %bcond_without static_libs # don't build static library
7 %define dbversion 20060308
8 %define ddcdb %{name}-db-%{dbversion}
10 Summary: DDCcontrol - control the monitor parameters
11 Summary(pl): DDCcontrol - narzêdzie do regulacji parametrów monitora
17 Source0: http://dl.sourceforge.net/ddccontrol/%{name}-%{version}.tar.bz2
18 # Source0-md5: bef6825f7dfffbb4fd40eb4a848cd438
19 Source1: http://dl.sourceforge.net/ddccontrol/%{ddcdb}.tar.bz2
20 # Source1-md5: 973a5db6081054bbb336254331820b0c
21 Patch0: %{name}-SAM0197.patch
22 Patch1: %{name}-desktop.patch
23 Patch2: %{name}-gnome.patch
24 Patch3: %{name}-pl.patch
25 URL: http://ddccontrol.sourceforge.net/
26 BuildRequires: autoconf >= 2.50
27 BuildRequires: automake
28 BuildRequires: gettext-devel
29 %{?with_gnome:BuildRequires: gnome-panel-devel >= 2.10}
30 %{?with_gtk:BuildRequires: gtk+2-devel >= 2:2.4}
31 BuildRequires: intltool
32 BuildRequires: libtool
33 BuildRequires: libxml2-devel
34 BuildRequires: pciutils-devel
35 BuildRequires: pkgconfig
36 Requires: %{name}-libs = %{version}-%{release}
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 DDCcontrol is a program used to control monitor parameters, like
41 brightness and contrast, by software, i.e. without using the OSD and
42 the buttons in front of the monitor.
45 DDCcontrol jest programem s³u¿±cym do regulacji parametrów monitora
46 takich jak jaskrawo¶æ i kontrast, bez u¿ywania OSD i przycisków na
50 Summary: GTK+ GUI for ddccontrol
51 Summary(pl): Graficzny interfejs GTK+ dla ddccontrol
52 Group: X11/Applications
53 Requires: %{name} = %{version}-%{release}
56 GTK+ GUI for ddccontrol.
58 %description gtk -l pl
59 Graficzny interfejs GTK+ dla ddccontrol.
62 Summary: GNOME applet for ddccontrol
63 Summary(pl): Aplet GNOME dla ddccontrol
64 Group: X11/Applications
65 Requires: %{name} = %{version}-%{release}
68 GNOME applet for ddccontrol.
70 %description applet -l pl
71 Aplet GNOME dla ddccontrol.
74 Summary: ddccontrol library
75 Summary(pl): Biblioteka ddccontrol
81 %description libs -l pl
82 Biblioteka DDCcontrol.
85 Summary: Development files for ddccontrol library
86 Summary(pl): Pliki niezbêdne programistom u¿ywaj±cym biblioteki ddccontrol
87 Group: Development/Libraries
88 Requires: %{name}-libs = %{version}-%{release}
89 Requires: libxml2-devel
90 Requires: pciutils-devel
93 Development files for ddccontrol library.
95 %description devel -l pl
96 Pliki niezbêdne programistom u¿ywaj±cym biblioteki ddccontrol.
99 Summary: Static ddccontrol library
100 Summary(pl): Biblioteka statyczna ddccontrol
101 Group: Development/Libraries
102 Requires: %{name}-devel = %{version}-%{release}
105 Static ddccontrol library.
107 %description static -l pl
108 Biblioteka statyczna ddccontrol.
124 %{!?with_gtk:--disable-gnome} \
125 %{!?with_gnome:--disable-gnome-applet} \
126 %{!?with_static_libs:--disable-static}
133 rm -rf $RPM_BUILD_ROOT
135 DESTDIR=$RPM_BUILD_ROOT
137 %{__make} -C %{ddcdb} install \
138 DESTDIR=$RPM_BUILD_ROOT
140 %find_lang %{name} --all-name
143 rm -rf $RPM_BUILD_ROOT
145 %post libs -p /sbin/ldconfig
146 %postun libs -p /sbin/ldconfig
148 %files -f %{name}.lang
149 %defattr(644,root,root,755)
150 %doc AUTHORS ChangeLog NEWS README TODO doc/html
151 %attr(755,root,root) %{_bindir}/ddccontrol
152 %attr(755,root,root) %{_bindir}/ddcpci
153 %{_datadir}/ddccontrol-db
157 %defattr(644,root,root,755)
158 %attr(755,root,root) %{_bindir}/gddccontrol
159 %{_desktopdir}/gddccontrol.desktop
160 %{_pixmapsdir}/gddccontrol.png
165 %defattr(644,root,root,755)
166 %dir %{_libdir}/ddccontrol
167 %attr(755,root,root) %{_libdir}/ddccontrol/ddcc-applet
168 %{_datadir}/ddccontrol
169 %{_libdir}/bonobo/servers/*
173 %defattr(644,root,root,755)
174 %attr(755,root,root) %{_libdir}/libddccontrol.so.*.*.*
177 %defattr(644,root,root,755)
178 %attr(755,root,root) %{_libdir}/libddccontrol.so
179 %{_libdir}/libddccontrol.la
180 %{_includedir}/ddccontrol
182 %if %{with static_libs}
184 %defattr(644,root,root,755)
185 %{_libdir}/libddccontrol.a