3 %bcond_with 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 20061014
8 %define ddcdb %{name}-db-%{dbversion}
10 Summary: DDCcontrol - control the monitor parameters
11 Summary(pl.UTF-8): DDCcontrol - narzędzie do regulacji parametrów monitora
17 Source0: http://dl.sourceforge.net/ddccontrol/%{name}-%{version}.tar.bz2
18 # Source0-md5: b0eb367f3bc0564bd577e38d0b4107fc
19 Source1: http://dl.sourceforge.net/ddccontrol/%{ddcdb}.tar.bz2
20 # Source1-md5: 91951918e5bc553c251776cdff8cea9c
21 Patch0: %{name}-desktop.patch
22 Patch1: %{name}-gnome.patch
23 Patch2: %{name}-pl.patch
24 Patch3: %{name}-link.patch
25 URL: http://ddccontrol.sourceforge.net/
26 BuildRequires: autoconf >= 2.50
27 BuildRequires: automake
28 BuildRequires: gettext-tools
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.
44 %description -l pl.UTF-8
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.UTF-8): Graficzny interfejs GTK+ dla ddccontrol
52 Group: X11/Applications
53 Requires: %{name} = %{version}-%{release}
56 GTK+ GUI for ddccontrol.
58 %description gtk -l pl.UTF-8
59 Graficzny interfejs GTK+ dla ddccontrol.
62 Summary: GNOME applet for ddccontrol
63 Summary(pl.UTF-8): Aplet GNOME dla ddccontrol
64 Group: X11/Applications
65 Requires: %{name} = %{version}-%{release}
68 GNOME applet for ddccontrol.
70 %description applet -l pl.UTF-8
71 Aplet GNOME dla ddccontrol.
74 Summary: ddccontrol library
75 Summary(pl.UTF-8): Biblioteka ddccontrol
81 %description libs -l pl.UTF-8
82 Biblioteka DDCcontrol.
85 Summary: Development files for ddccontrol library
86 Summary(pl.UTF-8): 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.UTF-8
96 Pliki niezbędne programistom używającym biblioteki ddccontrol.
99 Summary: Static ddccontrol library
100 Summary(pl.UTF-8): Biblioteka statyczna ddccontrol
101 Group: Development/Libraries
102 Requires: %{name}-devel = %{version}-%{release}
105 Static ddccontrol library.
107 %description static -l pl.UTF-8
108 Biblioteka statyczna ddccontrol.
125 %{!?with_gtk:--disable-gnome} \
126 %{!?with_gnome:--disable-gnome-applet} \
127 %{!?with_static_libs:--disable-static}
134 rm -rf $RPM_BUILD_ROOT
136 DESTDIR=$RPM_BUILD_ROOT
138 %{__make} -C %{ddcdb} install \
139 DESTDIR=$RPM_BUILD_ROOT
141 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libddccontrol.la
143 %find_lang %{name} --all-name
146 rm -rf $RPM_BUILD_ROOT
148 %post libs -p /sbin/ldconfig
149 %postun libs -p /sbin/ldconfig
151 %files -f %{name}.lang
152 %defattr(644,root,root,755)
153 %doc AUTHORS ChangeLog NEWS README TODO doc/html
154 %attr(755,root,root) %{_bindir}/ddccontrol
155 %attr(755,root,root) %{_bindir}/ddcpci
156 %{_datadir}/ddccontrol-db
157 %{_mandir}/man1/ddccontrol.1*
161 %defattr(644,root,root,755)
162 %attr(755,root,root) %{_bindir}/gddccontrol
163 %{_desktopdir}/gddccontrol.desktop
164 %{_pixmapsdir}/gddccontrol.png
165 %{_mandir}/man1/gddccontrol.1*
170 %defattr(644,root,root,755)
171 %dir %{_libdir}/ddccontrol
172 %attr(755,root,root) %{_libdir}/ddccontrol/ddcc-applet
173 %{_datadir}/ddccontrol
174 %{_libdir}/bonobo/servers/*
178 %defattr(644,root,root,755)
179 %attr(755,root,root) %{_libdir}/libddccontrol.so.*.*.*
180 %attr(755,root,root) %ghost %{_libdir}/libddccontrol.so.0
183 %defattr(644,root,root,755)
184 %attr(755,root,root) %{_libdir}/libddccontrol.so
185 %{_includedir}/ddccontrol
187 %if %{with static_libs}
189 %defattr(644,root,root,755)
190 %{_libdir}/libddccontrol.a