%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.1.91.1 Release: %mkrel 2 Summary: A GNOME application for taking pictures and videos from a webcam License: GPLv2+ Group: Video URL: http://www.gnome.org/projects/cheese/ Source: ftp://ftp.gnome.org/pub/GNOME/sources/cheese/3.1/%{name}-%{version}.tar.xz BuildRequires: glib2-devel >= 2.28.0 BuildRequires: libgdk_pixbuf2.0-devel BuildRequires: libgudev-devel BuildRequires: libgstreamer-devel >= 0.10.32 BuildRequires: libgstreamer0.10-plugins-base-devel >= 0.10.32 BuildRequires: cairo-devel >= 1.10.0 BuildRequires: pango-devel >= 1.28.0 BuildRequires: clutter-devel >= 1.6.1 BuildRequires: clutter-gst-devel >= 0.91.8 BuildRequires: libmx-devel BuildRequires: gobject-introspection-devel >= 0.6.7 BuildRequires: gtk-doc >= 1.14 BuildRequires: gnome-doc-utils >= 0.20 BuildRequires: gtk+3-devel >= 0.91.8 BuildRequires: gnome-desktop3-devel >= 2.91.6 BuildRequires: librsvg2-devel >= 2.32.0 BuildRequires: clutter-gtk-devel >= 0.91.8 BuildRequires: libgee-devel >= 0.6.0 BuildRequires: libcanberra-gtk-devel >= 0.26 BuildRequires: gnome-video-effects BuildRequires: dbus-glib-devel BuildRequires: libcanberra-devel BuildRequires: libxxf86vm-devel BuildRequires: libxtst-devel BuildRequires: desktop-file-utils BuildRequires: intltool BuildRequires: gnome-common 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 autoreconf -vf %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 %clean rm -rf %{buildroot} %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