libdvdcss.spec.in 5.66 KB
Newer Older
1 2
%define name    @PACKAGE_NAME@
%define version @PACKAGE_VERSION@
Diego Biurrun's avatar
Diego Biurrun committed
3
%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
Name:           %{name}
Version:        %{version}
21
Release:        %{release}%{?dist}
22
Summary:        Library for accessing DVDs like block devices with transparent decryption
Diego Biurrun's avatar
Diego Biurrun committed
23 24 25
Source:         %{name}-%{version}.tar.bz2
License:        GPL
Group:          System/Libraries
26
URL:            @PACKAGE_URL@
Diego Biurrun's avatar
Diego Biurrun committed
27 28 29
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, Haiku, Mac OS X, Solaris, QNX, OS/2, and Windows 2000 or later.
36
 * Adaptability: Unlike most similar projects, libdvdcss does not require the
37 38
   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.
39 40
 * Simplicity: A DVD player can be built around the libdvdcss API using no
   more than 4 or 5 library calls.
41

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

47 48
%description -n %{libname}
libdvdcss is a simple library designed for accessing DVDs like a block device
49
without having to bother about the decryption. The important features are:
50
 * Portability: Currently supported platforms are GNU/Linux, FreeBSD, NetBSD,
51
   OpenBSD, Haiku, Mac OS X, Solaris, QNX, OS/2, and Windows 2000 or later.
52
 * Adaptability: Unlike most similar projects, libdvdcss does not require the
53 54
   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.
55 56
 * Simplicity: A DVD player can be built around the libdvdcss API using no
   more than 4 or 5 library calls.
57

58 59
%package -n %{libname}-devel
Summary:        Development tools for programs which will use the %{name} library
60
Group:          Development/C
Diego Biurrun's avatar
Diego Biurrun committed
61
Requires:       %{libname} = %version-%release
62
Provides:       %{name}-devel = %version-%release
Diego Biurrun's avatar
Diego Biurrun committed
63

64
%description -n %{libname}-devel
65 66 67
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
68

69
If you are going to develop programs which will manipulate DVDs, you
70
should install %{name}-devel.  You will also need to have the %{name}
71
package installed.
72 73 74 75 76

%prep
%setup -q

%build
77 78
%configure2_5x
%make
79 80

%install
81
%makeinstall_std
82 83

%clean
Kipp Cannon's avatar
Kipp Cannon committed
84
[ %buildroot != "/" ] && rm -Rf %buildroot
85

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

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

90 91
%files -n %{libname}
%defattr(-,root,root)
Sam Hocevar's avatar
Sam Hocevar committed
92
%doc AUTHORS COPYING NEWS
93
%{_docdir}/libdvdcss
94 95
%{_libdir}/*.so.*

96
%files -n %{libname}-devel
97
%defattr(-,root,root)
98
%doc ChangeLog COPYING
99 100
%{_libdir}/*.a
%{_libdir}/*.so
101
%{_libdir}/*.la
102
%{_libdir}/pkgconfig/*
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
- sync with the CVS one (%%description,%%files, conflicts).
154
- 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