]>
Commit | Line | Data |
---|---|---|
54370d25 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4 | %bcond_without tests # build without tests | |
5 | # | |
6 | Summary: ayam | |
7 | Summary(pl): ayam | |
8 | Name: ayam | |
9 | Version: 1.8.2 | |
10 | Release: 0.1 | |
11 | Epoch: 0 | |
12 | License: GPL | |
13 | #Vendor: - | |
14 | Group: - | |
15 | #Icon: - | |
16 | Source0: http://dl.sourceforge.net/%{name}/%{name}%{version}.src.tar.gz | |
17 | # Source0-md5: | |
18 | #Source1: - | |
19 | # Source1-md5: - | |
4676866a | 20 | Patch0: %{name}-Makefile.shared.patch |
54370d25 | 21 | #URL: - |
4676866a | 22 | BuildRequires: OpenGL-devel |
23 | BuildRequires: tcl-devel | |
24 | BuildRequires: tk-devel | |
25 | BuildRequires: OpenGL-devel | |
54370d25 | 26 | #PreReq: - |
27 | #Requires(pre,post): - | |
28 | #Requires(preun): - | |
29 | #Requires(postun): - | |
30 | #Requires: - | |
31 | #Provides: - | |
32 | #Obsoletes: - | |
33 | #Conflicts: - | |
34 | #BuildArch: noarch | |
35 | #ExclusiveArch: %{ix86} | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | ||
40 | %description -l pl | |
41 | ||
42 | #%package subpackage | |
43 | #Summary: - | |
44 | #Summary(pl): - | |
45 | #Group: - | |
46 | ||
47 | #%description subpackage | |
48 | ||
49 | #%description subpackage -l pl | |
50 | ||
51 | %prep | |
52 | %setup -q -n %{name} | |
4676866a | 53 | %patch0 -p1 |
54370d25 | 54 | |
55 | %build | |
4676866a | 56 | cd src |
57 | make -f Makefile.shared | |
54370d25 | 58 | |
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | # create directories if necessary | |
62 | #install -d $RPM_BUILD_ROOT | |
63 | ||
4676866a | 64 | #%{__make} install \ |
65 | # DESTDIR=$RPM_BUILD_ROOT | |
54370d25 | 66 | |
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %pre | |
71 | ||
72 | %post | |
73 | ||
74 | %preun | |
75 | ||
76 | %postun | |
77 | ||
78 | %files | |
79 | %defattr(644,root,root,755) | |
80 | %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO | |
81 | ||
82 | # if _sysconfdir != /etc: | |
83 | #%%dir %{_sysconfdir} | |
84 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* | |
85 | ||
86 | %attr(755,root,root) %{_bindir}/* | |
87 | ||
88 | %{_datadir}/%{name} | |
89 | ||
90 | # initscript and its config | |
91 | %attr(754,root,root) /etc/rc.d/init.d/%{name} | |
92 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} | |
93 | ||
94 | #%files subpackage | |
95 | #%defattr(644,root,root,755) | |
96 | #%doc extras/*.gz | |
97 | #%{_datadir}/%{name}-ext |