]> git.pld-linux.org Git - packages/grfcodec.git/blob - grfcodec.spec
- drop upx BR, we really don't need to have programs compressed
[packages/grfcodec.git] / grfcodec.spec
1 Summary:        Programs to modify Transport Tycoon Deluxe's GRF files
2 Summary(pl.UTF-8):      Narzędzia do modyfikacji plików GRX gry Transport Tycoon Deluxe
3 Name:           grfcodec
4 Version:        6.0.2
5 Release:        3
6 License:        GPL v2+
7 Group:          Applications
8 Source0:        http://binaries.openttd.org/extra/grfcodec/%{version}/%{name}-%{version}-source.tar.xz
9 # Source0-md5:  bb9db63cd21072f1406a4fd1836c4daa
10 Patch0:         %{name}-version.patch
11 URL:            http://dev.openttdcoop.org/projects/grfcodec
12 BuildRequires:  boost-devel
13 BuildRequires:  libstdc++-devel
14 BuildRequires:  perl-base
15 BuildRequires:  sed >= 4.0
16 BuildRequires:  tar >= 1:1.22
17 BuildRequires:  xz
18 Obsoletes:      nforenum
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 A suite of programs to modify Transport Tycoon Deluxe's GRF and NFO
23 files.
24
25 %description -l pl.UTF-8
26 Zestaw narzędzi do modyfikacji plików GRX oraz NFO gry Transport
27 Tycoon Deluxe.
28
29 %prep
30 %setup -q
31 %patch0 -p1
32
33 # drop -O2 flag from FLAGS
34 %{__sed} -i 's,-O2,,' Makefile
35
36 # set prefix to proper one
37 %{__sed} -i 's,%{_prefix}/local,%{_prefix},' Makefile.bundle
38
39 %build
40 %{__make} \
41         CXX="%{__cxx}" \
42         CXXFLAGS="%{rpmcxxflags}" \
43         LDOPT="%{rpmldflags}" \
44         V="1"
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc docs/*.txt changelog.txt
58 %attr(755,root,root) %{_bindir}/grfcodec
59 %attr(755,root,root) %{_bindir}/grfdiff
60 %attr(755,root,root) %{_bindir}/grfid
61 %attr(755,root,root) %{_bindir}/grfmerge
62 %attr(755,root,root) %{_bindir}/grfstrip
63 %attr(755,root,root) %{_bindir}/nforenum
64 %{_mandir}/man1/*.1*
This page took 0.075227 seconds and 3 git commands to generate.