| 1 | |
|---|
| 2 | # |
|---|
| 3 | # RPM spec file for OpenLibraries |
|---|
| 4 | # |
|---|
| 5 | |
|---|
| 6 | %define _prefix /usr |
|---|
| 7 | |
|---|
| 8 | Summary: OpenLibraries - a library suite for non-linear editing, visual effects and rich media applications. |
|---|
| 9 | Name: openlibraries |
|---|
| 10 | Version: 0.4.1 |
|---|
| 11 | Release: 4 |
|---|
| 12 | License: LGPL |
|---|
| 13 | Group: Development/Frameworks |
|---|
| 14 | Source: openlibraries-%{version}.tar.gz |
|---|
| 15 | Vendor: OpenLibraries |
|---|
| 16 | Packager: Goncalo de Carvalho <goncalo@vmfx.com> |
|---|
| 17 | URL: http://www.openlibraries.org |
|---|
| 18 | BuildRoot: %{_tmppath}/%name-%{version}-root |
|---|
| 19 | Requires: olib-glew >= 1.3.4-4 olib-mlt >= 0.2.2-1 olib-mlt++ >= 0.2.2-1 |
|---|
| 20 | BuildRequires: olib-glew-devel >= 1.3.4-4 olib-mlt-devel >= 0.2.2-1 olib-mlt++-devel >= 0.2.2-1 |
|---|
| 21 | Prefix: %{_prefix} |
|---|
| 22 | |
|---|
| 23 | %description |
|---|
| 24 | OpenLibraries - a library suite for non-linear editing, visual effects and rich media applications. |
|---|
| 25 | |
|---|
| 26 | %package devel |
|---|
| 27 | Summary: OpenLibraries development headers. |
|---|
| 28 | Group: Development/Frameworks |
|---|
| 29 | Requires: openlibraries = %{version} |
|---|
| 30 | Requires: olib-glew >= 1.3.4-4 olib-mlt >= 0.2.2-1 olib-mlt++ >= 0.2.2-1 |
|---|
| 31 | BuildRequires: olib-glew-devel >= 1.3.4-4 olib-mlt-devel >= 0.2.2-1 olib-mlt++-devel >= 0.2.2-1 |
|---|
| 32 | |
|---|
| 33 | %description devel |
|---|
| 34 | OpenLibraries development headers/libs. |
|---|
| 35 | |
|---|
| 36 | %package media |
|---|
| 37 | Summary: OpenLibraries sample media files. |
|---|
| 38 | Group: Development/Frameworks |
|---|
| 39 | Requires: openlibraries = %{version} |
|---|
| 40 | |
|---|
| 41 | %description media |
|---|
| 42 | OpenLibraries sample media files. |
|---|
| 43 | |
|---|
| 44 | %prep |
|---|
| 45 | rm -rf $RPM_BUILD_ROOT |
|---|
| 46 | |
|---|
| 47 | %setup -q -n openlibraries-%{version} |
|---|
| 48 | |
|---|
| 49 | %build |
|---|
| 50 | %configure "LDFLAGS=-Wl,--rpath=/usr/olib/0.4.1/lib" --prefix=%{_prefix} --enable-gpl --with-qtinclude=/usr/lib/qt-3.3/include --with-qtlib=/usr/lib/qt-3.3/lib --with-glewprefix=/usr/olib/0.4.1/ |
|---|
| 51 | make |
|---|
| 52 | #find . -name "*.so" -exec strip {} \; |
|---|
| 53 | |
|---|
| 54 | %install |
|---|
| 55 | OPENLIBRARIES_INCLUDEPATH="$RPM_BUILD_ROOT$OPENLIBRARIES_INCLUDEPATH" OPENLIBRARIES_LIBPATH="$RPM_BUILD_ROOT$OPENLIBRARIES_LIBPATH" DESTDIR=$RPM_BUILD_ROOT make install |
|---|
| 56 | |
|---|
| 57 | %clean |
|---|
| 58 | rm -rf $RPM_BUILD_ROOT |
|---|
| 59 | |
|---|
| 60 | %post |
|---|
| 61 | /sbin/ldconfig |
|---|
| 62 | |
|---|
| 63 | %postun |
|---|
| 64 | /sbin/ldconfig |
|---|
| 65 | |
|---|
| 66 | %files devel |
|---|
| 67 | %defattr(-,root,root) |
|---|
| 68 | %{_prefix}/include/openlibraries-%{version}/ |
|---|
| 69 | %{_prefix}/lib/openlibraries-%{version}/include/ |
|---|
| 70 | %{_prefix}/lib/pkgconfig/openlibraries.pc |
|---|
| 71 | |
|---|
| 72 | %files media |
|---|
| 73 | %defattr(-,root,root) |
|---|
| 74 | %{_prefix}/share/openlibraries-%{version}/ |
|---|
| 75 | |
|---|
| 76 | %files |
|---|
| 77 | %defattr(-,root,root) |
|---|
| 78 | %{_prefix}/lib/openlibraries-%{version}/openpluginlib |
|---|
| 79 | %{_prefix}/lib/openlibraries-%{version}/openimagelib |
|---|
| 80 | %{_prefix}/lib/openlibraries-%{version}/openmedialib |
|---|
| 81 | %{_prefix}/lib/openlibraries-%{version}/openobjectlib |
|---|
| 82 | %{_prefix}/lib/openlibraries-%{version}/openassetlib |
|---|
| 83 | %{_prefix}/lib/openlibraries-%{version}/openeffectslib |
|---|
| 84 | %{_prefix}/lib/python2.4/site-packages/openpluginlib.so |
|---|
| 85 | %{_prefix}/lib/python2.4/site-packages/openimagelib.so |
|---|
| 86 | %{_prefix}/lib/python2.4/site-packages/openassetlib.so |
|---|
| 87 | |
|---|
| 88 | %changelog |
|---|
| 89 | * Tue Sep 19 2006 Goncalo de Carvalho <goncalo@vmfx.com> |
|---|
| 90 | - increased the release number for Jahshaka 2.0 |
|---|
| 91 | * Mon Aug 16 2006 Goncalo de Carvalho <goncalo@vmfx.com> |
|---|
| 92 | - increased the release number for Jahshaka 2.0 RC4 |
|---|
| 93 | - increased version number |
|---|
| 94 | * Mon Jul 24 2006 Goncalo de Carvalho <goncalo@vmfx.com> |
|---|
| 95 | - increased the release number for Jahshaka 2.0 RC4 |
|---|
| 96 | * Mon Nov 21 2005 Goncalo de Carvalho <goncalo@vmfx.com> |
|---|
| 97 | - fixes to for installation on FC4 |
|---|
| 98 | * Sun Nov 20 2005 Goncalo de Carvalho <goncalo@vmfx.com> |
|---|
| 99 | - fixes to allow for custom built Boost and GLEW rpms |
|---|
| 100 | * Wed Nov 12 2005 Goncalo de Carvalho <goncalo@vmfx.com> |
|---|
| 101 | - initial packaging |
|---|