libdvdcss.spec 5.21 KB
Newer Older
1
%define name 	libdvdcss
Alexis de Lattre's avatar
Alexis de Lattre committed
2
%define version	1.2.4
3
%define release	2
4

5
%define major  	2
6
%define libname %{name}%{major}
7

8 9 10 11 12 13 14 15 16 17 18
%define redhat80 0
%if %redhat80
%define release %rel
# some mdk macros that do not exist in rh
%define configure2_5x CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
%define make %__make
%define makeinstall_std make DESTDIR="$RPM_BUILD_ROOT" install
# adjust define for Redhat.
%endif


19 20 21
Name:		%{name}
Version:	%{version}
Release:	%{release}
22
Summary:        Library for accessing DVDs like block devices with transparent decryption
23
Source:		%{name}-%{version}.tar.bz2
24 25
License:	GPL
Group:		System/Libraries
26
URL:		http://www.videolan.org/libdvdcss/
27
Packager:	Yves Duret <yves@zarb.org>
28
BuildRoot:	%_tmppath/%name-%version-%release-root
29
Conflicts:	libdvdcss0.0.1, libdvdcss0.0.2
30 31 32 33

%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:
34
 * Portability: currently supported platforms are GNU/Linux, FreeBSD, NetBSD,
Alexis de Lattre's avatar
Alexis de Lattre committed
35 36
   OpenBSD, BSD/OS, BeOS, Windows 95/98/ME, Windows NT/2000/XP, MacOS X,
   Solaris, HP-UX and OS/2.
37 38 39 40
 * Adaptability: unlike most similar projects, libdvdcss doesn't require the
   region of your drive to be set and will try its best to read from the disc
   even in the case of a region mismatch.
 * Simplicity: a DVD player can be built around the libdvdcss API using no
Alexis de Lattre's avatar
Alexis de Lattre committed
41
   more than 6 library calls.
42

43
%package -n %{libname}
44
Summary:        Library for accessing DVDs like block devices with transparent decryption
45
Group:          System/Libraries
46
Provides:       %name = %version-%release
47

48 49
%description -n %{libname}
libdvdcss is a simple library designed for accessing DVDs like a block device
50
without having to bother about the decryption. The important features are:
51
 * Portability: currently supported platforms are GNU/Linux, FreeBSD, NetBSD,
Alexis de Lattre's avatar
Alexis de Lattre committed
52 53
   OpenBSD, BSD/OS, BeOS, Windows 95/98/ME, Windows NT/2000/XP, MacOS X,
   Solaris, HP-UX and OS/2.
54 55 56 57
 * Adaptability: unlike most similar projects, libdvdcss doesn't require the
   region of your drive to be set and will try its best to read from the disc
   even in the case of a region mismatch.
 * Simplicity: a DVD player can be built around the libdvdcss API using no
Alexis de Lattre's avatar
Alexis de Lattre committed
58
   more than 6 library calls.
59

60 61
%package -n %{libname}-devel
Summary:        Development tools for programs which will use the %{name} library
62
Group:          Development/C
63 64
Requires:	%{libname} = %version-%release
Provides:       %{name}-devel = %version-%release
65
 
66
%description -n %{libname}-devel
67 68 69 70
The %{name}-devel package includes the header files and static libraries
necessary for developing programs which will manipulate DVDs files using
the %{name} library.
 
71 72 73
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.
74 75 76 77 78

%prep
%setup -q

%build
79 80
%configure2_5x
%make
81 82

%install
83
%makeinstall_std
84 85

%clean
86
rm -rf %buildroot
87

88
%post -n %{libname} -p /sbin/ldconfig
89
 
90
%postun -n %{libname} -p /sbin/ldconfig
91

92 93 94
%files -n %{libname}
%defattr(-,root,root)
%doc AUTHORS COPYING
95 96
%{_libdir}/*.so.*

97
%files -n %{libname}-devel
98
%defattr(-,root,root)
99
%doc ChangeLog COPYING
100 101
%{_libdir}/*.a
%{_libdir}/*.so
102
%{_libdir}/*.la
103 104 105
%{_includedir}/*

%changelog
106 107
- add more macros to fix RedHat build.

108 109 110
* Mon Nov 18 2002 Alexis de Lattre <alexis@videolan.org> 1.2.4-2
- Changes in .spec file for RedHat and RPM 4.1

111
* Thu Nov 14 2002 Alexis de Lattre <alexis@videolan.org> 1.2.4-1
Alexis de Lattre's avatar
Alexis de Lattre committed
112 113 114 115 116 117 118
- new upstream release
- fixes for Win32

* Sun Oct 13 2002 Samuel Hocevar <sam@zoy.org> 1.2.3-1
- new upstream release
- fix for drives not allowing to read their disc key

119
* Sun Oct 13 2002 Samuel Hocevar <sam@zoy.org> 1.2.3-1
120 121 122
- new upstream release
- fix for drives not allowing to read their disc key

123
* Sat Aug 10 2002 Samuel Hocevar <sam@zoy.org> 1.2.2-1
124
- new upstream release
125
- even more fixes for the disc/drive region mismatch problem
126

127 128 129 130
* Sun Jun 02 2002 Samuel Hocevar <sam@zoy.org> 1.2.1-1
- new upstream release
- fix for a crash on disc/drive region mismatch

131
* Mon May 20 2002 Samuel Hocevar <sam@zoy.org> 1.2.0-1
132 133 134
- new upstream release
- weird libxalf dependency is gone

135 136 137 138 139 140 141 142 143 144 145 146
* Sun Apr 07 2002 Yves Duret <yduret@mandrakesoft.com> 1.1.1-2plf
- major version is 2 (aka guillaume sux).
- spec clean up: do not rm in %prep, %%buildroot, %%makeinstall_std, %%provides %%version-%%release
- added doc in devel
- sync with cvs's one (%%description,%%files, conflicts).
- fix url

* Sat Apr 06 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 1.1.1-1plf
- 1.1.1

* Wed Jan 30 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 1.0.0-3plf 
- new plf extension
Sam Hocevar's avatar
Sam Hocevar committed
147

148 149
* Wed Dec 05 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.0.0-3mdk
- removed conflict
150

151 152 153 154 155 156 157 158
* Tue Dec 04 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.0.0-2mdk
- contributed to PLF by Yves Duret <yduret@mandrakesoft.com>
- Conflicts: libdvdcss-ogle
- more doc files
- no doc file for devel package

* Fri Nov 30 2001 Yves Duret <yduret@mandrakesoft.com> 1.0.0-1mdk
- version 1.0.0
159 160 161 162 163 164 165 166 167

* Thu Aug 23 2001 Yves Duret <yduret@mandrakesoft.com> 0.0.3-1mdk
- version 0.0.3

* Mon Aug 13 2001 Yves Duret <yduret@mandrakesoft.com> 0.0.2-1mdk
- version 0.0.2

* Tue Jun 19 2001 Yves Duret <yduret@mandrakesoft.com> 0.0.1-1mdk
- first release and first mdk release