-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxcm.spec.in
118 lines (98 loc) · 2.83 KB
/
xcm.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
%define _udev_version %(rpm -q --queryformat %%{VERSION} udev)
%if 0%{_udev_version} > 190
%define _udevrulesdir /usr/lib/udev/rules.d
%else
%define _udevrulesdir /lib/udev/rules.d
%endif
Version: @PACKAGE_VERSION@
Release: 0
Source: http://sourceforge.net/projects/oyranos/files/Xcm/xcm-@[email protected]
Summary: X Color Management tools
License: MIT
Group: System/X11/Utilities
Name: xcm
URL: http://www.oyranos.org
Vendor: Kai-Uwe Behrmann
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#BuildRequires: liboyranos-devel >= 0.9.3
BuildRequires: udev
%if 0%{?suse_version} > 0
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: xorg-x11-Mesa
BuildRequires: xorg-x11-Mesa-devel
%endif
%if 0%{?suse_version} > 1010
BuildRequires: Mesa
BuildRequires: Mesa-devel
BuildRequires: gcc-c++
BuildRequires: libXcm-devel
BuildRequires: pkgconfig
BuildRequires: xorg-x11
BuildRequires: xorg-x11-devel
BuildRequires: xorg-x11-libX11
BuildRequires: xorg-x11-libX11-devel
BuildRequires: xorg-x11-libXfixes
BuildRequires: xorg-x11-libXfixes-devel
BuildRequires: xorg-x11-libXmu-devel
BuildRequires: xorg-x11-libs
BuildRequires: xorg-x11-util-devel
%endif
%if 0%{?mandriva_version} > 0
BuildRequires: Mesa
BuildRequires: gcc-c++
BuildRequires: libXcm-devel
BuildRequires: libtool-devel
BuildRequires: mesagl-devel
BuildRequires: pkgconfig
%endif
%if 0%{?fedora_version} > 0
BuildRequires: Mesa
BuildRequires: Mesa-devel
BuildRequires: elektra-devel
BuildRequires: gcc-c++
BuildRequires: libXcm-devel
BuildRequires: libXfixes-devel
BuildRequires: libXmu-devel
BuildRequires: libtool-ltdl-devel
BuildRequires: xdg-utils
BuildRequires: xorg-x11-Mesa-devel
BuildRequires: xorg-x11-devel
BuildRequires: xorg-x11-proto-devel
BuildRequires: xorg-x11-xtrans-devel
%endif
%description
The Xcm tools are colour management helpers for Xorg.
A EDID parser and a colour management events observer are included.
%prep
%setup -n %{name}-%{version}
%build
%configure --disable-static --with-udev-dir=%{_udevrulesdir}
make %{?_smp_mflags}
%install
%make_install
#Remove installed doc
rm -fr %{buildroot}/%{_datadir}/doc/%{name}
%files
%defattr(-, root, root)
%{_bindir}/%{name}events
%{_bindir}/%{name}edid
%{_bindir}/%{name}ddc
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}ddc.1*
%{_mandir}/man1/%{name}edid.1*
%{_mandir}/man1/%{name}events.1*
%{_udevrulesdir}/90-xcm-i2c.rules
%doc docs/AUTHORS docs/COPYING docs/ChangeLog README.md
%changelog
* Thu Sep 8 2011 Kai-Uwe Behrmann
- add and install xcm window region tool
- install xcm man page for xcm
* Thu Dec 30 2010 Kai-Uwe Behrmann
- install EDID from i2c tool
- install man pages
* Thu Oct 07 2010 Kai-Uwe Behrmann
- install EDID parser tool
- install xcmsevents tool