libdvdcss.spec 5.63 KB
Newer Older
Diego Biurrun's avatar
Diego Biurrun committed
1 2 3
%define name    libdvdcss
%define version 1.2.9
%define release 1
4

Diego Biurrun's avatar
Diego Biurrun committed
5
%define major   2
6
%define libname %{name}%{major}
7

8
%define buildfor_rh9 %([[ -e /etc/mandrake-release ]] && echo 0 || echo 1)
Kipp Cannon's avatar
Kipp Cannon committed
9

10
%if %buildfor_rh9
11
# some mdk macros that do not exist in rh
Kipp Cannon's avatar
Kipp Cannon committed
12
%define configure2_5x %configure
13
%define make %__make
Kipp Cannon's avatar
Kipp Cannon committed
14
%define makeinstall_std %makeinstall
15
# adjust define for Red Hat.
16 17 18
%endif


Diego Biurrun's avatar
Diego Biurrun committed
19 20 21
Name:           %{name}
Version:        %{version}
Release:        %{release}
22
Summary:        Library for accessing DVDs like block devices with transparent decryption
Diego Biurrun's avatar
Diego Biurrun committed
23 24 25 26 27 28 29
Source:         %{name}-%{version}.tar.bz2
License:        GPL
Group:          System/Libraries
URL:            http://www.videolan.org/libdvdcss/
Packager:       Yves Duret <yves@zarb.org>
BuildRoot:      %_tmppath/%name-%version-%release-root
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,
35
   OpenBSD, BeOS, Windows 98/ME, Windows NT/2000/XP, Mac OS X, Solaris,
Diego Biurrun's avatar
Diego Biurrun committed
36
   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
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,
52
   OpenBSD, BeOS, Windows 98/ME, Windows NT/2000/XP, Mac OS X, Solaris,
Diego Biurrun's avatar
Diego Biurrun committed
53
   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
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
Diego Biurrun's avatar
Diego Biurrun committed
63
Requires:       %{libname} = %version-%release
64
Provides:       %{name}-devel = %version-%release
Diego Biurrun's avatar
Diego Biurrun committed
65

66
%description -n %{libname}-devel
67 68 69
The %{name}-devel package includes the header files and static libraries
necessary for developing programs which will manipulate DVDs files using
the %{name} library.
Diego Biurrun's avatar
Diego Biurrun committed
70

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
Kipp Cannon's avatar
Kipp Cannon committed
86
[ %buildroot != "/" ] && rm -Rf %buildroot
87

88
%post -n %{libname} -p /sbin/ldconfig
Diego Biurrun's avatar
Diego Biurrun committed
89

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

92 93
%files -n %{libname}
%defattr(-,root,root)
Sam Hocevar's avatar
Sam Hocevar committed
94
%doc AUTHORS COPYING NEWS
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
%{_includedir}/*

105
%changelog
106 107 108
* Mon Jul 11 2005 Sam Hocevar <sam@zoy.org> 1.2.9-1
- new upstream release

109 110 111
* Tue Jul 29 2003 Sam Hocevar <sam@zoy.org> 1.2.8-1
- new upstream release

112 113 114 115
* Fri Jun 13 2003 Sam Hocevar <sam@zoy.org> 1.2.7-1
- new upstream release
- key cache activated by default

116 117 118 119
* Mon Mar 10 2003 Alexis de Lattre <alexis@videolan.org> 1.2.6-1
- new upstream release
- small bug fixes

120
* Tue Jan 28 2003 Sam Hocevar <sam@zoy.org> 1.2.5-1
Sam Hocevar's avatar
Sam Hocevar committed
121 122 123
- new upstream release
- improved robustness in case of read errors
- key cache support
124
- added more macros to fix Red Hat build
125

126
* Mon Nov 18 2002 Alexis de Lattre <alexis@videolan.org> 1.2.4-2
127
- Changes in .spec file for Red Hat and RPM 4.1
128

129
* Thu Nov 14 2002 Alexis de Lattre <alexis@videolan.org> 1.2.4-1
130 131 132
- new upstream release
- fixes for Win32

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

137
* Sat Aug 10 2002 Sam Hocevar <sam@zoy.org> 1.2.2-1
138
- new upstream release
139
- even more fixes for the disc/drive region mismatch problem
140

141
* Sun Jun 02 2002 Sam Hocevar <sam@zoy.org> 1.2.1-1
142 143 144
- new upstream release
- fix for a crash on disc/drive region mismatch

145
* Mon May 20 2002 Sam Hocevar <sam@zoy.org> 1.2.0-1
146 147 148
- new upstream release
- weird libxalf dependency is gone

149 150
* Sun Apr 07 2002 Yves Duret <yduret@mandrakesoft.com> 1.1.1-2plf
- major version is 2 (aka guillaume sux).
151
- spec clean up: do not rm in %%prep, %%buildroot, %%makeinstall_std, %%provides %%version-%%release
152
- added doc in devel
153 154
- sync with CVS's one (%%description,%%files, conflicts).
- fix URL
155 156 157 158

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

Diego Biurrun's avatar
Diego Biurrun committed
159
* Wed Jan 30 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 1.0.0-3plf
160
- new plf extension
161

162 163
* Wed Dec 05 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.0.0-3mdk
- removed conflict
164

165 166 167 168 169 170 171 172
* 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
173 174 175 176 177 178 179 180 181

* 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