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