File: avifile.spec.in

package info (click to toggle)
avifile 1:0.7.48~20090503.ds-20.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 8,340 kB
  • sloc: cpp: 57,239; ansic: 56,968; sh: 5,370; perl: 1,548; makefile: 1,263; asm: 569; awk: 234
file content (174 lines) | stat: -rw-r--r-- 5,021 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
%define name	avifile
%define ver     @AVIFILE_MAJOR_VERSION@.@AVIFILE_MINOR_VERSION@.@AVIFILE_MICRO_VERSION@
%define mjver   @AVIFILE_MAJOR_VERSION@.@AVIFILE_MINOR_VERSION@
%define rel     1
%define cvsdate	@AVIFILE_BUILD@-
%define prefix  /usr

Summary:   AVI file library
Name:      %name-%mjver
Version:   %ver
Release:   %rel
License:   GPL
Group:     Development/Libraries
Source0:   %{name}-%{version}.tar.gz
Source1:   aviplay.keys
Source2:   aviplay.mime
#Patch0:     avifile-%{PACKAGE_VERSION}-patch0
URL:       http://avifile.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Packager:  Mario Mikocevic Mozgy <mozgy@hinet.hr>
Docdir: %{prefix}/doc
Requires:  SDL >= 1.2, xvid
BuildRequires: qt-devel >= 2.2.0

%description
Avifile is a library that allows programs to read and write compressed
AVI files (Indeo? Video, DivX :-), etc.) under x86 Linux.
(De)compression is performed with Win32 DLLs. 
CVS %{cvsdate}

%package devel
Summary:  Libraries, includes and more to develop avifile applications
Group:    Development/Libraries
Requires: %{name} = %{ver}

%description devel
Avifile is a library that allows programs to read and write compressed AVI 
files (Indeo? Video, DivX :-), etc.) under x86 Linux. (De)compression is 
performed with Win32 DLLs.

This is the libraries, include files and other resources you can use
to develop avifile applications.

%package utils
Summary:  Utilities for avifile
Group:    Applications/Multimedia
Requires: %{name} qt >= 3.2.0
Obsoletes: avifile-qt

%description utils
Utilities for testing avifile library based on QT toolkit. Contains aviplay,
avicat, avibench, avicap, avimake, avirecompress, avitype, kv4lsetup

%prep
%setup
#%patch0 -p1
#CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --enable-release --enable-quiet
#CFLAGS="$RPM_OPT_FLAGS -mcpu=i386 -fomit-frame-pointer" CXXFLAGS="$RPM_OPT_FLAGS -mcpu=i386 -fomit-frame-pointer" ./autogen.sh
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh

%build
# Needed for snapshot releases.
#CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --enable-release --enable-quiet --disable-xft
#CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --enable-release --enable-quiet --enable-lame --with-qt-dir=/usr/lib/qt2
#CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --enable-release --enable-quiet --disable-samples
#CFLAGS="$RPM_OPT_FLAGS -mcpu=i386 -fomit-frame-pointer" CXXFLAGS="$RPM_OPT_FLAGS -mcpu=i386 -fomit-frame-pointer" ./configure --prefix=%prefix --enable-release --enable-quiet -disable-vidix

CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --enable-release --enable-quiet
make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall prefix=$RPM_BUILD_ROOT%{prefix} install

####---------------------desktop entries--------------------------
###mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/X11/applnk/Multimedia/avifile
###cat >$RPM_BUILD_ROOT/%{_sysconfdir}/X11/applnk/Multimedia/avifile/aviplay.desktop <<EOF
###[Desktop Entry]
###Name=Aviplay
###Exec=aviplay
###MimeType=video/x-msvideo
###Terminal=false
###Type=Application
###EOF
###
###cat >$RPM_BUILD_ROOT/%{_sysconfdir}/X11/applnk/Multimedia/avifile/avirecompress.desktop <<EOF
###[Desktop Entry]
###Name=Avirecompress
###Exec=avirecompress
###Terminal=false
###Type=Application
###EOF
###
###cat >$RPM_BUILD_ROOT/%{_sysconfdir}/X11/applnk/Multimedia/avifile/avicap.desktop <<EOF
###[Desktop Entry]
###Name=Avicap
###Exec=avicap
###Terminal=false
###Type=Application
###EOF
###

%post
/sbin/ldconfig

%postun 
/sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc README COPYING
%{prefix}/bin/avifile-config
#%{prefix}/bin/mmxnow-config
%{prefix}/share/avifile%{mjver}/*
%{prefix}/lib
#%{prefix}/lib/avifile%{mjver}/*

%files devel
%defattr(-, root, root)
%doc doc/*
%{prefix}/include/avifile/
#%{prefix}/include/mmxnow.h
%{prefix}/share/aclocal/avifile.m4

%files utils
%{prefix}/bin/aviplay
%{prefix}/bin/avibench
%{prefix}/bin/avicap
%{prefix}/bin/avicat
%{prefix}/bin/avimake
%{prefix}/bin/avirecompress
%{prefix}/bin/avirec
%{prefix}/bin/avitype
%{prefix}/bin/kv4lsetup
%{prefix}/share/man/man1/

%changelog
* Tue Jan 10 2008 Zdenek Kabelac <zdenek.kabelac@gmail.com>
- Updated to 0.7.48

* Tue Dec 10 2002 Mario Mikocevic <mozgy@hinet.hr>
- Updated to 0.7.22

* Wed Nov 06 2002 Mario Mikocevic <mozgy@hinet.hr>
- Updated to 0.7.18

* Fri May 24 2002 Mario Mikocevic <mozgy@hinet.hr>
- Fixed compiling for all i[3456]86 archs

* Fri May 03 2002 Mario Mikocevic <mozgy@hinet.hr>
- Abbandoned DATE in release

* Fri Jan 11 2002 Mario Mikocevic <mozgy@hinet.hr>
- Rewamped .spec

* Wed Oct 05 2001 Mario Mikocevic <mozgy@hinet.hr>
- Fixed .spec for daily CVS update

* Wed Sep 12 2001 Mario Mikocevic <mozgy@hinet.hr>
- Fixed .spec

* Sat Jan 27 2001 Eugene Kuznetsov <divx@euro.ru>
- Updated to conform to new directory layout

* Tue Oct 02 2000 Eugene Kuznetsov <divx@euro.ru>
- Merged in contributed .spec  
- First public release

* Wed Sep 20 2000 Eugene Kuznetsov <divx@euro.ru>
- First try at an RPM