source: projects/specs/trunk/q/qcad/qcad-vl.spec @ 10570

Revision 10570, 6.8 KB checked in by Takemikaduchi, 4 years ago (diff)

rebuild with gcc-5.4.0

Line 
1Name:           qcad
2Version:        2.0.5.0
3Release:        3%{?_dist_release}
4Summary:        Simple 2D CAD program
5Summary(ja):    シンプルな 2D CAD ソフトウェア
6Group:          Applications/Graphics
7License:        GPLv2
8Source:         http://www.ribbonsoft.com/archives/qcad/qcad-2.0.5.0-1-community.src.tar.gz
9Source1:        http://www.ribbonsoft.com/archives/qcad/qcad-manual-en-2.0.4.0-1.html.zip
10Patch:          qcad-qass.patch
11Patch1:         qcad-assistant.patch
12Patch2:         qcad-manual-bugs.patch
13Patch3:         qcad-64bit.patch
14Patch4:         qcad-nopedantic.patch
15Patch5:         qcad-arc.patch
16Patch6:         qcad-gcc43.patch
17URL:            http://www.ribbonsoft.com/qcad.html
18BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
19
20BuildRequires:  qt-devel
21BuildRequires:  qt-designer
22BuildRequires:  python-devel
23BuildRequires:  unzip
24# Help viewer is Qt Assistant in qt-devel package.
25#Requires:       /usr/bin/assistant
26Requires(post): desktop-file-utils
27Requires(postun):desktop-file-utils
28
29%description
30QCad is an application for computer aided drafting in two dimensions.
31With QCad you can create technical drawings such as plans for buildings,
32interiors or mechanical parts. QCad works under Linux, Unix Systems,
33Mac OS X and Windows. The source code of QCad is released under the
34GPL (Open Source).
35
36%description -l ja
37QCad は 2D の CAD(Computer Assisted Drawing) 用ソフトウェアです。
38QCad を使えば、建物や内装、機械部品等の技術的な図面を描くことが
39できます。
40
41QCad は Linux や Unix、Mac OS X、Windowsで利用できます。
42QCad のソースコードは GPL ライセンスの下でオープンソースソフト
43ウェアとしてリリースされています。
44
45
46%prep
47%setup -q -n %{name}-%{version}-1-community.src
48%setup -q -T -D -a 1 -n %{name}-%{version}-1-community.src
49%patch -p1
50%patch1 -p1 -b .assistanterror
51# no backup file here, so it doesn't get packaged
52%patch2 -p0
53%patch3 -p1 -b .64bit
54%patch4 -p1 -b .nopedantic
55%patch5 -p1 -b .arc
56%patch6 -p1 -b .gcc43
57
58
59%build
60[ -n "$QTDIR" ] || . %{_sysconfdir}/profile.d/qt.sh
61export PATH="$QTDIR/bin:$PATH"
62pushd scripts
63    ./build_qcad.sh
64popd
65find -name '*.ts' -exec lrelease '{}' ';'
66find -name '*.qm' -exec cp '{}' qcad/qm ';'
67
68
69%install
70rm -rf $RPM_BUILD_ROOT
71
72%define pkgdatadir %{_datadir}/qcad
73mkdir -p $RPM_BUILD_ROOT%{pkgdatadir}
74mkdir -p $RPM_BUILD_ROOT%{pkgdatadir}/library
75mkdir -p $RPM_BUILD_ROOT%{pkgdatadir}/doc
76
77cp -fr qcad-manual-en-2.0.4.0-1.html/* $RPM_BUILD_ROOT%{pkgdatadir}/doc
78
79cd qcad
80cp -fr fonts $RPM_BUILD_ROOT%{pkgdatadir}
81cp -fr patterns $RPM_BUILD_ROOT%{pkgdatadir}
82cp -fr qm $RPM_BUILD_ROOT%{pkgdatadir}
83
84mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
85cp -f src/xpm/qcad.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps
86
87mkdir -p $RPM_BUILD_ROOT%{_bindir}
88cp -f qcad $RPM_BUILD_ROOT%{_bindir}
89
90cat > qcad.desktop <<EOF
91[Desktop Entry]
92Name=QCad
93Name[ja]=QCad
94GenericName=2D CAD drawing
95GenericName[ja]=2D CAD ソフトウェア
96Comment=A simple 2D CAD program
97Comment[ja]=2D CAD 図面を作図します
98Exec=qcad
99Icon=qcad.xpm
100Terminal=false
101Type=Application
102MimeType=image/vnd.dxf
103Encoding=UTF-8
104StartupNotify=true
105StartupWMClass=qcad
106Categories=Application;Graphics
107EOF
108
109mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
110install -m644 qcad.desktop $RPM_BUILD_ROOT%{_datadir}/applications
111
112
113%clean
114rm -rf $RPM_BUILD_ROOT
115
116
117%post
118%{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
119
120
121%postun
122%{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
123
124
125%files
126%defattr(-,root,root,-)
127%doc qcad/README qcad/data
128%{_bindir}/*
129%{_datadir}/qcad
130%{_datadir}/applications/*
131%{_datadir}/pixmaps/*
132
133
134%changelog
135* Sat Jul 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.5.0-3
136- rebuild with gcc-5.4.0
137
138* Fri Jul 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.5.0-2
139- rebuild with VineSeed environment
140
141* Sat Jun 05 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 2.0.5.0-1
142- initial build for Vine Linux based on fedora development
143- add japanese summary and description
144- export $QTDIR/bin to PATH for qmake command
145- add BuildRequires: qt-designer unzip
146
147* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.5.0-11
148- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
149
150* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.5.0-10
151- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
152
153* Wed Sep  3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.5.0-9
154- fix license tag
155
156* Fri Feb 22 2008 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0-8
157- patch to compile with GCC 4.3
158
159* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.5.0-7
160- Autorebuild for GCC 4.3
161
162* Wed Jan 23 2008 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0-6
163- added patch to add arc type tangential to menu
164
165* Mon Aug 28 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0-5
166- Rebuild for FE6
167
168* Fri Feb 17 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0-4
169- Rebuild for Fedora Extras 5
170
171* Thu Nov 24 2005 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0-3
172- generate and include qm files
173
174* Wed Nov 23 2005 Gerard Milmeister <gemi@bluewin.ch> - 2.0.5.0
175- New Version 2.0.5.0
176
177* Wed May 25 2005 Jeremy Katz <katzj@redhat.com> - 2.0.4.0-5.fc4
178- fix build on 64bit arches (#158650)
179
180* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 2.0.4.0-4.fc4
181- rebuild on all arches
182
183* Tue Apr  5 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.0.4.0-3.fc4
184- Add missing line in qcad-assistant.patch which prevents orphans.
185
186* Mon Feb 14 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.0.4.0-2
187- Remove /usr/bin/assistant (-> qt-devel) dependency, replace with
188  patches to open a warning dialog in case of Qt Assistant error
189  conditions. Add a related patch for the English manual which
190  removes references to two missing images.
191
192* Sat Feb 12 2005 Gerard Milmeister <gemi@bluewin.ch> - 2.0.4.0-1
193- Added documentation
194- Fixed code for calling Qt Assistant: qcad-qass.patch
195
196* Mon Nov 15 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.4.0-0.fdr.2
197- Added mime type to desktop file
198
199* Fri Oct  1 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.4.0-0.fdr.1
200- New Version 2.0.4.0
201
202* Sat Jun  5 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.3.3-0.fdr.1
203- New Version 2.0.3.3
204
205* Sun Apr 25 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.3.1-0.fdr.2
206- Set QTDIR from qt.sh
207
208* Sun Apr 11 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.3.1-0.fdr.1
209- New Version 2.0.3.1
210
211* Sat Feb 28 2004 Gerard Milmeister <gemi@bluewin.ch> - 2.0.2.0-0.fdr.1
212- New Version 2.0.2.0
213
214* Fri Dec 12 2003 Gerard Milmeister <gemi@bluewin.ch> - 2.0.1.3-0.fdr.1
215- New Version 2.0.1.3
216
217* Wed Nov 26 2003 Gerard Milmeister <gemi@bluewin.ch> - 2.0.1.2-1.fdr.2
218- Respect RPM_OPT_FLAGS
219
220* Wed Nov 26 2003 Gerard Milmeister <gemi@bluewin.ch> - 2.0.1.2-0.fdr.1
221- New Version 2.0.1.2
222
223* Tue Oct 21 2003 Gerard Milmeister <gemi@bluewin.ch> - 2.0.1.1-1.fdr.1
224- First Fedora release
Note: See TracBrowser for help on using the repository browser.