| 1 | %define capseo_version 0.3.0 |
|---|
| 2 | |
|---|
| 3 | # Tarfile created using git |
|---|
| 4 | # git clone git://gitorious.org/capseo/mainline.git libcapseo |
|---|
| 5 | # cd libcapseo |
|---|
| 6 | # git-archive --format=tar --prefix=libcapseo-%{capseo_version}/ %{git_version} | bzip2 > libcapseo-%{capseo_version}-%{gitdate}.tar.bz2 |
|---|
| 7 | |
|---|
| 8 | %define gitdate 20081031 |
|---|
| 9 | %define git_version 431a293 |
|---|
| 10 | |
|---|
| 11 | %define tarfile %{name}-%{capseo_version}-%{gitdate}.tar.bz2 |
|---|
| 12 | %define snapshot %{gitdate}git%{git_version} |
|---|
| 13 | |
|---|
| 14 | Summary: A realtime encoder/decoder library |
|---|
| 15 | Name: libcapseo |
|---|
| 16 | Version: %{capseo_version} |
|---|
| 17 | Release: 0.%{snapshot}.1%{?_dist_release} |
|---|
| 18 | License: GPLv3 |
|---|
| 19 | Group: System Environment/Libraries |
|---|
| 20 | URL: http://gitorious.org/projects/capseo/ |
|---|
| 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 22 | BuildRequires: libtool automake autoconf |
|---|
| 23 | BuildRequires: pkgconfig |
|---|
| 24 | BuildRequires: libtheora-devel |
|---|
| 25 | BuildRequires: libogg-devel |
|---|
| 26 | BuildRequires: libX11-devel |
|---|
| 27 | BuildRequires: mesa-libGL-devel |
|---|
| 28 | |
|---|
| 29 | # Fedora specific snapshot no upstream release (yet) |
|---|
| 30 | Source0: %{tarfile} |
|---|
| 31 | |
|---|
| 32 | %description |
|---|
| 33 | Capseo is a realtime video codec being used by libcaptury/captury |
|---|
| 34 | for encoding captured video frames in realtime. (think of FRAPS codec). |
|---|
| 35 | |
|---|
| 36 | Applications using capseo currently are libcaptury for encoding |
|---|
| 37 | captured data, e.g. currently from third-party OpenGL applications |
|---|
| 38 | via captury, the OpenGL video capturing tool. |
|---|
| 39 | |
|---|
| 40 | %package devel |
|---|
| 41 | Summary: Files needed for development using %{name} |
|---|
| 42 | Group: Development/Libraries |
|---|
| 43 | Requires: %{name} = %{version}-%{release} |
|---|
| 44 | Requires: libtheora-devel |
|---|
| 45 | Requires: libogg-devel |
|---|
| 46 | Requires: libX11-devel |
|---|
| 47 | Requires: mesa-libGL-devel |
|---|
| 48 | Requires: pkgconfig |
|---|
| 49 | |
|---|
| 50 | %description devel |
|---|
| 51 | This package contains libraries and header files for |
|---|
| 52 | developing applications that use %{name}. |
|---|
| 53 | |
|---|
| 54 | %package tools |
|---|
| 55 | Summary: Encoding/Decoding tools for capseo |
|---|
| 56 | Group: Applications/Multimedia |
|---|
| 57 | Requires: %{name} = %{version}-%{release} |
|---|
| 58 | |
|---|
| 59 | %description tools |
|---|
| 60 | Utilities for capseo |
|---|
| 61 | |
|---|
| 62 | %prep |
|---|
| 63 | %setup -q -n %{name}-%{version} |
|---|
| 64 | ./autogen.sh |
|---|
| 65 | |
|---|
| 66 | %build |
|---|
| 67 | %configure --disable-static --enable-theora --disable-examples |
|---|
| 68 | make %{?_smp_mflags} |
|---|
| 69 | |
|---|
| 70 | %install |
|---|
| 71 | rm -rf %{buildroot} |
|---|
| 72 | make install DESTDIR=%{buildroot} |
|---|
| 73 | |
|---|
| 74 | rm -rf %{buildroot}/%{_libdir}/*.la |
|---|
| 75 | |
|---|
| 76 | %clean |
|---|
| 77 | rm -rf %{buildroot} |
|---|
| 78 | |
|---|
| 79 | %post -p /sbin/ldconfig |
|---|
| 80 | |
|---|
| 81 | %postun -p /sbin/ldconfig |
|---|
| 82 | |
|---|
| 83 | %files |
|---|
| 84 | %defattr(-,root,root,-) |
|---|
| 85 | %doc AUTHORS COPYING TODO |
|---|
| 86 | %{_libdir}/*.so.* |
|---|
| 87 | |
|---|
| 88 | %files tools |
|---|
| 89 | %defattr(-,root,root,-) |
|---|
| 90 | %{_bindir}/* |
|---|
| 91 | |
|---|
| 92 | %files devel |
|---|
| 93 | %defattr(-,root,root,-) |
|---|
| 94 | %{_includedir}/*.h |
|---|
| 95 | %{_libdir}/libcapseo.so |
|---|
| 96 | %{_libdir}/pkgconfig/capseo.pc |
|---|
| 97 | |
|---|
| 98 | %changelog |
|---|
| 99 | * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.3.0-0.20081031git431a293.1 |
|---|
| 100 | - Initial build for Vine Linux |
|---|
| 101 | |
|---|
| 102 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-0.2.20081031git431a293 |
|---|
| 103 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
|---|
| 104 | |
|---|
| 105 | * Fri Nov 14 2008 Shawn Starr <spstarr@fedoraproject.org> 0.3.0-0.1.20081031git431a293 |
|---|
| 106 | - New upstream snapshot release 0.3.0 |
|---|
| 107 | |
|---|
| 108 | * Thu Oct 2 2008 Rex Dieter <rdieter@fedoraproject.org> 0.2.0-0.2.20080603gita6ec446 |
|---|
| 109 | - increment Release (#465297) |
|---|
| 110 | |
|---|
| 111 | * Tue Jul 1 2008 Shawn Starr <spstarr@fedoraproject.org> 0.2.0-0.1.20080603gita6ec446 |
|---|
| 112 | - Upstream snapshot, change GPLv2 to GPLv3. |
|---|
| 113 | - Fix minor configure script issue. |
|---|
| 114 | |
|---|
| 115 | * Sat May 3 2008 Shawn Starr <shawn.starr@rogers.com> 0.2.0-0.1.20080323git1c5f3e5 |
|---|
| 116 | - Initial Fedora package. |
|---|