-
Notifications
You must be signed in to change notification settings - Fork 0
/
xxdiff.spec
186 lines (143 loc) · 6.22 KB
/
xxdiff.spec
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
175
176
177
178
179
180
181
182
183
184
185
186
Summary: Graphical file and directories comparator and merge tool
Name: xxdiff
Version: 3.2
Release: 26%{?dist}
License: GPLv2+
Group: Development/Tools
URL: http://furius.ca/xxdiff/
# The orginal tar can be found at http://furius.ca/downloads/xxdiff/releases/xxdiff-%{version}.tar.bz2
# We remove the screenshots directory since the images in there can not be redistributed without permission.
Source0: xxdiff-%{version}-noscreenshots.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%if "%{rhel}" == "5"
BuildRequires: qt-devel < 1:4.0, bison, flex
%else
BuildRequires: qt3-devel < 1:4.0, bison, flex
%endif
Patch0: %{name}-fix-cstdlib_h.patch
Patch1: xxdiff-3.2-c-linkage.patch
Patch2: xxdiff-3.2-string-constants.patch
Patch3: xxdiff-3.2-bison3.patch
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description
xxdiff is a graphical browser for viewing the differences between two or three
files, or between two directories, and can be used to produce a merged version.
%package tools
Summary: Tools for xxdiff
Group: Development/Tools
URL: http://furius.ca/xxdiff/doc/xxdiff-scripts.html
Requires: xxdiff
BuildRequires: python-devel
%description tools
Tools for xxdiff
%prep
%setup -q
%patch0 -p2
# Fix FTBFS with gcc 4.7
%patch1
# Fix the multitude of warnings about string constants converted to 'char*'
%patch2 -p1
# Fix FTBFS with bison-3.x, https://sf.net/p/xxdiff/bugs/229/
%patch3 -p1
%build
if [ -z "$QTDIR" ]; then
. /etc/profile.d/qt.sh
fi
CFLAGS="${CFLAGS:-$RPM_OPT_FLAGS}"
CXXFLAGS="${CFLAGS:-$RPM_OPT_FLAGS}"
export CFLAGS
export CXXFLAGS
%{__make} -C src -f Makefile.bootstrap makefile
%{__sed} -i -e "s/^CFLAGS\s*=/CFLAGS +=/g" src/Makefile
%{__sed} -i -e "s/^CXXFLAGS\s*=/CXXFLAGS +=/g" src/Makefile
%{__make} -C src %{?_smp_mflags}
%{__python} setup.py build
find ./build -name \*.py -print -exec %{__sed} -i "1{/^#\!/d}" {} \;
%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}%{_bindir}
%{__install} -m 755 bin/xxdiff %{buildroot}%{_bindir}
%{__python} setup.py install -O1 --skip-build --root=%{buildroot} --install-lib=%{python_sitelib}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc doc index.html
%doc CHANGES COPYING README TODO VERSION
%{_bindir}/xxdiff
%files tools
%defattr(-,root,root,-)
%doc doc index.html
%{python_sitelib}/*
%{_bindir}/svn-foreign
%{_bindir}/xx-cond-replace
%{_bindir}/xx-cvs-diff
%{_bindir}/xx-cvs-revcmp
%{_bindir}/xx-diff-proxy
%{_bindir}/xx-encrypted
%{_bindir}/xx-filter
%{_bindir}/xx-find-grep-sed
%{_bindir}/xx-match
%{_bindir}/xx-pyline
%{_bindir}/xx-rename
%{_bindir}/xx-sql-schemas
%{_bindir}/xx-svn-diff
%{_bindir}/xx-svn-resolve
%changelog
* Fri Dec 11 2015 Shawn K. O'Shea <[email protected]> - 3.2-26
- Add conditional to set BuildRequire to qt-devel instead of qt3-devel on EL5
* Fri Jun 19 2015 Fedora Release Engineering <[email protected]> - 3.2-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat May 02 2015 Kalev Lember <[email protected]> - 3.2-24
- Rebuilt for GCC 5 C++11 ABI change
* Mon Aug 18 2014 Fedora Release Engineering <[email protected]> - 3.2-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Fri Jun 13 2014 Yaakov Selkowitz <[email protected]> - 3.2-22
- Fix FTBFS with bison-3.x (#1107365)
* Sun Jun 08 2014 Fedora Release Engineering <[email protected]> - 3.2-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sun Aug 04 2013 Fedora Release Engineering <[email protected]> - 3.2-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Fri Feb 15 2013 Fedora Release Engineering <[email protected]> - 3.2-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sun Jul 22 2012 Fedora Release Engineering <[email protected]> - 3.2-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sun Apr 22 2012 Paul Howarth <[email protected]> - 3.2-17
- Fix FTBFS with gcc 4.7
* Tue Feb 28 2012 Fedora Release Engineering <[email protected]> - 3.2-16
- Rebuilt for c++ ABI breakage
* Sat Jan 14 2012 Fedora Release Engineering <[email protected]> - 3.2-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Feb 08 2011 Fedora Release Engineering <[email protected]> - 3.2-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Nov 15 2010 Russell Cattelan <[email protected]> - 3.2-13
- Change BuildRequires from qt-devel to qt3-devel
* Thu Jul 22 2010 David Malcolm <[email protected]> - 3.2-12
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
* Mon Jul 27 2009 Fedora Release Engineering <[email protected]> - 3.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Feb 26 2009 Fedora Release Engineering <[email protected]> - 3.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <[email protected]> - 3.2-9
- Rebuild for Python 2.6
* Mon Jun 9 2008 Russell Cattelan <[email protected]> - 3.2-8
- Create a new tar ball without the restricted copyrighted screen shots
* Thu May 29 2008 Russell Cattelan <[email protected]> - 3.2-7
- Remove desktop file, since xxdiff need files at least 2 files specified on
- the cmd line.
- It is confusing to have a menu option that does not work without
- dragging and dropping at least two files.
* Tue May 27 2008 Russell Cattelan <[email protected]> - 3.2-6
- Add desktop file
* Tue May 6 2008 Russell Cattelan <[email protected]> - 3.2-5
- Remove python from the main package Requires.
- Make sure the build picks rpm defined CFLAGS
* Mon Apr 28 2008 Russell Cattelan <[email protected]> 3.2-4
- Split out script into tools package
- Minor changes to build process and python lib handling
* Sun Mar 30 2008 Russell Cattelan <[email protected]> 3.2-3
- Minor fixups based on review comments
* Sat Mar 29 2008 Russell Cattelan <[email protected]> 3.2-2
- Added helper utilites
* Sat Mar 8 2008 Russell Cattelan <[email protected]> 3.2-1
- Initial Revision