/[packages]/cauldron/cheese/current/SPECS/cheese.spec
ViewVC logotype

Contents of /cauldron/cheese/current/SPECS/cheese.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 159421 - (show annotations) (download)
Sat Oct 29 02:33:12 2011 UTC (8 years, 9 months ago) by fwang
File size: 4695 byte(s)
new version 3.3.1
1 %define major 20
2 %define cheesemajor 1
3
4 %define libname %mklibname %{name}-gtk %{major}
5 %define develname %mklibname -d %{name}-gtk
6
7 %define girmajor 3.0
8 %define girname %mklibname %{name}-gtk-gir %{girmajor}
9
10 %define url_ver %(echo %{version}|cut -d. -f1,2)
11
12 Name: cheese
13 Version: 3.3.1
14 Release: %mkrel 1
15 Summary: A GNOME application for taking pictures and videos from a webcam
16 License: GPLv2+
17 Group: Video
18 URL: http://www.gnome.org/projects/cheese/
19 Source: http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
20 BuildRequires: pkgconfig(cairo) >= 1.10.0
21 BuildRequires: pkgconfig(clutter-1.0) >= 1.6.1
22 BuildRequires: pkgconfig(clutter-gst-1.0) >= 1.0.0
23 BuildRequires: pkgconfig(clutter-gtk-1.0) >= 0.91.8
24 BuildRequires: pkgconfig(gdk-3.0) >= 2.99.4
25 BuildRequires: pkgconfig(gdk-pixbuf-2.0)
26 BuildRequires: pkgconfig(gee-1.0) >= 0.6.0
27 BuildRequires: pkgconfig(gio-2.0) >= 2.28.0
28 BuildRequires: pkgconfig(glib-2.0) >= 2.28.0
29 BuildRequires: pkgconfig(gnome-desktop-3.0) >= 2.91.6
30 BuildRequires: pkgconfig(gnome-video-effects)
31 BuildRequires: pkgconfig(gobject-2.0) >= 2.28.0
32 BuildRequires: pkgconfig(gstreamer-0.10) >= 0.10.32
33 BuildRequires: pkgconfig(gstreamer-plugins-base-0.10) >= 0.10.32
34 BuildRequires: pkgconfig(gtk+-3.0) >= 2.99.4
35 BuildRequires: pkgconfig(gudev-1.0)
36 BuildRequires: pkgconfig(libcanberra-gtk3) >= 0.26
37 BuildRequires: pkgconfig(librsvg-2.0) >= 2.32.0
38 BuildRequires: pkgconfig(mx-1.0)
39 BuildRequires: pkgconfig(pangocairo) >= 1.28.0
40 BuildRequires: pkgconfig(x11)
41 BuildRequires: gobject-introspection-devel >= 0.6.7
42 BuildRequires: gtk-doc >= 1.14
43 BuildRequires: gnome-doc-utils >= 0.20
44 BuildRequires: libxtst-devel
45 BuildRequires: intltool
46 Requires: gnome-video-effects
47 Requires: gstreamer0.10-plugins-bad
48
49 # TODO update features once added upstream
50 %description
51 Cheese is a Photobooth-inspired GNOME application for taking pictures and
52 videos from a webcam. It also includes fancy graphical effects based on
53 the gstreamer-backend.
54
55 %package -n %{libname}
56 Group: System/Libraries
57 Summary: Shared library part of %{name}
58
59 %description -n %{libname}
60 Cheese is a Photobooth-inspired GNOME application for taking pictures and
61 videos from a webcam. It also includes fancy graphical effects based on
62 the gstreamer-backend.
63
64 %package -n %{develname}
65 Group: Development/C
66 Summary: Developent files for %{name}
67 Requires: %{libname} = %{version}-%{release}
68 Provides: lib%{name}-gtk-devel = %{version}-%{release}
69 Provides: lib%{name}-devel = %{version}-%{release}
70 Provides: %{name}-devel = %{version}-%{release}
71
72 %description -n %{develname}
73 Cheese is a Photobooth-inspired GNOME application for taking pictures and
74 videos from a webcam. It also includes fancy graphical effects based on
75 the gstreamer-backend.
76
77 %package -n %{girname}
78 Summary: GObject Introspection interface description for %{name}
79 Group: System/Libraries
80 Provides: %{mklibname %{name}-gir %{girmajor}} = %{version}-%{release}
81 Requires: %{libname} = %{version}-%{release}
82
83 %description -n %{girname}
84 GObject Introspection interface description for %{name}.
85
86 %prep
87 %setup -q
88
89 %build
90 %configure2_5x --disable-static
91 %make
92
93 %install
94 rm -rf %{buildroot}
95 %makeinstall_std
96
97 #we don't want these
98 find %{buildroot} -name '*.la' -exec rm -f {} ';'
99
100 %find_lang %{name} --with-gnome --all-name
101
102 %define launchers %{_sysconfdir}/dynamic/launchers/webcam
103
104 # dynamic support
105 mkdir -p %{buildroot}%{launchers}
106 cat > %{buildroot}%{launchers}/%name.desktop << EOF
107 [Desktop Entry]
108 Name=Webcam Photobooth
109 Comment=Cheese Webcam Photobooth using \$devicename
110 TryExec=cheese
111 Exec=cheese
112 Terminal=false
113 Icon=cheese
114 Type=Application
115 StartupNotify=true
116 EOF
117
118 %post
119 update-alternatives --install %{launchers}/kde.desktop webcam.kde.dynamic %{launchers}/%name.desktop 60
120 update-alternatives --install %{launchers}/gnome.desktop webcam.gnome.dynamic %{launchers}/%name.desktop 60
121
122 %postun
123 if [ "$1" = "0" ]; then
124 update-alternatives --remove webcam.kde.dynamic %{launchers}/%name.desktop
125 update-alternatives --remove webcam.gnome.dynamic %{launchers}/%name.desktop
126 fi
127
128 %files -f %{name}.lang
129 %config(noreplace) %{launchers}/*.desktop
130 %{_bindir}/*
131 %{_datadir}/%{name}
132 %{_datadir}/icons/hicolor/*/apps/*
133 %{_datadir}/applications/*
134 %{_datadir}/glib-2.0/schemas/org.gnome.Cheese.gschema.xml
135
136 %files -n %{libname}
137 %{_libdir}/lib%{name}-gtk.so.%{major}*
138 %{_libdir}/lib%{name}.so.%{cheesemajor}*
139
140 %files -n %{girname}
141 %{_libdir}/girepository-1.0/Cheese-%{girmajor}.typelib
142
143 %files -n %{develname}
144 %{_includedir}/%{name}
145 %{_libdir}/lib%{name}-gtk.so
146 %{_libdir}/lib%{name}.so
147 %{_libdir}/pkgconfig/%{name}.pc
148 %{_libdir}/pkgconfig/%{name}-gtk.pc
149 %{_datadir}/gtk-doc/html/%{name}/
150 %{_datadir}/gir-1.0/Cheese-%{girmajor}.gir

  ViewVC Help
Powered by ViewVC 1.1.28