Changes of Revision 10
[-] | Changed | xvid.spec |
x 1
2 -%define name xvid 3 -%define ver 1.2.0 4 -%define rel 1 5 +# norootforbuild 6 7 -Name: %{name} 8 +%define soname 4 9 + 10 +Name: xvidcore 11 +Version: 1.2.1 12 +Release: 1 13 Summary: Xvid is a high quality MPEG-4 ASP video codec. 14 Summary(de): Xvid ist ein hochqualitativer MPEG-4 ASP Videocodec. 15 -Version: %{ver} 16 -Release: %{rel} 17 -License: GPL 18 +License: GNU General Public License (GPL) 19 Group: Development/Libraries 20 URL: http://www.xvid.org/ 21 22 -Source0: xvidcore-1.2.0.tar.bz2 23 -Patch0: xvidcore-1.2.0-compilefix.patch 24 +Source0: %{name}-%{version}.tar.bz2 25 26 -Obsoletes: xvidcore 27 -Provides: xvidcore 28 -ExclusiveArch: %{ix86} ppc sparc sparc64 sparcv9 x86_64 amd64 ia32e 29 -BuildRequires: gcc-c++ 30 -BuildRequires: yasm nasm 31 +Requires: lib%{name}%{soname} = %{version}-%{release} 32 +Obsoletes: xvid 33 +Provides: xvid = %{version}-%{release} 34 +BuildRequires: gcc-c++ yasm make pkgconfig nasm 35 BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n) 36 37 %description 38
39 FFmpeg MPEG-4 oder separaten DVD-Playern mit MPEG-4 Implementierungen 40 wieder gegeben werden. 41 42 -%package devel 43 +%package -n lib%{name}-devel 44 Summary: Development files of XviD video codec 45 -Summary(pl): Pliki programistyczne dla kodeka wideo XviD 46 Summary(de): Entwicklerdateien des XviD Video-Codecs 47 -Summary(fi): Kehitystiedostot XviD-videokodekille 48 Group: Development/Libraries 49 -Requires: %{name} = %{version}-%{release} 50 -Obsoletes: xvidcore-devel 51 -Provides: xvidcore-devel 52 -Provides: libxvidcore.so 53 +Requires: lib%{name}%{soname} = %{version}-%{release} 54 +Obsoletes: xvid-devel 55 +Provides: xvid-devel = %{version}-%{release} 56 57 -%description devel 58 +%description -n lib%{name}-devel 59 Development files of XviD video codec. 60 61 -%description devel -l pl 62 -Pliki programistyczne dla kodeka wideo XviD. 63 - 64 -%description devel -l de 65 +%description -n lib%{name}-devel -l de 66 Entwicklerdateien des XviD Video-Codecs. 67 68 -%description devel -l fi 69 -Kehitystiedostot XviD-videokodekille. 70 +%package -n lib%{name}%{soname} 71 +Summary: Shared library libxvidcore 72 +Summary(de): Bibliothek libxvidcore 73 +Group: System/Libraries 74 + 75 +%description -n lib%{name}%{soname} 76 +Shared library of XviD video codec. 77 + 78 +%description -n lib%{name}%{soname} -l de 79 +Bibliothek des XviD Video Codecs. 80 + 81 +%debug_package 82 + 83 84 %prep 85 -%setup -q -n %{name}core 86 -%patch0 87 +%setup -q -n "%{name}" 88 89 %build 90 -export CFLAGS="${RPM_OPT_FLAGS}" 91 -cd build/generic 92 +pushd build/generic 93 %configure 94 -%{__make} %{?jobs:-j%{jobs}} 95 +%__make %{?jobs:-j%{jobs}} 96 +popd #build/generic 97 98 %install 99 -[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} 100 -%{__install} -d %{buildroot}{%{_libdir},%{_includedir}} 101 +%__install -d "%{buildroot}%{_libdir}" 102 +%__install -d "%{buildroot}%{_includedir}" 103 104 -#cd %{name}core-%{version}/build/generic 105 -cd build/generic/=build 106 -%{__install} *.so* %{buildroot}%{_libdir} 107 -%{__install} *.a %{buildroot}%{_libdir} 108 - 109 -cd ../../../src 110 -%{__install} xvid.h %{buildroot}%{_includedir} 111 - 112 -cd %{buildroot}%{_libdir} 113 -%{__ln_s} libxvidcore.so.4.1 libxvidcore.so.4 114 -%{__ln_s} libxvidcore.so.4.1 libxvidcore.so 115 +pushd 'build/generic/=build' 116 +%__install *.so* *.a "%{buildroot}%{_libdir}/" 117 +popd #'build/generic/=build' 118 + 119 +pushd src 120 +%__install xvid.h "%{buildroot}%{_includedir}/" 121 +popd #src 122 + 123 +pushd "%{buildroot}%{_libdir}" 124 +%__ln_s libxvidcore.so.%{soname}.* libxvidcore.so.%{soname} 125 +%__ln_s libxvidcore.so.%{soname} libxvidcore.so 126 +popd #libdir 127 128 %clean 129 -[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} 130 +[ "%{buildroot}" != "/" ] && %__rm -rf "%{buildroot}" 131 132 -%post 133 -%if 0%{?suse_version} 134 -%run_ldconfig 135 -%else 136 -/sbin/ldconfig 137 -%endif 138 - 139 -%postun 140 -%if 0%{?suse_version} 141 -%run_ldconfig 142 -%else 143 -/sbin/ldconfig 144 -%endif 145 +%post -n lib%{name}%{soname} -p /sbin/ldconfig 146 +%postun -n lib%{name}%{soname} -p /sbin/ldconfig 147 148 %files 149 %defattr(644,root,root,755) 150 -%doc AUTHORS ChangeLog LICENSE README TODO 151 -%{_libdir}/*.so.* 152 153 -%files devel 154 +%files -n lib%{name}-devel 155 %defattr(644,root,root,755) 156 %doc CodingStyle doc examples 157 %{_includedir}/*.h 158 %{_libdir}/*.so 159 %{_libdir}/*.a 160 161 -%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) 162 +%files -n lib%{name}%{soname} 163 +%doc AUTHORS ChangeLog LICENSE README TODO 164 +%{_libdir}/libxvidcore.so.%{soname} 165 +%{_libdir}/libxvidcore.so.%{soname}.* 166 167 %changelog 168 * Sun Sep 30 2007 Carsten Schoene <cs@linux-administrator.com> 169 |
||
[+] | Deleted | xvidcore-1.2.0-compilefix.patch ^ |
@@ -1,21 +0,0 @@ ---- src/xvid.c.orig 2008-12-03 21:57:25.000000000 +0100 -+++ src/xvid.c 2008-12-03 21:58:25.000000000 +0100 -@@ -28,6 +28,10 @@ - #include <string.h> - #include <time.h> - -+#if !defined(_WIN32) -+#include <unistd.h> -+#endif -+ - #include "xvid.h" - #include "decoder.h" - #include "encoder.h" -@@ -675,7 +679,6 @@ - - #else - -- #include <unistd.h> - info->num_threads = sysconf(_SC_NPROCESSORS_CONF); - - #endif | ||
Deleted | xvidcore-1.2.0.tar.bz2 ^ | |
Changed | xvidcore-1.2.1.tar.bz2 ^ |