File divxcalc.spec of Package divxcalc

#
# spec file for package divxcalc (Version 0.6)
#
# Copyright (c) 2010 Kyrill Detinov
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

Name:           divxcalc
Version:        0.6
Release:        0
License:        GPL-2.0
Summary:        Simple DivX Calculator
URL:            http://www.axllent.org/projects/divxcalc
Group:          Productivity/Multimedia/Video/Editors and Convertors
Source0:        %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM divxcalc-0.6-nocheck_version.patch lazy.kent.suse@gmail.com
# -- don't check autoconf and automake versions
Patch0:         divxcalc-0.6-nocheck_version.patch
# PATCH-FEATURE-OPENSUSE divxcalc-0.6-bitrate.patch lazy.kent.suse@gmail.com
# -- add bitrates for AC-3 sound
Patch1:         divxcalc-0.6-bitrate.patch
BuildRequires:  qt3-devel automake
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
DivX Calc is a simple DivX calculator for Linux. It uses a simple Qt interface
which calculates which bitrate to use while encoding a movie using DivX.



Authors:
--------
    Ralph Slooten <ralph@genesys.ro>

%prep
%setup -q
%patch -P 0
%patch -P 1

%build
%{__make} -f Makefile.dist
%{configure}
%{__make} %{?_smp_mflags}

%install
%{makeinstall}
%{__install} -Dm 0644 pixmaps/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
# Create desktop-file
%{__cat} > %{name}.desktop << EOF
[Desktop Entry]
Name=DivX Calc
GenericName=Simple DivX Calculator
GenericName[ru]=Калькулятор битрейта DivX
Type=Application
Exec=divxcalc
Icon=divxcalc
Categories=AudioVideo;AudioVideoEditing;
Comment=Calculate bitrates used to encode avi movies
Comment[ru]=Расчёт битрейта для кодирования в DivX
StartupNotify=true
Terminal=false
EOF
# End of desktop-file
%suse_update_desktop_file -i %{name}

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%changelog

# kate: space-indent on; indent-width 4; replace-tabs on;
openSUSE Build Service is sponsored by