%define major 20 %define cheesemajor 1 %define libname %mklibname %{name}-gtk %{major} %define develname %mklibname -d %{name}-gtk %define girmajor 3.0 %define girname %mklibname %{name}-gtk-gir %{girmajor} Name: cheese Version: 3.2.0 Release: %mkrel 1 Summary: A GNOME application for taking pictures and videos from a webcam License: GPLv2+ Group: Video URL: http://www.gnome.org/projects/cheese/ Source: http://download.gnome.org/sources/cheese/3.2/%{name}-%{version}.tar.xz BuildRequires: pkgconfig(cairo) >= 1.10.0 BuildRequires: pkgconfig(clutter-1.0) >= 1.6.1 BuildRequires: pkgconfig(clutter-gst-1.0) >= 1.0.0 BuildRequires: pkgconfig(clutter-gtk-1.0) >= 0.91.8 BuildRequires: pkgconfig(gdk-3.0) >= 2.99.4 BuildRequires: pkgconfig(gdk-pixbuf-2.0) BuildRequires: pkgconfig(gee-1.0) >= 0.6.0 BuildRequires: pkgconfig(gio-2.0) >= 2.28.0 BuildRequires: pkgconfig(glib-2.0) >= 2.28.0 BuildRequires: pkgconfig(gnome-desktop-3.0) >= 2.91.6 BuildRequires: pkgconfig(gnome-video-effects) BuildRequires: pkgconfig(gobject-2.0) >= 2.28.0 BuildRequires: pkgconfig(gstreamer-0.10) >= 0.10.32 BuildRequires: pkgconfig(gstreamer-plugins-base-0.10) >= 0.10.32 BuildRequires: pkgconfig(gtk+-3.0) >= 2.99.4 BuildRequires: pkgconfig(gudev-1.0) BuildRequires: pkgconfig(libcanberra-gtk3) >= 0.26 BuildRequires: pkgconfig(librsvg-2.0) >= 2.32.0 BuildRequires: pkgconfig(mx-1.0) BuildRequires: pkgconfig(pangocairo) >= 1.28.0 BuildRequires: pkgconfig(x11) BuildRequires: gobject-introspection-devel >= 0.6.7 BuildRequires: gtk-doc >= 1.14 BuildRequires: gnome-doc-utils >= 0.20 BuildRequires: libxtst-devel BuildRequires: intltool Requires: gnome-video-effects # TODO update features once added upstream %description Cheese is a Photobooth-inspired GNOME application for taking pictures and videos from a webcam. It also includes fancy graphical effects based on the gstreamer-backend. %package -n %{libname} Group: System/Libraries Summary: Shared library part of %{name} %description -n %{libname} Cheese is a Photobooth-inspired GNOME application for taking pictures and videos from a webcam. It also includes fancy graphical effects based on the gstreamer-backend. %package -n %{develname} Group: Development/C Summary: Developent files for %{name} Requires: %{libname} = %{version}-%{release} Provides: lib%{name}-gtk-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{develname} Cheese is a Photobooth-inspired GNOME application for taking pictures and videos from a webcam. It also includes fancy graphical effects based on the gstreamer-backend. %package -n %{girname} Summary: GObject Introspection interface description for %{name} Group: System/Libraries Provides: %{mklibname %{name}-gir %{girmajor}} = %{version}-%{release} Requires: %{libname} = %{version}-%{release} %description -n %{girname} GObject Introspection interface description for %{name}. %prep %setup -q %build %configure2_5x --disable-static %make %install rm -rf %{buildroot} %makeinstall_std #we don't want these find %{buildroot} -name '*.la' -exec rm -f {} ';' %find_lang %{name} --with-gnome --all-name %define launchers %{_sysconfdir}/dynamic/launchers/webcam # dynamic support mkdir -p %{buildroot}%{launchers} cat > %{buildroot}%{launchers}/%name.desktop << EOF [Desktop Entry] Name=Webcam Photobooth Comment=Cheese Webcam Photobooth using \$devicename TryExec=cheese Exec=cheese Terminal=false Icon=cheese Type=Application StartupNotify=true EOF %post update-alternatives --install %{launchers}/kde.desktop webcam.kde.dynamic %{launchers}/%name.desktop 60 update-alternatives --install %{launchers}/gnome.desktop webcam.gnome.dynamic %{launchers}/%name.desktop 60 %postun if [ "$1" = "0" ]; then update-alternatives --remove webcam.kde.dynamic %{launchers}/%name.desktop update-alternatives --remove webcam.gnome.dynamic %{launchers}/%name.desktop fi %files -f %{name}.lang %defattr(-,root,root) %config(noreplace) %{launchers}/*.desktop %{_bindir}/* %{_datadir}/%{name} %{_datadir}/icons/hicolor/*/apps/* %{_datadir}/applications/* %{_datadir}/glib-2.0/schemas/org.gnome.Cheese.gschema.xml %files -n %{libname} %defattr(-,root,root) %{_libdir}/lib%{name}-gtk.so.%{major}* %{_libdir}/lib%{name}.so.%{cheesemajor}* %files -n %{girname} %defattr(-,root,root) %{_libdir}/girepository-1.0/Cheese-%{girmajor}.typelib %files -n %{develname} %defattr(-,root,root) %{_includedir}/%{name} %{_libdir}/lib%{name}-gtk.so %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}.pc %{_libdir}/pkgconfig/%{name}-gtk.pc %{_datadir}/gtk-doc/html/%{name}/ %{_datadir}/gir-1.0/Cheese-%{girmajor}.gir