swt2c / rpms / DivFix++

Forked from rpms/DivFix++ 6 years ago
Clone
4aec664
# Copyright (c) 2006-2008 oc2pus
4aec664
# This file and all modifications and additions to the pristine
4aec664
# package are under the same license as the package itself.
4aec664
#
4aec664
# Please submit bugfixes or comments to toni@links2linux.de
4aec664
4aec664
# norootforbuild
4aec664
4aec664
Name:		DivFix++
f71a6d7
Summary:		Repair broken AVI file streams by rebuilding index part of file
2ed524b
Version:		0.34
b36f1b0
Release:		17%{?dist}
4aec664
License:		GPLv2+
4aec664
Group:		Applications/Multimedia
4aec664
URL:			http://divfixpp.sourceforge.net/
4aec664
Source0:		http://downloads.sourceforge.net/divfixpp/%{name}_v%{version}-src.tar.bz2
4aec664
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4aec664
BuildRequires:	dos2unix
4aec664
BuildRequires:	pkgconfig
4aec664
BuildRequires:	wxGTK-devel
4aec664
BuildRequires:	desktop-file-utils
4aec664
BuildRequires:	gettext
4aec664
4aec664
%description
4aec664
This program designed to repair broken AVI file streams by
4aec664
rebuilding index part of file. This is very useful when trying
4aec664
to preview movies which has no index part, like some files are
4aec664
currently downloading from ed2k or bittorent networks.
4aec664
4aec664
DivFix++ has supports CLI tools, this means you can fix, preview
4aec664
and delete movies automatically via script (by using argument
4aec664
parameters...)
4aec664
4aec664
DivFix++ program code supports lots of operating system, because
4aec664
it's writen by cross-platform API, wxWidgets.
4aec664
4aec664
%prep
4aec664
%setup -q -n %{name}_v%{version}
4aec664
sed -i.flags -e 's|-Os||' makefile
4aec664
4aec664
dos2unix		docs/*
4aec664
%{__chmod}	644	docs/*
4aec664
4aec664
%build
4aec664
#make %{?_smp_mflags} WXCONFIG=wx-config
4aec664
# Correct handle build flags
4aec664
make %{?_smp_mflags} WXCONFIG=wx-config CPP="g++ %{optflags}"
4aec664
4aec664
%install
4aec664
rm -rf %{buildroot}
4aec664
4aec664
%{__install} -p -dm 755 %{buildroot}%{_bindir}
4aec664
%{__install} -p -m 755 %{name} \
4aec664
	%{buildroot}%{_bindir}
4aec664
4aec664
for i in cs_CZ hu ja tr; do
4aec664
	%{__install} -p -dm 755 %{buildroot}%{_datadir}/locale/$i/LC_MESSAGES
4aec664
	%{__install} -p -m 644 locale/$i/DivFix++.mo \
4aec664
		%{buildroot}%{_datadir}/locale/$i/LC_MESSAGES
4aec664
done
4aec664
4aec664
# icon and menu-entry
4aec664
%{__install} -p -dm 755 %{buildroot}%{_datadir}/pixmaps
4aec664
%{__install} -p -m 644 resources/%{name}.png \
4aec664
	%{buildroot}%{_datadir}/pixmaps
4aec664
4aec664
%{__cat} > %{name}.desktop << EOF
4aec664
[Desktop Entry]
4aec664
Comment=A program to repair broken AVI file streams by rebuilding index part of file
4aec664
Name=%{name}
4aec664
GenericName=
4aec664
Type=Application
4aec664
Exec=%{name}
4aec664
Icon=%{name}
4aec664
Encoding=UTF-8
25f23a3
Categories=Video;AudioVideo;X-AudioVideoTools;
4aec664
EOF
4aec664
4aec664
desktop-file-install --delete-original \
4aec664
	--dir=%{buildroot}/%{_datadir}/applications	\
4aec664
	--mode 0644							\
4aec664
	%{name}.desktop
4aec664
4aec664
4aec664
%find_lang %{name}
4aec664
4aec664
%clean
4aec664
rm -rf %{buildroot}
4aec664
4aec664
%files -f %{name}.lang
4aec664
%defattr(-,root,root,-)
4aec664
%doc docs/*
4aec664
%{_bindir}/%{name}
4aec664
%{_datadir}/applications/%{name}.desktop
4aec664
%{_datadir}/pixmaps/%{name}.png
4aec664
4aec664
%changelog
b36f1b0
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.34-17
b36f1b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b36f1b0
eb42183
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.34-16
eb42183
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
eb42183
f874c62
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.34-15
f874c62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f874c62
9717ef0
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.34-14
9717ef0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9717ef0
184d9b8
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.34-13
184d9b8
- Rebuilt for c++ ABI breakage
184d9b8
d167bb9
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.34-12
d167bb9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d167bb9
5b2a682
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.34-11
5b2a682
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5b2a682
a4fb604
* Mon Jul 12 2010 Dan HorĂ¡k <dan@danny.cz> - 0.34-10
a4fb604
- rebuilt against wxGTK-2.8.11-2
a4fb604
2ed524b
* Thu Jan 21 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.34-9
2ed524b
- Update to 0.34 version.
2ed524b
- Hope fix bz#556658
2ed524b
25f23a3
* Sun Sep 27 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.30-8
25f23a3
- Update desktop file according to F-12 FedoraStudio feature
25f23a3
c322f2c
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-7
c322f2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c322f2c
b5e8d6a
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-6
b5e8d6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b5e8d6a
c2cbb33
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-5
c2cbb33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c2cbb33
f71a6d7
* Fri Nov 28 2008 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 0.30-4
f71a6d7
- Delete redundant "a programm to" from description, by suggestion from mail by Richard Hughes.
f71a6d7
4aec664
* Fri Oct 10 2008 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 0.30-3
4aec664
- Remove '--vendor="%%{distribution}"' from installation desktop file. (Mamoru Tasaka)
4aec664
	And accordingly change filename
4aec664
		%%{_datadir}/applications/%%{distribution}-%%{name}.desktop
4aec664
		to
4aec664
		%%{_datadir}/applications/%%{name}.desktop
4aec664
- Add string "Category=Video;" into desktop file and accordingly remove '--add-category="Video"'
4aec664
	from desktop-file-install command. (Mamoru Tasaka)
4aec664
4aec664
* Thu Oct 9 2008 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 0.30-2
4aec664
- Correct SourceURL0 (Mamoru Tasaka)
4aec664
- Correct build flags (Mamoru Tasaka: https://bugzilla.redhat.com/show_bug.cgi?id=458338#c4)
4aec664
- Put desktop-file in category Video.
4aec664
4aec664
* Wed Oct 8 2008 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 0.30-1
4aec664
- All chenges made by review of Mamoru Tasaka. Thanks to him.
4aec664
- Remove hand %%define _prefix
4aec664
- Replace %%__make %%{?jobs:-j%%{jobs}} to make %%{?_smp_mflags}
4aec664
- %%distname replaced by %%{distribution}
4aec664
- Source expanded to full url.
4aec664
- Correct BuildRoot: %%{_tmppath}/%%{name}-%%{version}-build to %%{_tmppath}/%%{name}-%%{version}-%%{release}-root-%%(%%{__id_u} -n)
4aec664
- In each install command add -p flag to preserve timestamps.
4aec664
- In clean section "[ -d %%{buildroot} -a "%%{buildroot}" != "" ] && %%__rm -rf %%{buildroot}" replaced by simple:
4aec664
	rm -rf %%{buildroot}
4aec664
- All $RPM_BUILD_ROOT replaced by %%{buildroot}
4aec664
- %%defattr(-,root,root) changed to %%defattr(-,root,root,-)
4aec664
- Remove extension .png from Icon in .desktop file
4aec664
4aec664
* Thu Aug 7 2008 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] spb [ dOt.] su> - 0.30-0
4aec664
- Import from Suse: http://packman.links2linux.org/downloadsource/64219/DivFix++-0.30-0.pm.1.src.rpm
4aec664
- Remove all conditions with %%suse_version
4aec664
- Replace %%suse_update_desktop_file -i %%{name} AudioVideo AudioVideoEditing to invoke desktop-file-install
4aec664
- Add BuildRequires:	desktop-file-utils
4aec664
- Remove BuildRequires:	update-desktop-files, mDNSResponder-lib
4aec664
- BR wxWidgets-devel replaced by wxGTK-devel
4aec664
- Delete BuildRequires:	gcc-c++ (http://fedoraproject.org/wiki/Packaging/Guidelines#Exceptions)
4aec664
- Group changed to Applications/Multimedia
4aec664
- License adjusted to GPLv2+ (was GPL) according of source files.
4aec664
- Remove %%debug_package
4aec664
- Add BR gettext
4aec664
4aec664
* Sat Jun 21 2008 Toni Graffy <toni@links2linux.de> - 0.30-0.pm.1
4aec664
- update to 0.29
4aec664
* Fri Sep 07 2007 Toni Graffy <toni@links2linux.de> - 0.29-0.pm.2
4aec664
- openSUSE-10.3 build with wxGTK
4aec664
* Sun Apr 01 2007 Toni Graffy <toni@links2linux.de> - 0.29-0.pm.1
4aec664
- update to 0.29
4aec664
* Sun Mar 04 2007 Toni Graffy <toni@links2linux.de> - 0.28-0.pm.1
4aec664
- update to 0.28
4aec664
* Fri Dec 29 2006 Toni Graffy <toni@links2linux.de> - 0.27-0.pm.1
4aec664
- update to 0.27
4aec664
* Wed Nov 29 2006 Toni Graffy <toni@links2linux.de> - 0.26-0.pm.1
4aec664
- initial release of rpm