]> git.pld-linux.org Git - projects/template-specs.git/blame_incremental - template.spec
- wrr
[projects/template-specs.git] / template.spec
... / ...
CommitLineData
1#
2# Conditional build:
3%bcond_with tests # build with tests
4%bcond_without tests # build without tests
5#
6Summary: -
7Summary(pl): -
8Name: -
9Version: -
10Release: 0.1
11Epoch: 0
12License: - (enter GPL/GPL v2/LGPL/BSD/BSD-like/other license name here)
13Vendor: -
14Group: -
15Icon: -
16Source0: %{name}-%{version}.tar.gz
17# Source0-md5: -
18Source1: -
19# Source1-md5: -
20Patch0: %{name}-what.patch
21URL: -
22BuildRequires: -
23PreReq: -
24Requires(pre,post): -
25Requires(preun): -
26Requires(postun): -
27Requires: -
28Provides: -
29Obsoletes: -
30Conflicts: -
31#BuildArch: noarch
32#ExclusiveArch: %{ix86}
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
36
37%description -l pl
38
39%package subpackage
40Summary: -
41Summary(pl): -
42Group: -
43
44%description subpackage
45
46%description subpackage -l pl
47
48%prep
49%setup -q -n %{name}-%{version}.orig -a 1
50%patch0 -p1
51
52%build
53# if ac/am/* rebuilding is necessary, do it in this order and add
54# appropriate BuildRequires
55#%%{__gettextize}
56#%%{__libtoolize}
57#%%{__aclocal}
58#%%{__autoconf}
59#%%{__autoheader}
60#%%{__automake}
61%configure
62%{__make}
63
64%install
65rm -rf $RPM_BUILD_ROOT
66# create directories if necessary
67#install -d $RPM_BUILD_ROOT
68
69%{__make} install \
70 DESTDIR=$RPM_BUILD_ROOT
71
72%clean
73rm -rf $RPM_BUILD_ROOT
74
75%pre
76
77%post
78
79%preun
80
81%postun
82
83%files
84%defattr(644,root,root,755)
85%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
86
87# if _sysconfdir != /etc:
88#%%dir %{_sysconfdir}
89%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
90
91%attr(755,root,root) %{_bindir}/*
92
93%{_datadir}/%{name}
94
95# initscript and its config
96%attr(754,root,root) /etc/rc.d/init.d/%{name}
97%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
98
99%files subpackage
100%defattr(644,root,root,755)
101%doc extras/*.gz
102%{_datadir}/%{name}-ext
This page took 0.028803 seconds and 4 git commands to generate.