Blog: LPub4 for Linux, 4th iteration: lpub4.spec

File lpub4.spec, 875 bytes (added by retracile, 5 years ago)
Line 
1Name: lpub4
2Version: 4.0.0.14
3Release: 20140514.ec3
4Source0: lpub4.tar.bz2
5Patch1: lpub4-1-dev-doc-fixes.patch
6Patch2: lpub4-2-setmeta-args-fix.patch
7Patch3: lpub4-3-pro-case.patch
8Patch4: lpub4-4-main-case.patch
9Patch5: lpub4-5-openfiledialog.patch
10Patch6: lpub4-6-preferencesdialog.patch
11
12Summary: Lego building instructions program
13Group: Engineering/CAD
14License: GPL
15Buildroot: /tmp/%{name}-%{version}-root
16BuildPreReq: qt-devel
17Requires: qt
18
19%description
20LDraw Building Instruction Publishing Tool
21
22%prep
23%setup -n lpub4
24%patch1 -p1
25%patch2 -p1
26%patch3 -p1
27%patch4 -p1
28%patch5 -p1
29%patch6 -p1
30
31%build
32PATH=/usr/lib64/qt4/bin:$PATH
33qmake
34make
35
36%install
37rm -rf $RPM_BUILD_ROOT
38mkdir -p $RPM_BUILD_ROOT/usr/bin
39cp lpub $RPM_BUILD_ROOT/usr/bin/
40mkdir -p $RPM_BUILD_ROOT/usr/share/lpub
41cp pli.mpd $RPM_BUILD_ROOT/usr/share/lpub/
42
43%files
44/usr/bin/lpub
45/usr/share/lpub/pli.mpd