# # Conditional build: %bcond_without static_libs # don't build static library # Summary: Implementation of DVD CSS authentication protocol and decryption algorithm Summary(pl.UTF-8): Implementacja algorytmu uwierzytelniania i deszyfrowania DVD CSS Name: libcss Version: 0.1.0 Release: 8 License: GPL Group: Libraries Source0: http://www.linuxvideo.org/oms/data/%{name}-%{version}.tar.gz # Source0-md5: f328077f56f690d0136a106080c359df Patch0: %{name}-install.patch Patch1: %{name}-opt.patch Patch2: %{name}-am15.patch Patch3: %{name}-gcc33.patch Patch4: %{name}-creat_mode.patch URL: http://linuxvideo.org/oms/ BuildRequires: autoconf >= 2.13 BuildRequires: automake BuildRequires: libtool BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This package contains code to perform the CSS authentication protocol, allowing locked sectors on the DVD disc to be accessed. We are allowed to read the disc key and title keys. It contains also an implementation of the CSS decryption algorithm, so that we can watch DVD's. %description -l pl.UTF-8 Pakiet zawiera kod obsługujący protokół uwierzytelniania CSS, pozwalający na dostęp do zablokowanych sektorów na dyskach DVD. Umożliwia odczyt klucza dysku oraz klucze tytułów. Ponadto pakiet zawiera implementację algorytmu deszyfrującego CSS, pozwalającą na oglądanie filmów z DVD. %package -n css Summary: Some useful programs to access DVD Summary(pl.UTF-8): Użyteczne programy związane z DVD Group: Applications Requires: %{name} = %{version}-%{release} %description -n css Some useful programs to access DVD. %description -n css -l pl.UTF-8 Użyteczne programy związane z DVD. %package devel Summary: DVD CSS library headers Summary(pl.UTF-8): Pliki nagłówkowe biblioteki DVD CSS Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This is the libraries, include files and other resources you can use to incorporate libcss into applications. %description devel -l pl.UTF-8 Pliki nagłówkowe pozwalające na używanie biblioteki libcss w swoich programach. %package static Summary: DVD CSS static libraries Summary(pl.UTF-8): Statyczne biblioteki do obsługi DVD CSS Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static This is package with static libcss libraries. %description static -l pl.UTF-8 Statyczna biblioteka libcss. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %build %{__libtoolize} %{__aclocal} -I m4 %{__autoheader} %{__autoconf} %{__automake} %configure \ --enable-shared \ --with-kernel-includes=/usr/include \ %{!?with_static_libs:--disable-static} %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc src/README* %attr(755,root,root) %{_libdir}/lib*.so.*.*.* %files -n css %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/lib*.so %{_libdir}/lib*.la %{_includedir}/css.h %{_aclocaldir}/*.m4 %if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/lib*.a %endif