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