-
Notifications
You must be signed in to change notification settings - Fork 3
/
compicc.spec.in
99 lines (81 loc) · 4.36 KB
/
compicc.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
Summary: Compiz ICC Colour Management
Name: compicc
License: BSD-3-Clause
Group: Productivity/Graphics/Other
Url: http://sourceforge.net/projects/compicc
BuildRoot: %{_tmppath}/%{name}-root
Prefix: %{_prefix}
# for mandriva; the compiz-devel package comes not with dependencies, so fit the compiz way
%define _disable_ld_no_undefined 1
BuildRequires: liboyranos-devel >= 0.9.0
Requires: oyranos-monitor
Recommends: oyranos-qcmsevents
BuildRequires: compiz < 0.9
Requires: compiz < 0.9
Requires: compizconfig-settings-manager < 0.9
%if 0%{?suse_version} > 0
BuildRequires: gcc-c++
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: pkgconfig
BuildRequires: libpng-devel
BuildRequires: libjpeg-devel
BuildRequires: xorg-x11-Mesa
BuildRequires: xorg-x11-Mesa-devel
BuildRequires: xdg-utils
BuildRequires: compiz-devel < 0.9
BuildRequires: libXcm-devel >= 0.5.0
BuildRequires: netpbm
BuildRequires: libtool
%endif
%if 0%{?suse_version} > 910
BuildRequires: bash binutils diffutils file filesystem findutils flex fontconfig fontconfig-devel freetype2 freetype2-devel gcc gcc-c++ gdbm gdbm-devel gettext gettext-devel glibc glibc-devel grep gzip make patch pkgconfig rpm sed tar util-linux zlib zlib-devel
%endif
%if 0%{?suse_version} > 1010
BuildRequires: Mesa Mesa-devel gcc-c++ gettext doxygen graphviz pkgconfig xorg-x11-fonts-devel xorg-x11-libICE xorg-x11-libICE-devel xorg-x11-libSM xorg-x11 xorg-x11-devel xorg-x11-libSM-devel xorg-x11-libX11 xorg-x11-libX11-devel xorg-x11-libXau xorg-x11-libXau-devel xorg-x11-libXdmcp xorg-x11-libXdmcp-devel xorg-x11-libXext xorg-x11-libXext-devel xorg-x11-libXfixes xorg-x11-libXfixes-devel xorg-x11-libXmu xorg-x11-libXmu-devel xorg-x11-libXp xorg-x11-libXp-devel xorg-x11-libXpm xorg-x11-libXpm-devel xorg-x11-libXprintUtil xorg-x11-libXprintUtil-devel xorg-x11-libXrender xorg-x11-libXrender-devel xorg-x11-libXt xorg-x11-libXt-devel xorg-x11-libXv xorg-x11-libXv-devel xorg-x11-libfontenc xorg-x11-libfontenc-devel xorg-x11-libs xorg-x11-libxkbfile xorg-x11-libxkbfile-devel xorg-x11-proto-devel xorg-x11-util-devel xorg-x11-xtrans-devel
%endif
%if 0%{?mandriva_version} > 0
BuildRequires: Mesa mesagl-devel gcc-c++ gettext doxygen graphviz pkgconfig lcms-devel xdg-utils compiz-devel libXcm-devel netpbm libtool-devel
%endif
%if 0%{?fedora_version} > 0
BuildRequires: Mesa Mesa-devel gcc-c++ doxygen pkgconfig xorg-x11-devel xorg-x11-Mesa-devel libXxf86vm-devel liblcms-devel xdg-utils libXcm-devel libXrandr-devel libXinerama-devel libXmu-devel netpbm elektra-devel compiz-devel
%endif
%if 0%{?debian_version} > 0
BuildRequires: gcc-c++ gettext doxygen graphviz libpng-devel libjpeg-devel pkgconfig xorg-x11 xorg-x11-devel xorg-x11-Mesa-devel xorg-x11-libXext xorg-x11-libXext-devel xorg-x11-libXpm xorg-x11-libXpm-devel libtiff-devel libxml2-devel cairo-devel liblcms-devel elektra-devel xdg-utils cups-devel libqt4-devel compiz-devel libXcm-dev netpbm
%endif
%description
The Compiz ICC colour server, or short compicc, lets you colour manage your
whole desktop at once and in hardware. Play movies, watch images on wide or
narrow gamut displays. Each connected monitor is colour corrected for its own.
%prep
%setup -n %{name}-%{version}
%build
%configure --enable-debug
%install
rm -rf %{buildroot}
make %{?_smp_mflags}
make DESTDIR=%{buildroot} install-main
rm -fr %{buildroot}/%{_datadir}/doc/%{name}
%post
/sbin/ldconfig
# enable the plugin
test -f /usr/share/compizconfig/global.xml && (if [ "`cat /usr/share/compizconfig/global.xml | grep compicc | wc -l`" = "0" ]; then cat /usr/share/compizconfig/global.xml | sed 's/<value>core<\/value>/<value>core<\/value>\n <value>compicc<\/value>/'> ccp_global.xml; mv -v ccp_global.xml /usr/share/compizconfig/global.xml; fi)
exit 0
%postun
/sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog README
%dir %{_libdir}/compiz/
%{_libdir}/compiz/libcompicc.so
%dir %{_datadir}/compiz/
%{_datadir}/compiz/compicc.xml
%dir /usr/share/ccsm/
%dir /usr/share/ccsm/icons/
%dir /usr/share/ccsm/icons/hicolor/
%dir /usr/share/ccsm/icons/hicolor/scalable/
%dir %{icondir}/
%{icondir}/plugin-compicc.svg
%changelog
* Thu Aug 10 2010 Kai-Uwe Behrmann
- initial packaging