]>
Commit | Line | Data |
---|---|---|
52ff2772 | 1 | # |
66c7fa65 ER |
2 | # Conditional build: |
3 | %bcond_with tests # build with tests | |
4 | %bcond_without tests # build without tests | |
52ff2772 | 5 | # |
e8b9df06 | 6 | Summary: - |
e8b9df06 | 7 | Summary(pl): - |
e8b9df06 SZ |
8 | Name: - |
9 | Version: - | |
c1981b58 ER |
10 | Release: 0.1 |
11 | Epoch: 0 | |
73d26d4a | 12 | License: - (enter GPL/GPL v2/LGPL/BSD/BSD-like/other license name here) |
4b97f9d0 ER |
13 | #Vendor: - |
14 | Group: Applications | |
15 | #Icon: - | |
f1b2d418 | 16 | Source0: %{name}-%{version}.tar.gz |
023a0cc4 | 17 | # Source0-md5: - |
4b97f9d0 | 18 | #Source1: - |
023a0cc4 | 19 | # Source1-md5: - |
4b97f9d0 | 20 | #Patch0: %{name}-what.patch |
e8b9df06 | 21 | URL: - |
6d0e4f88 | 22 | #BuildRequires: autoconf |
fdeb11aa | 23 | #BuildRequires: automake |
6d0e4f88 | 24 | #BuildRequires: libtool |
4b97f9d0 ER |
25 | #BuildRequires: - |
26 | #PreReq: - | |
27 | #Requires(pre,post): - | |
28 | #Requires(preun): - | |
29 | #Requires(postun): - | |
30 | #Requires: - | |
31 | #Provides: - | |
32 | #Obsoletes: - | |
33 | #Conflicts: - | |
c1981b58 | 34 | #BuildArch: noarch |
79cd49df | 35 | #ExclusiveArch: %{ix86} |
e8b9df06 SZ |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | ||
e8b9df06 SZ |
40 | %description -l pl |
41 | ||
352b3a3c TP |
42 | %package subpackage |
43 | Summary: - | |
44 | Summary(pl): - | |
45 | Group: - | |
352b3a3c TP |
46 | |
47 | %description subpackage | |
48 | ||
49 | %description subpackage -l pl | |
50 | ||
88a5dbe9 ER |
51 | %if 0 |
52 | %package devel | |
53 | Summary: Development libraries and header files for termcap library | |
54 | Group: Development/Libraries | |
55 | ||
56 | %description devel | |
57 | This is the package containing the development libaries and header | |
58 | files for ... | |
59 | ||
60 | %package static | |
61 | Summary: Static ... library | |
62 | Group: Development/Libraries | |
63 | Requires: %{name}-devel = %{version} | |
64 | ||
65 | %description static | |
66 | Static ... library. | |
67 | %endif | |
81aa4eb9 | 68 | |
e8b9df06 | 69 | %prep |
f1b2d418 | 70 | %setup -q -n %{name}-%{version}.orig -a 1 |
4b97f9d0 | 71 | #%patch0 -p1 |
e8b9df06 SZ |
72 | |
73 | %build | |
c42a30cf JB |
74 | # if ac/am/* rebuilding is necessary, do it in this order and add |
75 | # appropriate BuildRequires | |
37416b6e | 76 | #%%{__gettextize} |
8f37ba72 | 77 | #%%{__libtoolize} |
37416b6e | 78 | #%%{__aclocal} |
79 | #%%{__autoconf} | |
80 | #%%{__autoheader} | |
81 | #%%{__automake} | |
de41dae9 | 82 | #cp -f /usr/share/automake/config.sub . |
19bf1c4b | 83 | %configure |
e8b9df06 SZ |
84 | %{__make} |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
d43856e1 JB |
88 | # create directories if necessary |
89 | #install -d $RPM_BUILD_ROOT | |
e8b9df06 | 90 | |
a984843b SP |
91 | %{__make} install \ |
92 | DESTDIR=$RPM_BUILD_ROOT | |
e8b9df06 | 93 | |
f5bb3874 JB |
94 | %clean |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
e8b9df06 SZ |
97 | %pre |
98 | ||
e8b9df06 | 99 | %post |
88a5dbe9 | 100 | #%post -p /sbin/ldconfig |
e8b9df06 | 101 | |
b187ef53 JB |
102 | %preun |
103 | ||
e8b9df06 | 104 | %postun |
88a5dbe9 | 105 | #%postun -p /sbin/ldconfig |
e8b9df06 | 106 | |
e8b9df06 SZ |
107 | %files |
108 | %defattr(644,root,root,755) | |
024e628a | 109 | %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO |
cec32492 | 110 | |
11877175 ER |
111 | # if _sysconfdir != /etc: |
112 | #%%dir %{_sysconfdir} | |
9c3f0ed0 | 113 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* |
cec32492 | 114 | |
0b279ca0 | 115 | %attr(755,root,root) %{_bindir}/* |
cec32492 | 116 | |
0b279ca0 | 117 | %{_datadir}/%{name} |
f1b2d418 | 118 | |
d1184c8c | 119 | # initscript and its config |
2482ba2c | 120 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
9c3f0ed0 | 121 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |
2482ba2c | 122 | |
f1b2d418 TP |
123 | %files subpackage |
124 | %defattr(644,root,root,755) | |
125 | %doc extras/*.gz | |
126 | %{_datadir}/%{name}-ext |