-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdvdauthor.spec.in
63 lines (44 loc) · 1.51 KB
/
dvdauthor.spec.in
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
%define DISTRO_RH %([ -f /etc/redhat-release ] && sed -e "s/\\(.\\+ release \\)\\(.\\+\\)\\( .\\+\\)/\\2/" /etc/redhat-release)
%define DISTRO_SUSE %([ -f /etc/SuSE-release ] && grep VERSION /etc/SuSE-release| sed -e "s/VERSION = /SuSE/"|tr -d ".")
%define dvdauthor_version @PACKAGE_VERSION@
%define dvdauthor_release 1
Summary: Latest DVDAuthor package
Name: dvdauthor
Version: %(echo %{dvdauthor_version}|tr -s "-" "_")
Release: %{dvdauthor_release}.%{DISTRO_RH}%{DISTRO_SUSE}
License: GNU GPL
Vendor: Unknown
Group: Applications/Multimedia
Source0: http://prdownloads.sourceforge.net/dvdauthor/dvdauthor-%{dvdauthor_version}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-root
Requires: libxml2 >= 2.6.0 libdvdread
BuildRequires: libxml2-devel >= 2.6.0 libdvdread-devel
URL: http://dvdauthor.sourceforge.net/
%description
dvdauthor is a program that will generate a DVD movie from a valid
mpeg2 stream that should play when you put it in a DVD player.
%prep
%setup -n %{name}-%{dvdauthor_version}
%build
%configure
make
%install
[ "x${RPM_BUILD_ROOT}" != "x/" ] && rm -rf "${RPM_BUILD_ROOT}"
%makeinstall
%clean
[ "x${RPM_BUILD_ROOT}" != "x/" ] && rm -rf "${RPM_BUILD_ROOT}"
%pre
%post
%preun
%files
%defattr(-,root,root)
%doc {COPYING,ChangeLog,INSTALL,README,TODO}
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man7/*
%{_datadir}/dvdauthor/*
%changelog
* Fri Feb 21 2003 Scott Smith 0.4.4
- adapted into source tree
* Fri Feb 21 2003 Dr. Peter Bieringer <pb at bieringer dot de> 0.4.3
- initial