]> git.pld-linux.org Git - packages/ddccontrol.git/blame - ddccontrol.spec
- disabled GNOME applet (or get any support), removed la file, rel. 5
[packages/ddccontrol.git] / ddccontrol.spec
CommitLineData
ec6ee6b1
JB
1#
2# Conditional build:
cef1ea3d 3%bcond_with gnome # don't build gnome applet
03d9b719
KK
4%bcond_without gtk # don't build GTK+ GUI
5%bcond_without static_libs # don't build static library
ec6ee6b1 6#
a2bb49b1 7%define dbversion 20061014
8ca2049d 8%define ddcdb %{name}-db-%{dbversion}
9
b0230620 10Summary: DDCcontrol - control the monitor parameters
f44a9355 11Summary(pl.UTF-8): DDCcontrol - narzędzie do regulacji parametrów monitora
54771ea2 12Name: ddccontrol
5645bf3c 13Version: 0.4.2
cef1ea3d 14Release: 5
ec6ee6b1 15License: GPL v2+
8ca2049d 16Group: Applications
17Source0: http://dl.sourceforge.net/ddccontrol/%{name}-%{version}.tar.bz2
5645bf3c 18# Source0-md5: b0eb367f3bc0564bd577e38d0b4107fc
8ca2049d 19Source1: http://dl.sourceforge.net/ddccontrol/%{ddcdb}.tar.bz2
a2bb49b1 20# Source1-md5: 91951918e5bc553c251776cdff8cea9c
5645bf3c
JB
21Patch0: %{name}-desktop.patch
22Patch1: %{name}-gnome.patch
23Patch2: %{name}-pl.patch
a2bb49b1 24Patch3: %{name}-link.patch
8ca2049d 25URL: http://ddccontrol.sourceforge.net/
ec6ee6b1
JB
26BuildRequires: autoconf >= 2.50
27BuildRequires: automake
03d9b719 28BuildRequires: gettext-devel
ec6ee6b1
JB
29%{?with_gnome:BuildRequires: gnome-panel-devel >= 2.10}
30%{?with_gtk:BuildRequires: gtk+2-devel >= 2:2.4}
03d9b719 31BuildRequires: intltool
8ca2049d 32BuildRequires: libtool
8cb8f086 33BuildRequires: libxml2-devel
34BuildRequires: pciutils-devel
ec6ee6b1 35BuildRequires: pkgconfig
8ca2049d 36Requires: %{name}-libs = %{version}-%{release}
8ca2049d 37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39%description
40DDCcontrol is a program used to control monitor parameters, like
41brightness and contrast, by software, i.e. without using the OSD and
42the buttons in front of the monitor.
43
fc601448
JR
44%description -l pl.UTF-8
45DDCcontrol jest programem służącym do regulacji parametrów monitora
46takich jak jaskrawość i kontrast, bez używania OSD i przycisków na
8ca2049d 47obudowie monitora.
48
ec6ee6b1
JB
49%package gtk
50Summary: GTK+ GUI for ddccontrol
f44a9355 51Summary(pl.UTF-8): Graficzny interfejs GTK+ dla ddccontrol
ec6ee6b1
JB
52Group: X11/Applications
53Requires: %{name} = %{version}-%{release}
54
55%description gtk
56GTK+ GUI for ddccontrol.
57
fc601448 58%description gtk -l pl.UTF-8
ec6ee6b1
JB
59Graficzny interfejs GTK+ dla ddccontrol.
60
8cb8f086 61%package applet
62Summary: GNOME applet for ddccontrol
f44a9355 63Summary(pl.UTF-8): Aplet GNOME dla ddccontrol
ec6ee6b1 64Group: X11/Applications
8cb8f086 65Requires: %{name} = %{version}-%{release}
66
67%description applet
68GNOME applet for ddccontrol.
69
fc601448 70%description applet -l pl.UTF-8
8cb8f086 71Aplet GNOME dla ddccontrol.
72
b0230620 73%package libs
ec6ee6b1 74Summary: ddccontrol library
f44a9355 75Summary(pl.UTF-8): Biblioteka ddccontrol
b0230620 76Group: Libraries
b0230620
JB
77
78%description libs
ec6ee6b1 79DDCcontrol library.
b0230620 80
fc601448 81%description libs -l pl.UTF-8
ec6ee6b1 82Biblioteka DDCcontrol.
b0230620 83
8ca2049d 84%package devel
ec6ee6b1 85Summary: Development files for ddccontrol library
f44a9355 86Summary(pl.UTF-8): Pliki niezbędne programistom używającym biblioteki ddccontrol
8ca2049d 87Group: Development/Libraries
ec6ee6b1
JB
88Requires: %{name}-libs = %{version}-%{release}
89Requires: libxml2-devel
90Requires: pciutils-devel
8ca2049d 91
92%description devel
ec6ee6b1 93Development files for ddccontrol library.
8ca2049d 94
fc601448
JR
95%description devel -l pl.UTF-8
96Pliki niezbędne programistom używającym biblioteki ddccontrol.
8ca2049d 97
98%package static
ec6ee6b1 99Summary: Static ddccontrol library
f44a9355 100Summary(pl.UTF-8): Biblioteka statyczna ddccontrol
8ca2049d 101Group: Development/Libraries
54771ea2 102Requires: %{name}-devel = %{version}-%{release}
8ca2049d 103
104%description static
ec6ee6b1 105Static ddccontrol library.
8ca2049d 106
fc601448 107%description static -l pl.UTF-8
ec6ee6b1 108Biblioteka statyczna ddccontrol.
8ca2049d 109
110%prep
111%setup -q -a 1
112%patch0 -p1
113%patch1 -p1
ec6ee6b1 114%patch2 -p1
a2bb49b1 115%patch3 -p1
8ca2049d 116
117%build
682c3ff8 118%{__intltoolize}
ec6ee6b1
JB
119%{__libtoolize}
120%{__aclocal} -I m4
121%{__autoconf}
122%{__autoheader}
123%{__automake}
124%configure \
125 %{!?with_gtk:--disable-gnome} \
03d9b719
KK
126 %{!?with_gnome:--disable-gnome-applet} \
127 %{!?with_static_libs:--disable-static}
8ca2049d 128%{__make}
129cd %{ddcdb}
130%configure
131%{__make}
132
133%install
134rm -rf $RPM_BUILD_ROOT
135%{__make} install \
136 DESTDIR=$RPM_BUILD_ROOT
b0230620
JB
137
138%{__make} -C %{ddcdb} install \
cef1ea3d
TP
139 DESTDIR=$RPM_BUILD_ROOT
140
141%{__rm} $RPM_BUILD_ROOT%{_libdir}/libddccontrol.la
8cb8f086 142
ec6ee6b1 143%find_lang %{name} --all-name
8ca2049d 144
145%clean
146rm -rf $RPM_BUILD_ROOT
147
4f06543a
KK
148%post libs -p /sbin/ldconfig
149%postun libs -p /sbin/ldconfig
ec6ee6b1 150
8cb8f086 151%files -f %{name}.lang
8ca2049d 152%defattr(644,root,root,755)
ec6ee6b1 153%doc AUTHORS ChangeLog NEWS README TODO doc/html
8ca2049d 154%attr(755,root,root) %{_bindir}/ddccontrol
155%attr(755,root,root) %{_bindir}/ddcpci
466826b9 156%{_datadir}/ddccontrol-db
5645bf3c 157%{_mandir}/man1/ddccontrol.1*
8ca2049d 158
ec6ee6b1
JB
159%if %{with gtk}
160%files gtk
161%defattr(644,root,root,755)
162%attr(755,root,root) %{_bindir}/gddccontrol
163%{_desktopdir}/gddccontrol.desktop
164%{_pixmapsdir}/gddccontrol.png
5645bf3c 165%{_mandir}/man1/gddccontrol.1*
ec6ee6b1
JB
166%endif
167
168%if %{with gnome}
8cb8f086 169%files applet
170%defattr(644,root,root,755)
171%dir %{_libdir}/ddccontrol
8cb8f086 172%attr(755,root,root) %{_libdir}/ddccontrol/ddcc-applet
ec6ee6b1 173%{_datadir}/ddccontrol
8cb8f086 174%{_libdir}/bonobo/servers/*
ec6ee6b1 175%endif
8cb8f086 176
b0230620
JB
177%files libs
178%defattr(644,root,root,755)
ec6ee6b1 179%attr(755,root,root) %{_libdir}/libddccontrol.so.*.*.*
cef1ea3d 180%attr(755,root,root) %ghost %{_libdir}/libddccontrol.so.0
b0230620 181
8ca2049d 182%files devel
183%defattr(644,root,root,755)
ec6ee6b1 184%attr(755,root,root) %{_libdir}/libddccontrol.so
ec6ee6b1 185%{_includedir}/ddccontrol
8ca2049d 186
03d9b719 187%if %{with static_libs}
8ca2049d 188%files static
189%defattr(644,root,root,755)
ec6ee6b1 190%{_libdir}/libddccontrol.a
03d9b719 191%endif
This page took 0.060614 seconds and 4 git commands to generate.