mirror of
https://abf.rosa.ru/djam/colord.git
synced 2025-02-23 14:02:57 +00:00
fix build
This commit is contained in:
parent
935b592948
commit
45b83b5cbe
1 changed files with 52 additions and 25 deletions
77
colord.spec
77
colord.spec
|
@ -1,9 +1,10 @@
|
|||
%define major 2
|
||||
%define gir_major 1.0
|
||||
%define api 1.0
|
||||
%define libname %mklibname %{name} %{major}
|
||||
%define libprivate %mklibname colordprivate %{major}
|
||||
%define libhug %mklibname colorhug %{major}
|
||||
%define girname %mklibname %{name}-gir %{gir_major}
|
||||
%define girname %mklibname %{name}-gir %{api}
|
||||
%define girhug %mklibname colorhug-gir %{api}
|
||||
%define devname %mklibname %{name} -d
|
||||
|
||||
# Building the extra print profiles requires colprof, +4Gb of RAM and
|
||||
|
@ -67,35 +68,41 @@ colord is a low level system activated daemon that maps color devices
|
|||
to color profiles in the system context.
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc README.md NEWS
|
||||
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.ColorManager.conf
|
||||
%doc AUTHORS NEWS
|
||||
%{_datadir}/bash-completion/completions/colormgr
|
||||
%{_datadir}/dbus-1/system.d/org.freedesktop.ColorManager.conf
|
||||
/lib/udev/rules.d/*.rules
|
||||
%{_bindir}/*
|
||||
%{_libdir}/colord
|
||||
%{_libdir}/colord-plugins/*
|
||||
%{_libdir}/colord-sane
|
||||
%{_libdir}/colord-sensors
|
||||
%{_libdir}/colord-session
|
||||
%{_libexecdir}/colord
|
||||
%if %{with sane}
|
||||
%{_libexecdir}/colord-sane
|
||||
%endif
|
||||
%{_libexecdir}/colord-session
|
||||
%{_libdir}/colord-plugins/*.so
|
||||
%{_libdir}/colord-sensors/*.so
|
||||
%dir %{_datadir}/color/icc/colord
|
||||
%{_datadir}/color/icc/colord/*.ic?
|
||||
%{_datadir}/colord/icons/*.svg
|
||||
%{_datadir}/colord/ti1/*.ti1
|
||||
%{_datadir}/colord/illuminant
|
||||
%{_datadir}/colord/cmf
|
||||
%{_datadir}/colord/ref
|
||||
%{_datadir}/dbus-1/interfaces/org.freedesktop.ColorHelper.xml
|
||||
%{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager*.xml
|
||||
%{_datadir}/colord/*
|
||||
%{_datadir}/dbus-1/services/org.freedesktop.ColorHelper.service
|
||||
%{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service
|
||||
%{_datadir}/glib-2.0/schemas/org.freedesktop.ColorHelper.gschema.xml
|
||||
%{_datadir}/polkit-1/actions/org.freedesktop.color.policy
|
||||
%{_datadir}/man/man1/*.1.*
|
||||
%if %{with docs}
|
||||
%{_mandir}/man1/*.1.*
|
||||
%endif
|
||||
%attr(755,colord,colord) %dir %{_localstatedir}/lib/colord
|
||||
%attr(755,colord,colord) %dir %{_localstatedir}/lib/colord/icc
|
||||
%ghost %{_localstatedir}/lib/colord/*.db
|
||||
%{_datadir}/dbus-1/interfaces/org.freedesktop.ColorHelper.xml
|
||||
%{_datadir}/dbus-1/services/org.freedesktop.ColorHelper.service
|
||||
%{_datadir}/glib-2.0/schemas/org.freedesktop.ColorHelper.gschema.xml
|
||||
%{_libdir}/girepository-1.0/ColorHug-*.typelib
|
||||
%{_libdir}/girepository-1.0/Colord-%{gir_major}.typelib
|
||||
%{_datadir}/bash-completion/completions/colormgr
|
||||
%{_systemunitdir}/*.service
|
||||
%{_tmpfilesdir}/colord.conf
|
||||
%{_udevrulesdir}/*.rules
|
||||
%{_userunitdir}/colord-session.service
|
||||
%{_presetdir}/86-colord.preset
|
||||
%{_unitdir}/*.service
|
||||
%{_prefix}/lib/systemd/user/colord-session.service
|
||||
%{_tmpfilesdir}/*.conf
|
||||
|
||||
%pre
|
||||
%_pre_useradd colord /var/lib/colord /sbin/nologin
|
||||
|
@ -155,7 +162,8 @@ Group: Development/C
|
|||
Requires: %{libname} = %{EVRD}
|
||||
Requires: %{libprivate} = %{EVRD}
|
||||
Requires: %{libhug} = %{EVRD}
|
||||
Requires: %{girname} = %{EVRD}
|
||||
Requires: %{girname} = %{version}-%{release}
|
||||
Requires: %{girhug} = %{version}-%{release}
|
||||
Provides: %{name}-devel = %{EVRD}
|
||||
|
||||
%description -n %{devname}
|
||||
|
@ -163,12 +171,32 @@ Files for development with %{name}.
|
|||
|
||||
%files -n %{devname}
|
||||
%{_includedir}/colord-1
|
||||
%{_libdir}/libcolor*.so
|
||||
%{_libdir}/pkgconfig/color*.pc
|
||||
%{_libdir}/lib*.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%{_datadir}/gir-1.0/*.gir
|
||||
%{_datadir}/vala/vapi/*.vapi
|
||||
%{_datadir}/vala/vapi/colord.deps
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
%package -n %{girhug}
|
||||
Summary: GObject Introspection interface description for ColorHug
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{girhug}
|
||||
GObject Introspection interface description for ColorHug
|
||||
|
||||
%files -n %{girhug}
|
||||
%{_libdir}/girepository-1.0/Colorhug-%{api}.typelib
|
||||
#----------------------------------------------------------------------------
|
||||
%package -n %{girname}
|
||||
Summary: GObject Introspection interface description for %{name}
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{girname}
|
||||
GObject Introspection interface description for %{name}.
|
||||
|
||||
%files -n %{girname}
|
||||
%{_libdir}/girepository-1.0/Colord-%{api}.typelib
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
@ -178,7 +206,6 @@ Files for development with %{name}.
|
|||
# generating the print profile rather than trying to allocate a 3.1 GiB
|
||||
# chunk of RAM to put the entire B-to-A tables in.
|
||||
ulimit -Sv 2000000
|
||||
%set_build_flags
|
||||
export CC=%{__cc}
|
||||
export CXX=%{__cxx}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue