%define major 2 %define libname %mklibname dvdcss %{major} %define develname %mklibname dvdcss -d Name: libdvdcss Version: 1.4.1 Release: %mkrel 1 Summary: Library for accessing DVDs as a block device using deCSS if needed License: GPLv2+ Group: System/Libraries URL: http://www.videolan.org/libdvdcss Source: http://download.videolan.org/pub/%{name}/%{version}/%{name}-%{version}.tar.bz2 %description libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption. The important features are: * Portability. Currently supported platforms are GNU/Linux, FreeBSD, NetBSD, OpenBSD, BSD/OS, BeOS, Windows 95/98, Windows NT/2000, MacOS X, Solaris, and HP-UX. * Simplicity. There are currently 7 functions in the API, and we intend to keep this number low. * Freedom. libdvdcss is released under the General Public License, ensuring it will stay free, and used only for free software products. * Just better. Unlike most similar projects, libdvdcss doesn't require the region of your drive to be set. This package is in 'tainted' as it may violate patents in some countries. %package -n %{libname} Summary: A library for accessing DVDs as a block device using deCSS if needed Group: System/Libraries Provides: %{name} = %{version}-%{release} %description -n %{libname} libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption. The important features are: * Portability. Currently supported platforms are GNU/Linux, FreeBSD, NetBSD, OpenBSD, BSD/OS, BeOS, Windows 95/98, Windows NT/2000, MacOS X, Solaris, and HP-UX. * Simplicity. There are currently 7 functions in the API, and we intend to keep this number low. * Freedom. libdvdcss is released under the General Public License, ensuring it will stay free, and used only for free software products. * Just better. Unlike most similar projects, libdvdcss doesn't require the region of your drive to be set. %package -n %{develname} Summary: Development tools for programs which will use the %{name} library Group: Development/C Requires: %{libname} = %{version} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %mklibname -d dvdcss 2 %description -n %{develname} The %{develname} package includes the header files and static libraries necessary for developing programs which will manipulate DVDs files using the %{name} library. If you are going to develop programs which will manipulate DVDs, you should install %{name}-devel. You'll also need to have the %{name} package installed. %prep %setup -q %build %configure2_5x --disable-static %make_build %install %make_install # we don't want these find %{buildroot} -name '*.la' -delete rm -rf %{buildroot}%{_docdir}/%{name} %files -n %{libname} %doc AUTHORS README %{_libdir}/*.so.%{major}{,.*} %files -n %{develname} %doc ChangeLog COPYING %{_libdir}/*.so %{_includedir}/* %{_libdir}/pkgconfig/*.pc