forked from heliocastro/qt1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqt1.spec
134 lines (109 loc) · 4.13 KB
/
qt1.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
%define _qt1_prefix /opt/qt1
%define _qt1_libdir %{_qt1_prefix}/%{_lib}
%define _qt1_bindir %{_qt1_prefix}/bin
%define _qt1_includedir %{_qt1_prefix}/include
Name: qt1
Summary: Shared library for the Qt GUI toolkit
Version: 1.45
Release: 1%{?dist}
Source: http://download.qt.io/archive/qt/1/qt-%{version}.tar.gz
Patch0: qt-1.44-enablegif.patch
Patch1: qt-1.44-xor.patch
Patch2: qt-1.45-qfont.patch
Patch3: qt-1.45-fixsoname.patch
URL: http://www.qt.io
License: distributable
Group: System Environment/Libraries
BuildRequires: libXext-devel
BuildRequires: libxcb-devel
BuildRequires: libX11-devel
%package devel
Summary: Development files and documentation for the Qt GUI toolkit
Group: Development/Libraries
%description
Qt is a GUI software toolkit. Qt simplifies the task of writing and
maintaining GUI (graphical user interface) applications for X Windows.
Qt is written in C++ and is fully object-oriented. It has everything
you need to create professional GUI applications. And it enables you
to create them quickly.
Qt is a multi-platform toolkit. When developing software with Qt, you
can run it on the X Window System (Unix/X11) or Microsoft Windows NT
and Windows 95/98. Simply recompile your source code on the platform
you want.
This package contains the shared library needed to run Qt applications,
as well as the README files for Qt.
%description devel
Contains the files necessary to develop applications using Qt: header
files, the Qt meta object compiler, man pages, HTML documentation and
example programs. See http://www.troll.no for more information about
Qt, or file:%{_qt1_libdir}/qt/html/index.html for Qt documentation in HTML.
%prep
%setup -q -n qt-%{version}
%patch0 -p1 -b .enablegif
%patch1 -p1 -b .xor
%patch2 -p1 -b .qfont
%patch3 -p1 -b .fixsoname
rm src/kernel/qt_gif.h.enablegif
%build
QTDIR=`/bin/pwd` export QTDIR
make linux-g++-shared
make
%install
mkdir -p %{buildroot}%{_qt1_bindir}
mkdir -p %{buildroot}%{_qt1_libdir}
mkdir -p %{buildroot}/usr/man
install -s -m 755 bin/moc %{buildroot}%{_qt1_bindir}/moc
cp lib/libqt.so.%{version} %{buildroot}%{_qt1_libdir}
ln -sf libqt.so.%{version} %{buildroot}%{_qt1_libdir}/libqt.so.1
ln -sf libqt.so.1 %{buildroot}%{_qt1_libdir}/libqt.so
mkdir -p %{buildroot}%{_qt1_libdir}/qt %{buildroot}%{_qt1_includedir}/qt
mkdir -p %{buildroot}%{_qt1_libdir}/qt/html %{buildroot}%{_qt1_libdir}/qt/tutorial
mkdir -p %{buildroot}%{_qt1_libdir}/qt/examples
cp -fR html %{buildroot}%{_qt1_libdir}/qt
strip tutorial/*/* || :
strip examples/*/* || :
cp -fR tutorial %{buildroot}%{_qt1_libdir}/qt
cp -fR examples %{buildroot}%{_qt1_libdir}/qt
cp -fR include/. %{buildroot}%{_qt1_includedir}/qt
for a in %{buildroot}%{_qt1_libdir}/qt/*/*/Makefile ; do
sed 's-^SYSCONF_MOC.*-SYSCONF_MOC = %{_qt1_bindir}/moc-' < $a > ${a}.2
mv -v ${a}.2 $a
done
rm %{buildroot}%{_qt1_libdir}/qt/*/*/*.o
chmod -R a+r %{buildroot}%{_qt1_libdir}/libqt.so* %{buildroot}%{_qt1_libdir}/qt
%post -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%postun
/sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc ANNOUNCE LICENSE README.QT FAQ PORTING README changes-1.40 changes-1.41 changes-1.42 changes-1.43 changes-1.44
%{_qt1_libdir}/libqt.so.%{version}
%{_qt1_libdir}/libqt.so.1
%{_qt1_libdir}/libqt.so
%files devel
%{_qt1_bindir}/moc
%{_qt1_libdir}/qt/
%{_qt1_includedir}/qt/
%changelog
* Sun Sep 04 2016 Helio Chissini de Castro <[email protected]> - 1.44-1
- Let's build the anniversary
* Sat Apr 17 1999 Preston Brown <[email protected]>
- static library supplied in dev package.
* Wed Apr 07 1999 Preston Brown <[email protected]>
- turn on internal GIF reading support
* Tue Apr 06 1999 Preston Brown <[email protected]>
- strip binaries
* Mon Mar 15 1999 Preston Brown <[email protected]>
- upgrade to qt 1.44.
* Wed Feb 24 1999 Preston Brown <[email protected]>
- Injected new description and group.
* Tue Jan 19 1999 Preston Brown <[email protected]>
- moved includes to include dir /qt
* Mon Jan 04 1999 Preston Brown <[email protected]>
- made setup phase silent.
* Fri Dec 04 1998 Preston Brown <[email protected]>
- upgraded to qt 1.42, released today.
* Tue Dec 01 1998 Preston Brown <[email protected]>
- took Arnt's RPM and made some minor changes for Red Hat.