]> git.pld-linux.org Git - packages/colord.git/blob - colord.spec
- moved dbus introspection data to main package
[packages/colord.git] / colord.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # do not build and package API docs
4 %bcond_without  static_libs     # don't build static libraries
5 #
6 Summary:        Color daemon
7 Name:           colord
8 Version:        0.1.5
9 Release:        1
10 License:        GPL v2+ and LGPL v2+
11 Group:          Daemons
12 Source0:        http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.bz2
13 # Source0-md5:  f815d1632558ad23c6dabad92e18994b
14 URL:            http://colord.hughsie.com/
15 BuildRequires:  autoconf >= 2.63
16 BuildRequires:  automake >= 1:1.9
17 BuildRequires:  dbus-devel
18 BuildRequires:  gettext-devel
19 BuildRequires:  glib2-devel >= 1:2.26.0
20 BuildRequires:  gtk-doc >= 1.9
21 BuildRequires:  intltool >= 0.40.0
22 BuildRequires:  lcms2-devel
23 BuildRequires:  libtool
24 BuildRequires:  pkgconfig
25 BuildRequires:  polkit-devel >= 0.97
26 BuildRequires:  sane-backends-devel
27 BuildRequires:  sqlite3-devel
28 BuildRequires:  udev-glib-devel
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 colord is a low level system activated daemon that maps color devices
33 to color profiles in the system context.
34
35 %package devel
36 Summary:        Header files for colord library
37 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki colord
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}-%{release}
40 Requires:       dbus-devel
41 Requires:       glib2-devel >= 1:2.26.0
42
43 %description devel
44 Header files for colord library.
45
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki colord.
48
49 %package static
50 Summary:        Static colord library
51 Summary(pl.UTF-8):      Statyczna biblioteka colord
52 Group:          Development/Libraries
53 Requires:       %{name}-devel = %{version}-%{release}
54
55 %description static
56 Static colord library.
57
58 %description static -l pl.UTF-8
59 Statyczna biblioteka colord.
60
61 %package apidocs
62 Summary:        colord API documentation
63 Summary(pl.UTF-8):      Dokumentacja API colord
64 Group:          Documentation
65 Requires:       gtk-doc-common
66
67 %description apidocs
68 colord API documentation.
69
70 %description apidocs -l pl.UTF-8
71 Dokumentacja API colord.
72
73 %prep
74 %setup -q
75
76 %build
77 %{__intltoolize}
78 %{__libtoolize}
79 %{__aclocal}
80 %{__autoconf}
81 %{__autoheader}
82 %{__automake}
83 %configure \
84         %{__enable_disable apidocs gtk-doc} \
85         %{__enable_disable static_libs static} \
86         --with-html-dir=%{_gtkdocdir}
87 %{__make}
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91
92 %{__make} install \
93         DESTDIR=$RPM_BUILD_ROOT
94
95 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
96
97 %find_lang %{name}
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %files -f %{name}.lang
106 %defattr(644,root,root,755)
107 %doc AUTHORS ChangeLog NEWS README TODO
108 %attr(755,root,root) %{_bindir}/colormgr
109 %attr(755,root,root) %{_libexecdir}/colord
110 %attr(755,root,root) %{_libdir}/libcolord.so.*.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libcolord.so.1
112 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Device.xml
113 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.Profile.xml
114 %{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager.xml
115 %{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service
116 %{_datadir}/polkit-1/actions/org.freedesktop.color.policy
117 %{_mandir}/man1/colormgr.1*
118 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/colord.conf
119 /etc/dbus-1/system.d/org.freedesktop.ColorManager.conf
120 /lib/udev/rules.d/95-cd-devices.rules
121
122 %files devel
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libcolord.so
125 %{_includedir}/libcolord
126 %{_pkgconfigdir}/colord.pc
127
128 %if %{with static_libs}
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/libcolord.a
132 %endif
133
134 %if %{with apidocs}
135 %files apidocs
136 %defattr(644,root,root,755)
137 %{_gtkdocdir}/colord
138 %endif
This page took 0.093409 seconds and 4 git commands to generate.