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