]> git.pld-linux.org Git - packages/ddccontrol.git/blob - ddccontrol.spec
e5e3bcadbe5e8dd84baa0de41014e83725d90450
[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:  pciutils-devel
19 BuildRequires:  libxml2-devel
20 BuildRequires:  gtk+2-devel >= 2.4
21 BuildRequires:  libtool
22 Requires:       pciutils
23 Requires:       libxml2
24 Requires:       %{name}-libs = %{version}-%{release}
25 Requires:       gtk+2 >= 2.4
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 devel
51 Summary:        Development files for ddccontrol
52 Summary(pl):    Pliki niezbêdne programistom dla ddccontrol
53 Group:          Development/Libraries
54 Requires:       %{name} = %{version}-%{release}
55
56 %description devel
57 DDCcontrol is a program used to control monitor parameters, like
58 brightness and contrast, by software, i.e. without using the OSD and
59 the buttons in front of the monitor. This package contains files need
60 for development.
61
62 %description devel -l pl
63 DDCcontrol jest programem s³u¿±cym do kontroli parametrów monitora
64 takich jak jaskrawo¶æ i kontrast, bez u¿ywania OSD i przycisków na
65 obudowie monitora. Ten pakiet zawiera pliki niezbêdne programistom.
66
67 %package static
68 Summary:        Static libraries for ddccontrol
69 Summary(pl):    Biblioteki statyczne dla ddccontrol
70 Group:          Development/Libraries
71 Requires:       %{name}-devel = %{version}-%{release}
72
73 %description static
74 DDCcontrol is a program used to control monitor parameters, like
75 brightness and contrast, by software, i.e. without using the OSD and
76 the buttons in front of the monitor. This package contains static
77 libraries.
78
79 %description static -l pl
80 DDCcontrol jest programem s³u¿±cym do kontroli parametrów monitora
81 takich jak jaskrawo¶æ i kontrast, bez u¿ywania OSD i przycisków na
82 obudowie monitora. Ten pakiet zawiera biblioteki statyczne.
83
84 %prep
85 %setup -q -a 1
86 %patch0 -p1
87 %patch1 -p1
88
89 %build
90 %configure \
91         --disable-gnome-applet
92 %{__make}
93 cd %{ddcdb}
94 %configure
95 %{__make}
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101 cd %{ddcdb}
102 %{__make} install \
103         DESTDIR=$RPM_BUILD_ROOT
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %files
109 %defattr(644,root,root,755)
110 %doc AUTHORS ChangeLog NEWS README TODO
111 %attr(755,root,root) %{_bindir}/ddccontrol
112 %attr(755,root,root) %{_bindir}/ddcpci
113 %attr(755,root,root) %{_bindir}/gddccontrol
114 %{_desktopdir}/*
115 %{_pixmapsdir}/*
116 %{_datadir}/locale/*/*/*
117 %{_datadir}/ddccontrol-db/*
118
119 %files libs
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/lib*.so.*
122
123 %files devel
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/*.so
126 %{_libdir}/*.la
127 %{_includedir}/*
128
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/*.a
This page took 0.093324 seconds and 3 git commands to generate.