| 1 |
# Copyright (c) 2006-2008 oc2pus
|
| 2 |
# This file and all modifications and additions to the pristine
|
| 3 |
# package are under the same license as the package itself.
|
| 4 |
#
|
| 5 |
# Please submit bugfixes or comments to toni@links2linux.de
|
| 6 |
|
| 7 |
# norootforbuild
|
| 8 |
|
| 9 |
Name: DivFix++
|
| 10 |
Summary: Repair broken AVI file streams by rebuilding index part of file
|
| 11 |
Version: 0.30
|
| 12 |
Release: 8%{?dist}
|
| 13 |
License: GPLv2+
|
| 14 |
Group: Applications/Multimedia
|
| 15 |
URL: http://divfixpp.sourceforge.net/
|
| 16 |
Source0: http://downloads.sourceforge.net/divfixpp/%{name}_v%{version}-src.tar.bz2
|
| 17 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 18 |
BuildRequires: dos2unix
|
| 19 |
BuildRequires: pkgconfig
|
| 20 |
BuildRequires: wxGTK-devel
|
| 21 |
BuildRequires: desktop-file-utils
|
| 22 |
BuildRequires: gettext
|
| 23 |
|
| 24 |
%description
|
| 25 |
This program designed to repair broken AVI file streams by
|
| 26 |
rebuilding index part of file. This is very useful when trying
|
| 27 |
to preview movies which has no index part, like some files are
|
| 28 |
currently downloading from ed2k or bittorent networks.
|
| 29 |
|
| 30 |
DivFix++ has supports CLI tools, this means you can fix, preview
|
| 31 |
and delete movies automatically via script (by using argument
|
| 32 |
parameters...)
|
| 33 |
|
| 34 |
DivFix++ program code supports lots of operating system, because
|
| 35 |
it's writen by cross-platform API, wxWidgets.
|
| 36 |
|
| 37 |
%prep
|
| 38 |
%setup -q -n %{name}_v%{version}
|
| 39 |
sed -i.flags -e 's|-Os||' makefile
|
| 40 |
|
| 41 |
dos2unix docs/*
|
| 42 |
%{__chmod} 644 docs/*
|
| 43 |
|
| 44 |
%build
|
| 45 |
#make %{?_smp_mflags} WXCONFIG=wx-config
|
| 46 |
# Correct handle build flags
|
| 47 |
make %{?_smp_mflags} WXCONFIG=wx-config CPP="g++ %{optflags}"
|
| 48 |
|
| 49 |
%install
|
| 50 |
rm -rf %{buildroot}
|
| 51 |
|
| 52 |
%{__install} -p -dm 755 %{buildroot}%{_bindir}
|
| 53 |
%{__install} -p -m 755 %{name} \
|
| 54 |
%{buildroot}%{_bindir}
|
| 55 |
|
| 56 |
for i in cs_CZ hu ja tr; do
|
| 57 |
%{__install} -p -dm 755 %{buildroot}%{_datadir}/locale/$i/LC_MESSAGES
|
| 58 |
%{__install} -p -m 644 locale/$i/DivFix++.mo \
|
| 59 |
%{buildroot}%{_datadir}/locale/$i/LC_MESSAGES
|
| 60 |
done
|
| 61 |
|
| 62 |
# icon and menu-entry
|
| 63 |
%{__install} -p -dm 755 %{buildroot}%{_datadir}/pixmaps
|
| 64 |
%{__install} -p -m 644 resources/%{name}.png \
|
| 65 |
%{buildroot}%{_datadir}/pixmaps
|
| 66 |
|
| 67 |
%{__cat} > %{name}.desktop << EOF
|
| 68 |
[Desktop Entry]
|
| 69 |
Comment=A program to repair broken AVI file streams by rebuilding index part of file
|
| 70 |
Name=%{name}
|
| 71 |
GenericName=
|
| 72 |
Type=Application
|
| 73 |
Exec=%{name}
|
| 74 |
Icon=%{name}
|
| 75 |
Encoding=UTF-8
|
| 76 |
Categories=Video;AudioVideo;X-AudioVideoTools;
|
| 77 |
EOF
|
| 78 |
|
| 79 |
desktop-file-install --delete-original \
|
| 80 |
--dir=%{buildroot}/%{_datadir}/applications \
|
| 81 |
--mode 0644 \
|
| 82 |
%{name}.desktop
|
| 83 |
|
| 84 |
|
| 85 |
%find_lang %{name}
|
| 86 |
|
| 87 |
%clean
|
| 88 |
rm -rf %{buildroot}
|
| 89 |
|
| 90 |
%files -f %{name}.lang
|
| 91 |
%defattr(-,root,root,-)
|
| 92 |
%doc docs/*
|
| 93 |
%{_bindir}/%{name}
|
| 94 |
%{_datadir}/applications/%{name}.desktop
|
| 95 |
%{_datadir}/pixmaps/%{name}.png
|
| 96 |
|
| 97 |
%changelog
|
| 98 |
* Sun Sep 27 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.30-8
|
| 99 |
- Update desktop file according to F-12 FedoraStudio feature
|
| 100 |
|
| 101 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-7
|
| 102 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 103 |
|
| 104 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-6
|
| 105 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 106 |
|
| 107 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-5
|
| 108 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 109 |
|
| 110 |
* Fri Nov 28 2008 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 0.30-4
|
| 111 |
- Delete redundant "a programm to" from description, by suggestion from mail by Richard Hughes.
|
| 112 |
|
| 113 |
* Fri Oct 10 2008 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 0.30-3
|
| 114 |
- Remove '--vendor="%%{distribution}"' from installation desktop file. (Mamoru Tasaka)
|
| 115 |
And accordingly change filename
|
| 116 |
%%{_datadir}/applications/%%{distribution}-%%{name}.desktop
|
| 117 |
to
|
| 118 |
%%{_datadir}/applications/%%{name}.desktop
|
| 119 |
- Add string "Category=Video;" into desktop file and accordingly remove '--add-category="Video"'
|
| 120 |
from desktop-file-install command. (Mamoru Tasaka)
|
| 121 |
|
| 122 |
* Thu Oct 9 2008 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 0.30-2
|
| 123 |
- Correct SourceURL0 (Mamoru Tasaka)
|
| 124 |
- Correct build flags (Mamoru Tasaka: https://bugzilla.redhat.com/show_bug.cgi?id=458338#c4)
|
| 125 |
- Put desktop-file in category Video.
|
| 126 |
|
| 127 |
* Wed Oct 8 2008 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 0.30-1
|
| 128 |
- All chenges made by review of Mamoru Tasaka. Thanks to him.
|
| 129 |
- Remove hand %%define _prefix
|
| 130 |
- Replace %%__make %%{?jobs:-j%%{jobs}} to make %%{?_smp_mflags}
|
| 131 |
- %%distname replaced by %%{distribution}
|
| 132 |
- Source expanded to full url.
|
| 133 |
- Correct BuildRoot: %%{_tmppath}/%%{name}-%%{version}-build to %%{_tmppath}/%%{name}-%%{version}-%%{release}-root-%%(%%{__id_u} -n)
|
| 134 |
- In each install command add -p flag to preserve timestamps.
|
| 135 |
- In clean section "[ -d %%{buildroot} -a "%%{buildroot}" != "" ] && %%__rm -rf %%{buildroot}" replaced by simple:
|
| 136 |
rm -rf %%{buildroot}
|
| 137 |
- All $RPM_BUILD_ROOT replaced by %%{buildroot}
|
| 138 |
- %%defattr(-,root,root) changed to %%defattr(-,root,root,-)
|
| 139 |
- Remove extension .png from Icon in .desktop file
|
| 140 |
|
| 141 |
* Thu Aug 7 2008 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 0.30-0
|
| 142 |
- Import from Suse: http://packman.links2linux.org/downloadsource/64219/DivFix++-0.30-0.pm.1.src.rpm
|
| 143 |
- Remove all conditions with %%suse_version
|
| 144 |
- Replace %%suse_update_desktop_file -i %%{name} AudioVideo AudioVideoEditing to invoke desktop-file-install
|
| 145 |
- Add BuildRequires: desktop-file-utils
|
| 146 |
- Remove BuildRequires: update-desktop-files, mDNSResponder-lib
|
| 147 |
- BR wxWidgets-devel replaced by wxGTK-devel
|
| 148 |
- Delete BuildRequires: gcc-c++ (http://fedoraproject.org/wiki/Packaging/Guidelines#Exceptions)
|
| 149 |
- Group changed to Applications/Multimedia
|
| 150 |
- License adjusted to GPLv2+ (was GPL) according of source files.
|
| 151 |
- Remove %%debug_package
|
| 152 |
- Add BR gettext
|
| 153 |
|
| 154 |
* Sat Jun 21 2008 Toni Graffy <toni@links2linux.de> - 0.30-0.pm.1
|
| 155 |
- update to 0.29
|
| 156 |
* Fri Sep 07 2007 Toni Graffy <toni@links2linux.de> - 0.29-0.pm.2
|
| 157 |
- openSUSE-10.3 build with wxGTK
|
| 158 |
* Sun Apr 01 2007 Toni Graffy <toni@links2linux.de> - 0.29-0.pm.1
|
| 159 |
- update to 0.29
|
| 160 |
* Sun Mar 04 2007 Toni Graffy <toni@links2linux.de> - 0.28-0.pm.1
|
| 161 |
- update to 0.28
|
| 162 |
* Fri Dec 29 2006 Toni Graffy <toni@links2linux.de> - 0.27-0.pm.1
|
| 163 |
- update to 0.27
|
| 164 |
* Wed Nov 29 2006 Toni Graffy <toni@links2linux.de> - 0.26-0.pm.1
|
| 165 |
- initial release of rpm
|