]> git.pld-linux.org Git - packages/ddccontrol.git/blob - ddccontrol.spec
- adapterized
[packages/ddccontrol.git] / ddccontrol.spec
1 %define dbversion 20060308
2 %define ddcdb   %{name}-db-%{dbversion}
3
4 Summary:        DDCcontrol control the monitor parameters
5 Summary(pl):    DDCcontrol s³u¿y do kontroli parametrów monitora
6 Name:           ddccontrol
7 Version:        0.4.1
8 Release:        1
9 License:        GPL v2
10 Group:          Applications
11 Source0:        http://dl.sourceforge.net/ddccontrol/%{name}-%{version}.tar.bz2
12 # Source0-md5:  bef6825f7dfffbb4fd40eb4a848cd438
13 Source1:        http://dl.sourceforge.net/ddccontrol/%{ddcdb}.tar.bz2
14 # Source1-md5:  973a5db6081054bbb336254331820b0c
15 Patch0:         %{name}-SAM0197.patch
16 Patch1:         %{name}-desktop.patch
17 URL:            http://ddccontrol.sourceforge.net/
18 BuildRequires:  gtk+2-devel >= 2.4
19 BuildRequires:  libtool
20 BuildRequires:  libxml2-devel
21 BuildRequires:  pciutils-devel
22 Requires:       %{name}-libs = %{version}-%{release}
23 Requires:       gtk+2 >= 2.4
24 Requires:       libxml2
25 Requires:       pciutils
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 DDCcontrol is a program used to control monitor parameters, like
30 brightness and contrast, by software, i.e. without using the OSD and
31 the buttons in front of the monitor.
32
33 %description -l pl
34 DDCcontrol jest programem s³u¿±cym do kontroli parametrów monitora
35 takich jak jaskrawo¶æ i kontrast, bez u¿ywania OSD i przycisków na
36 obudowie monitora.
37
38 %package libs
39 Summary:        ddccontrol libraries
40 Summary(pl):    Pliki niezbêdne programistom dla ddccontrol
41 Group:          Libraries
42 Requires:       %{name} = %{version}-%{release}
43
44 %description libs
45 DDCcontrol libraries.
46
47 %description libs -l pl
48 Biblioteki do DDCcontrol.
49
50 %package applet
51 Summary:        GNOME applet for ddccontrol
52 Summary(pl):    Aplet GNOME dla ddccontrol
53 Group:          Applications
54 Requires:       %{name} = %{version}-%{release}
55
56 %description applet
57 GNOME applet for ddccontrol.
58
59 %description applet -l pl
60 Aplet GNOME dla ddccontrol.
61
62 %package devel
63 Summary:        Development files for ddccontrol
64 Summary(pl):    Pliki niezbêdne programistom dla ddccontrol
65 Group:          Development/Libraries
66 Requires:       %{name} = %{version}-%{release}
67
68 %description devel
69 DDCcontrol is a program used to control monitor parameters, like
70 brightness and contrast, by software, i.e. without using the OSD and
71 the buttons in front of the monitor. This package contains files need
72 for development.
73
74 %description devel -l pl
75 DDCcontrol jest programem s³u¿±cym do kontroli parametrów monitora
76 takich jak jaskrawo¶æ i kontrast, bez u¿ywania OSD i przycisków na
77 obudowie monitora. Ten pakiet zawiera pliki niezbêdne programistom.
78
79 %package static
80 Summary:        Static libraries for ddccontrol
81 Summary(pl):    Biblioteki statyczne dla ddccontrol
82 Group:          Development/Libraries
83 Requires:       %{name}-devel = %{version}-%{release}
84
85 %description static
86 DDCcontrol is a program used to control monitor parameters, like
87 brightness and contrast, by software, i.e. without using the OSD and
88 the buttons in front of the monitor. This package contains static
89 libraries.
90
91 %description static -l pl
92 DDCcontrol jest programem s³u¿±cym do kontroli parametrów monitora
93 takich jak jaskrawo¶æ i kontrast, bez u¿ywania OSD i przycisków na
94 obudowie monitora. Ten pakiet zawiera biblioteki statyczne.
95
96 %prep
97 %setup -q -a 1
98 %patch0 -p1
99 %patch1 -p1
100
101 %build
102 %configure
103 %{__make}
104 cd %{ddcdb}
105 %configure
106 %{__make}
107
108 %install
109 rm -rf $RPM_BUILD_ROOT
110 %{__make} install \
111         DESTDIR=$RPM_BUILD_ROOT
112 cd %{ddcdb}
113 %{__make} install \
114         DESTDIR=$RPM_BUILD_ROOT
115 cd ..
116
117 %find_lang %{name} --with-gnome --all-name
118
119 %clean
120 rm -rf $RPM_BUILD_ROOT
121
122 %files -f %{name}.lang
123 %defattr(644,root,root,755)
124 %doc AUTHORS ChangeLog NEWS README TODO
125 %attr(755,root,root) %{_bindir}/ddccontrol
126 %attr(755,root,root) %{_bindir}/ddcpci
127 %attr(755,root,root) %{_bindir}/gddccontrol
128 %{_desktopdir}/*
129 %{_pixmapsdir}/*
130 %{_datadir}/ddccontrol-db/*
131
132 %files libs
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/lib*.so.*
135
136 %files applet
137 %defattr(644,root,root,755)
138 %dir %{_libdir}/ddccontrol
139 %dir %{_datadir}/ddccontrol
140 %attr(755,root,root) %{_libdir}/ddccontrol/ddcc-applet
141 %{_datadir}/ddccontrol/*
142 %{_libdir}/bonobo/servers/*
143
144 %files devel
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_libdir}/*.so
147 %{_libdir}/*.la
148 %{_includedir}/*
149
150 %files static
151 %defattr(644,root,root,755)
152 %{_libdir}/*.a
This page took 0.090783 seconds and 4 git commands to generate.